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 "S?bastien Tardif (JIRA)" <ax...@ws.apache.org> on 2004/11/02 00:14:33 UTC

[jira] Created: (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”.

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


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 it’s 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


[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”.

Posted by "Ashutosh Shahi (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1636?page=comments#action_55780 ]
     
Ashutosh Shahi commented on AXIS-1636:
--------------------------------------

  To get over this issue, you can specify the output name desired in the "returnQname" attribute of operation description in deploy.wsdd. Axis defaults to using <methodname+Return> kind of response only when an operation description is not specified in the WSDD file. 
Ashutosh

> 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 it’s 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


[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”.

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ 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 it’s 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


[jira] Updated: (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”.

Posted by "S?bastien Tardif (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1636?page=history ]

Sébastien Tardif updated AXIS-1636:
-----------------------------------

    Attachment: docHarbor.wsdl

> 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 it’s 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