You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Peter Eastman (JIRA)" <ax...@ws.apache.org> on 2005/01/19 03:14:16 UTC

[jira] Created: (AXIS-1773) java2wsdl does not use base64Binary for byte[][]

java2wsdl does not use base64Binary for byte[][]
------------------------------------------------

         Key: AXIS-1773
         URL: http://issues.apache.org/jira/browse/AXIS-1773
     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 this:

<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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1773) java2wsdl does not use base64Binary for byte[][]

Posted by "Brian J Gladish (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1773?page=comments#action_60227 ]
     
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: http://issues.apache.org/jira/browse/AXIS-1773
>      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 this:
> <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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1773) java2wsdl does not use base64Binary for byte[][]

Posted by "Peter Eastman (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1773?page=comments#action_60384 ]
     
Peter Eastman commented on AXIS-1773:
-------------------------------------

Here's about the simplest example you could ask for.  I just tested it with RC3, and it still produces the same result.

import java.rmi.*;

public interface SoapInterface extends Remote
{
  public void upload(byte files[][]) throws RemoteException;
}

> java2wsdl does not use base64Binary for byte[][]
> ------------------------------------------------
>
>          Key: AXIS-1773
>          URL: http://issues.apache.org/jira/browse/AXIS-1773
>      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 this:
> <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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1773) java2wsdl does not use base64Binary for byte[][]

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1773?page=comments#action_60242 ]
     
Davanum Srinivas commented on AXIS-1773:
----------------------------------------

Can you please upload a stripped down sample that shows the problem when using Axis 1.2 RC3?

thanks,
dims

> java2wsdl does not use base64Binary for byte[][]
> ------------------------------------------------
>
>          Key: AXIS-1773
>          URL: http://issues.apache.org/jira/browse/AXIS-1773
>      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 this:
> <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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira