axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayachandra Sekhara Rao Sunkara (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1646) "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
Date Wed, 10 Nov 2004 07:37:24 GMT
     [ http://nagoya.apache.org/jira/browse/AXIS-1646?page=comments#action_55279 ]
     
Jayachandra Sekhara Rao Sunkara commented on AXIS-1646:
-------------------------------------------------------

Hi Michael!
can you post your client and or server side code at the earliest. I wish to reproduce the
problem and do a step by step analysis. 
Thank you,
Jayachandra

> "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
> ----------------------------------------------------------------------------------
>
>          Key: AXIS-1646
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1646
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC1
>  Environment: Win2K Pro
>     Reporter: Michael Woinoski

>
> For a parameter of type byte[], running Java2WSDL with --style="wrapped" and --use="literal"
generates a schema with a sequence of elements of type xsd:byte instead of a single element
of type xsd:base64Binary. For example, given the following method:
>     public byte[] updatePdf(byte[] pdfDoc, String newValues)
>     
> the generated schema contains the following definition:
>    <element name="updatePdf">
>     <complexType>
>      <sequence>
>       <element maxOccurs="unbounded" name="pdfDoc" type="xsd:byte"/>
>       <element name="newValues" type="xsd:string"/>
>      </sequence>
>     </complexType>
> Stubs generated with WSDL2Java create the following SOAP message: 
> soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Body>
>       <updatePdf xmlns="http://www.ltree.com/wsdl/template">
>          <pdfDoc>111</pdfDoc>
>          <pdfDoc>114</pdfDoc>
>          <pdfDoc>105</pdfDoc>
>          <pdfDoc>103</pdfDoc>
>          <pdfDoc>105</pdfDoc>
>          <pdfDoc>110</pdfDoc>
>          <pdfDoc>97</pdfDoc>
>          <pdfDoc>108</pdfDoc>
>          <pdfDoc>32</pdfDoc>
>          <pdfDoc>115</pdfDoc>
>          <pdfDoc>116</pdfDoc>
>          <pdfDoc>114</pdfDoc>
>          <pdfDoc>105</pdfDoc>
>          <pdfDoc>110</pdfDoc>
>          <pdfDoc>103</pdfDoc>
>          <newValues>update values</newValues>
>       </updatePdf>
>    </soapenv:Body></soapenv:Envelope>
> The pdfDoc element should be defined as:   
>       <element name="pdfDoc" type="xsd:base64Binary"/>
>    
> Running Java2WSDL with --style="document" produces the correct output.       

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.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


Mime
View raw message