axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian J Gladish (JIRA)" <>
Subject [jira] Commented: (AXIS-1773) java2wsdl does not use base64Binary for byte[][]
Date Fri, 04 Mar 2005 20:06:47 GMT
     [ ]
Brian J Gladish commented on AXIS-1773:

This issue not only creates a lot of overhead, but causes interoperability problems with .NET
as well.

> java2wsdl does not use base64Binary for byte[][]
> ------------------------------------------------
>          Key: AXIS-1773
>          URL:
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC2
>  Environment: Windows 2000, Java 1.4.2
>     Reporter: Peter Eastman

> One method in my web service takes an argument of type byte[][], which contains a set
of binary files to upload.  When I run java2wsdl, it generates the following definition:
>    <complexType name="ArrayOf_xsd_base64Binary">
>     <complexContent>
>      <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:byte[][]"/>
>      </restriction>
>     </complexContent>
>    </complexType>
> As seen from the name, this is clearly intended to be a 1D array of base64 encoded byte
arrays.  Unfortunately, it actually is a 2D array of individually encoded bytes.  When I build
stubs from it with wsdl2java and view the request message with SOAPMonitor, it looks like
> <fileContents xsi:type="soapenc:Array" soapenc:arrayType="xsd:byte[][2]" ...>
>  <item soapenc:arrayType="xsd:byte[25]">
>   <item>77</item>
>   <item>49</item>
>   ...
> This turns even small files into enormous messages.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message