Re: error passing byte[] of encrypted data to Web Service

From: Yunus Emre ALPÖZEN [MCSD.NET] (yemre_at_msakademik.net)
Date: 05/29/05


Date: Sun, 29 May 2005 18:00:20 +0300

My advice uy to use strings instead of byte arrays..

But, as error indicating, it is a null pointer exception. There is no limit
with byte arrays. Just check if you successfully construct your byte
arrays..

-- 
Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET
"ChuckD_Duncan" <cduncan@nospam.guardianangelcorp.com> wrote in message 
news:5d96ef79d912558faf5284a971dad2ac@localhost.talkaboutsoftware.com...
> Have Web Service:  bool Login( byte[] A, byte[] B );
> If I just send a couple of simple strings, it works fine ... as in:
>     byte[] A = Encoding.Default.GetBytes("First");
>     byte[] B = Encoding.Default.GetBytes("Last");
>
> but changing A to a 100+ byte encypted sequence of bytes, causes an
> error:
>
> An unhandled exception of type
> 'System.Web.Services.Protocols.SoapException' occurred in
> system.web.services.dll
>
> Additional information: Server was unable to process request. --> Object
> reference not set to an instance of an object.
>
> Obviously happening at the SOAP level.  (Server is Win 2K .NET Framework
> 1.0, client is XP, .NET/Latest, but tried it on localhost (XP) )
>
> Any thoughts??
>
> Thanks in advance.
> Chuck
> 


Relevant Pages

  • Re: I need some basic C++ help
    ... I think the idea of using arrays for strings (one that comes entirely ... the students need to see how strings can be constructed using arrays ... > One reason is that they spend much less time debugging. ...
    (comp.lang.cpp)
  • Re: more idle thinking: SiMPL
    ... int *pi; ... memory for strings and arrays are dynamicly allocated, ...
    (comp.lang.misc)
  • Re: Why does ANSI not define a function to determine the size of (m)allocated mem? (like _msize)
    ... Fortran 90 and up for arrays, and for character strings ... string length meaning variable at ALLOCATE time, ...
    (comp.lang.c)
  • Re: Option Compare Statement
    ... both arrays are always the same type. ... compare text,. ... Your first post regarding this in the vb.controls newsgroup was, ... strings, let's say A and B. Then I want to compare their values. ...
    (microsoft.public.vb.general.discussion)
  • Re: History of EQUAL on arrays?
    ... the special cases for strings and bit-vectors where EQUAL must look at ... preceded the availability of any general arrays. ... Indeed, in LISP 1.5, there was internally strings. ...
    (comp.lang.lisp)