axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S?bastien Tardif (JIRA) <axis-...@ws.apache.org>
Subject [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”.
Date Mon, 01 Nov 2004 23:14:33 GMT
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


Mime
View raw message