By invoking web service using generated stub for a WSDL which contain  message 
element that have type  "xsd:anyType" did not work as expected 
----------------------------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-1239
                 URL: http://issues.apache.org/jira/browse/AXIS2-1239
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: databinding
            Reporter: indika priyantha kumara
         Attachments: BaseDataTypesRpcLit.wsdl

By invoking web service using generated stub for a WSDL which contain input 
message element as 
<wsdl:message name="IBaseDataTypesRpcLit_RetObject_InputMessage">
<wsdl:part name="inObject" type="xsd:anyType"/>
</wsdl:message> 

 and contains out message element as 
<wsdl:message name="IBaseDataTypesRpcLit_RetObject_OutputMessage">
<wsdl:part name="RetObjectResult" type="xsd:anyType"/>
</wsdl:message>

did not work as expect.

The monitored messages by tcpmon
Request message 

<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
      <soapenv:Header />
      <soapenv:Body>
         <ns2:RetObject xmlns:ns2="http://tempuri.org/";>
            <dummy>true</dummy> 
         </ns2:RetObject>
      </soapenv:Body>
   </soapenv:Envelope>

Expected request message
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
      <soapenv:Header />
      <soapenv:Body>
         <ns2:RetObject xmlns:ns2="http://tempuri.org/";>
        <inObject>
                <dummy>true</dummy>     
        </inObject>
         </ns2:RetObject>
      </soapenv:Body>
   </soapenv:Envelope>

Out put message that  got
   Soap fault unexpected  sub element dummy

Out put expected

<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
      <soapenv:Header />
      <soapenv:Body>
         <ns2:RetObject xmlns:ns2="http://tempuri.org/";>
        <RetObjectResult>
                <dummy>true</dummy>     
        </RetObjectResult>
         </ns2:RetObject>
      </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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to