axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Woinoski (JIRA)" <>
Subject [jira] Created: (AXIS-1646) "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
Date Thu, 04 Nov 2004 23:08:34 GMT
"Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters

         Key: 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">
      <element maxOccurs="unbounded" name="pdfDoc" type="xsd:byte"/>
      <element name="newValues" type="xsd:string"/>

Stubs generated with WSDL2Java create the following SOAP message: 

soapenv:Envelope xmlns:soapenv="" xmlns:xsd=""
      <updatePdf xmlns="">
         <newValues>update values</newValues>

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:
If you want more information on JIRA, or have a bug to report see:

View raw message