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 "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2004/11/15 17:42:24 UTC
[jira] Commented: (AXIS-1636) Output Soap message using document/literal wrapped do not use the XSD declared root element but one that finish by the hard coded keyword Response.
[ http://nagoya.apache.org/jira/browse/AXIS-1636?page=comments#action_55505 ]
Davanum Srinivas commented on AXIS-1636:
----------------------------------------
Again, Please help by providing a patch that does not break existing test bed.
thanks,
dims
> Output Soap message using document/literal wrapped do not use the XSD declared root element but one that finish by the hard coded keyword Response.
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS-1636
> URL: http://nagoya.apache.org/jira/browse/AXIS-1636
> Project: Axis
> Type: Bug
> Components: Serialization/Deserialization
> Versions: 1.2RC1
> Environment: 09/23/2004
> Reporter: Sébastien Tardif
> Attachments: docHarbor.wsdl
>
> As you can see in RPCProvider.java line 318: method processMessage
> /* Now put the result in the result SOAPEnvelope */
> /*************************************************/
> RPCElement resBody = new RPCElement(methodName + "Response");
> resBody.setPrefix(body.getPrefix());
> resBody.setNamespaceURI(body.getNamespaceURI());
> resBody.setEncodingStyle(msgContext.getEncodingStyle());
> So having a schema like:
>
> <wsdl:operation name="getDocumentsList">
> <wsdlsoap:operation/>
> <wsdl:input name="getDocumentsListRequest">
> <wsdlsoap:body use="literal" namespace="urn:webservices.docharbor.com"/>
> </wsdl:input>
> <wsdl:output name="getDocumentsListResponse">
> <wsdlsoap:body use="literal" namespace="urn:webservices.docharbor.com"/>
> </wsdl:output>
> </wsdl:operation>
>
> <wsdl:portType name="DocHarborService">
> <wsdl:operation name="getDocumentsList">
> <wsdl:input name="getDocumentsListRequest" message="impl:getDocumentsListRequest"/>
> <wsdl:output name="getDocumentsListResponse" message="impl:getDocumentsListResponse"/>
> </wsdl:operation>
>
> <wsdl:message name="getDocumentsListResponse">
> <wsdl:part name="parameters" element="impl:DocumentsListResponseWrapper"/>
> </wsdl:message>
>
> <element name="DocumentsListResponseWrapper" type="impl:DocumentsListResponseWrapper_t"/>
> <complexType name="DocumentsListResponseWrapper_t">
> <sequence>
> <element name="documentsList" type="impl:DocumentsList"/>
> </sequence>
> </complexType>
>
> We see that the root element is DocumentsListResponseWrapper and its also what .NET expect after it digest the WSDL.
> But we get is this:
> <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><getDocumentsListResponse xmlns="urn:webservices.docharbor.com"><DocumentsList xmlns="urn:webservices.docharbor.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="DocumentsList
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira