axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25152] New: - For SOAP Doc Literal Binding, WSDL2Java generates wrong serializer classes for elements containing simpleTypes
Date Tue, 02 Dec 2003 22:27:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25152>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25152

For SOAP Doc Literal Binding, WSDL2Java generates wrong serializer classes for elements containing
simpleTypes

           Summary: For SOAP Doc Literal Binding, WSDL2Java generates wrong
                    serializer classes for elements containing simpleTypes
           Product: Axis
           Version: 1.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: zbolei@yahoo.com


If the wsdl has something like this:

<schema targetNamespace="http://openuri.com" >
   <element name="boo">
      <complexType>
         <sequence>
            <element name="a" type="xsd:string" />
...
and assuming that this is used as the message of a SOAP Doc Literal binding, 
the resulting serializer class looks like this:

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName
("http://openuri.com", "Query_Output"));
        org.apache.axis.description.ElementDesc elemField = new 
org.apache.axis.description.ElementDesc();
        elemField.setFieldName("a");
        elemField.setXmlName(new javax.xml.namespace.QName("", "A"));
        elemField.setXmlType(new javax.xml.namespace.QName
("http://www.w3.org/2001/XMLSchema", "string"));
        typeDesc.addFieldDesc(elemField);
    }

note the empty namespace value for elemField.setXmlName () function call.  in 
SOAP Rpc style, this would work.  but for SOAP Doc Literal, based on the 
schema's description, the element "a" belongs to the namespace 
of "http://openuri.com" and not null namespace.  as a result, when the soap 
response is sent back to axis (having the correct namespace), this value is 
not being retrieved from the soap message

Mime
View raw message