A little more information about the difference in the byte array. On the service side, the first value is:
0 On the client side, the values are: <space> <space> <space> <space> <space> 1 0 From there until line 201, all of the values are the same. Then, on line 201, the server side has: -128 and the client side has an empty space. Other than that, the other 500 lines are the same. Any ideas? Thanks, Eric --- On Wed, 7/21/10, Eric Borisow <[email protected]> wrote: > From: Eric Borisow <[email protected]> > Subject: Question about using byte array > To: [email protected] > Date: Wednesday, July 21, 2010, 1:18 PM > Hi, > > I am trying to pass an LDAP cookie in a byte array from my > web service using Axis2 1.4.1. In my wsdl, I have this > entry: > > <xs:element maxOccurs="unbounded" minOccurs="0" > name="cookie" nillable="true" type="xs:byte"/> > > Using ADB, a setCookie method is generated for me that > takes a byte array as a parameter. I pass in the byte > array directly from the LDAP code. It all looks good > when the message is going out. > > In the output from the call, I see a bunch of > <cookie> elements in the XML getting returned from the > service. > > On the client-side, I am once again using ADB which > provides a getCookie method to retrieve the byte > array. I output the value by using the toString > method. > > The problem is that the byte array on the way out of the > service is not matching the byte array that is coming into > the client. I've compared the individual values that > are in the array between server and client and it does look > different. Most notably, it looks like some empty > elements appear in the service output that are not there > when debugged on the server side. As a result, when I > try to pass the array back for the next call, it fails. > > Hopefully, there is a simple answer to this. Any help > is appreciated. > > Thanks, > Eric > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
