You are viewing a plain text version of this content. The canonical link for it is here.
Posted to savan-dev@ws.apache.org by "Rui Li (JIRA)" <ax...@ws.apache.org> on 2010/05/06 00:00:13 UTC
[jira] Issue Comment Edited: (AXIS-1773) java2wsdl does not use
base64Binary for byte[][]
[ https://issues.apache.org/jira/browse/AXIS-1773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12864537#action_12864537 ]
Rui Li edited comment on AXIS-1773 at 5/5/10 5:58 PM:
------------------------------------------------------
The attached file is my fix; It also included a fix for serializing multi-dimensions array in Document/literal.
was (Author: ruili):
Here is my fix; It also included a fix for serializing multi-dimensions array in Document/literal.
> java2wsdl does not use base64Binary for byte[][]
> ------------------------------------------------
>
> Key: AXIS-1773
> URL: https://issues.apache.org/jira/browse/AXIS-1773
> Project: Axis
> Issue Type: Bug
> Components: WSDL processing
> Affects Versions: 1.2RC2
> Environment: Windows 2000, Java 1.4.2
> Reporter: Peter Eastman
> Attachments: ArraySerializer.java
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org