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 10613] New: - part name in soap response not the same as part name defined in wsdl
Date Tue, 09 Jul 2002 21:26:37 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=10613>.
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=10613

part name in soap response not the same as part name defined in wsdl

           Summary: part name in soap response not the same as part name
                    defined in wsdl
           Product: Axis
           Version: current (nightly)
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Basic Architecture
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: hoa_v_nguyen@hotmail.com


I have a simple service defined in a file called ConcatStrings.jws:

public String concat(String str1, String str2) {
   return str1 + str2;
}

The WSDL defines the return value's part name as 'return' but the soap response 
that I get after invoking the service is contains a part named 'concatReturn' 
instead of 'return'.

Here's the WSDL:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions 
targetNamespace="http://localhost:8080/axis/ConcatStrings.jws/axis/ConcatStrings
.jws" xmlns="http://schemas.xmlsoap.org/wsdl/" 
xmlns:impl="http://localhost:8080/axis/ConcatStrings.jws/axis/ConcatStrings.jws-
impl" 
xmlns:intf="http://localhost:8080/axis/ConcatStrings.jws/axis/ConcatStrings.jws"
 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <wsdl:message name="concatResponse">
    <wsdl:part name="return" type="xsd:string"/>
  </wsdl:message>
  <wsdl:message name="concatRequest">
    <wsdl:part name="str1" type="xsd:string"/>
    <wsdl:part name="str2" type="xsd:string"/>
  </wsdl:message>
  <wsdl:portType name="ConcatStrings">
    <wsdl:operation name="concat" parameterOrder="str1 str2">
      <wsdl:input message="intf:concatRequest" name="concatRequest"/>
      <wsdl:output message="intf:concatResponse" name="concatResponse"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="ConcatStringsSoapBinding" type="intf:ConcatStrings">
    <wsdlsoap:binding style="rpc" 
transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="concat">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="concatRequest">
        <wsdlsoap:body 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="http://localhost:8080/axis/ConcatStrings.jws/axis/ConcatStrings.jws" 
use="encoded"/>
      </wsdl:input>
      <wsdl:output name="concatResponse">
        <wsdlsoap:body 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
namespace="http://localhost:8080/axis/ConcatStrings.jws/axis/ConcatStrings.jws" 
use="encoded"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="ConcatStringsService">
    <wsdl:port binding="intf:ConcatStringsSoapBinding" name="ConcatStrings">
      <wsdlsoap:address 
location="http://localhost:8080/axis/ConcatStrings.jws"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

And here's the soap response:
<?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:concatResponse 
xmlns:ns1="http://localhost:8080/axis/ConcatStrings.jws/axis/ConcatStrings.jws" 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
   <concatReturn xsi:type="xsd:string">hello there</concatReturn>
  </ns1:concatResponse>
 </soapenv:Body>
</soapenv:Envelope>

Mime
View raw message