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 "Venkat Reddy (JIRA)" <ax...@ws.apache.org> on 2004/11/08 12:47:33 UTC

[jira] Commented: (AXIS-1645) "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters

     [ http://nagoya.apache.org/jira/browse/AXIS-1645?page=comments#action_55184 ]
     
Venkat Reddy commented on AXIS-1645:
------------------------------------

duplicate of AXIS-1646

> "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
> ----------------------------------------------------------------------------------
>
>          Key: AXIS-1645
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1645
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC1
>     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