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 20054] - Parameters namespaces not taken into account by WSDL2Java
Date Fri, 21 Nov 2003 17:28:16 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=20054>.
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=20054

Parameters namespaces not taken into account by WSDL2Java





------- Additional Comments From nmoyere@calendra.com  2003-11-21 17:28 -------
Yes, there is a problem but I don't know what correct behavior should be.

For example, the samples/echo/InteropTest.wsdl contains
   <operation name="echoStructAsSimpleTypes">
      <soap:operation soapAction="http://soapinterop.org/"/>
      <input>
        <soap:body use="encoded" namespace="http://soapinterop.org/"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
        <soap:body use="encoded" namespace="http://soapinterop.org/"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
For me, it means that all the parts contained in the response MUST have
the "http://soapinterop.org/" namespace.
That's exactly what I have bugzilled and the patch makes JavaStubWriter generate
a stub where each parameter have the "http://soapinterop.org/" namespace instead
of the "" namespace.

In the same time, the samples/deplay/echoB.wsdd uses the
"http://soapinterop.org/" namespace for the service but when you look at the
response, it uses the namespace only for the reponse tag but not for the
parameters (it uses the "" namespace) :
<?xml version="1.0" encoding="UTF-8"?>
<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>
  <ns1:echoStructAsSimpleTypesResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://soapinterop.org/">
   <outputString xsi:type="xsd:string">Hello</outputString>
   <outputInteger xsi:type="xsd:int">5</outputInteger>
   <outputFloat xsi:type="xsd:float">103.0</outputFloat>
  </ns1:echoStructAsSimpleTypesResponse>
 </soapenv:Body>
</soapenv:Envelope>

The new stub are looking for <ns1:outputString....

Either the JavaProvider does not use correctly the namespace for the response
parameters (it seems to use it correctly for the request as it understant the
request sent by the new stub)
or the WSDL is not consistent with the WSDD (and this is a unit test bug).

I will send an updated patch that takes the CVS changes into account.

Mime
View raw message