You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Eric Borisow <eb...@yahoo.com> on 2010/07/21 18:11:12 UTC

Silly question about using byte[]

Hi,

I have a wsdl with the following byte[] defined:

<xs:element maxOccurs="unbounded" minOccurs="0" name="cookie" nillable="true" type="xs:byte"/>

Using ADB, the generated code correctly has a byte array.  I am basically trying to send a cookie from JLDAP over the wire.  However, it seems that something is getting lost in the conversion.  On the server side, I get the following output of the byte array before sending it over:

[B@149b290

But, on the client side, it ends up looking like:

[B@bac9b9

Maybe there is a problem with my conversion?  On the server side, I simply have a bean with a byte[] member.  I set it using the set method provided by the generated class.  On the client side, I am just retrieving the value from the generated stub using a getMethod and outputting the value using toString().

One other thing I tried was to output each value in the byte array and the only difference I can see is in the TCP monitor output.  I see some additional empty values in the service output.

Any help is appreciated.

Thanks,
Eric




      

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org