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 "Kevin Fung (JIRA)" <ax...@ws.apache.org> on 2005/08/29 19:29:06 UTC

[jira] Commented: (AXIS-2194) SOAP response differs from WSDL with doc/literal

    [ http://issues.apache.org/jira/browse/AXIS-2194?page=comments#action_12320439 ] 

Kevin Fung commented on AXIS-2194:
----------------------------------

To highlight the problem explicitly:
The WSDL specifies the root element of the response body should be "echoReturn", but the runtime soap response has "messageReturn" as the root element of the body. It seems axis 1.2.1 took the root element of the request body, which is "message", and appended Return as the name of the response body root element, which is incorrect.

> SOAP response differs from WSDL with doc/literal
> ------------------------------------------------
>
>          Key: AXIS-2194
>          URL: http://issues.apache.org/jira/browse/AXIS-2194
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2.1
>  Environment: OS: Windows 2K SP3
> JVM: 1.5.0_04-b05
>     Reporter: Kevin Fung
>     Priority: Critical

>
> When the JavaServiceDesc is set to use Doc/Literal, the generated WSDL is correct. However, when a Doc/Literal SOAP request is sent, the SOAP response does not seems to match the WSDL spec.
> WSDL**************************************************
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://echo.samples.esf.cibtech.citi.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://echo.samples.esf.cibtech.citi.com" xmlns:intf="http://echo.samples.esf.cibtech.citi.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><!--WSDL created by Apache Axis version: 1.2.1
> Built on Jun 14, 2005 (09:15:57 EDT)--><wsdl:types><schema elementFormDefault="qualified" targetNamespace="http://echo.samples.esf.cibtech.citi.com" xmlns="http://www.w3.org/2001/XMLSchema"><element name="message" type="xsd:string"/><element name="echoReturn" type="xsd:string"/></schema></wsdl:types>
>   <wsdl:message name="echoRequest">
>     <wsdl:part element="impl:message" name="message"/>
>   </wsdl:message>
>   <wsdl:message name="echoResponse">
>     <wsdl:part element="impl:echoReturn" name="echoReturn"/>
>   </wsdl:message>
>   <wsdl:portType name="EchoImpl">
>     <wsdl:operation name="echo" parameterOrder="message">
>       <wsdl:input message="impl:echoRequest" name="echoRequest"/>
>       <wsdl:output message="impl:echoResponse" name="echoResponse"/>
>     </wsdl:operation>
>   </wsdl:portType>
>   <wsdl:binding name="EchoServiceSoapBinding" type="impl:EchoImpl">
>     <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
>     <wsdl:operation name="echo">
>       <wsdlsoap:operation soapAction=""/>
>       <wsdl:input name="echoRequest">
>         <wsdlsoap:body use="literal"/>
>       </wsdl:input>
>       <wsdl:output name="echoResponse">
>         <wsdlsoap:body use="literal"/>
>       </wsdl:output>
>     </wsdl:operation>
>   </wsdl:binding>
>   <wsdl:service name="EchoImplService">
>     <wsdl:port binding="impl:EchoServiceSoapBinding" name="EchoService">
>       <wsdlsoap:address location="http://localhost:8081/echo/EchoService"/>
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> SOAP request******************************************
> <?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><ns2:message xmlns:ns2="http://echo.samples.esf.cibtech.citi.com">hello</ns2:message></soapenv:Body></soapenv:Envelope>
> 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><messageReturn xsi:type="xsd:string" xmlns="http://echo.samples.esf.cibtech.citi.com">hello</messageReturn></soapenv:Body></soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira