Parameter of type object is always passed as javax.activation.DataHandler
-------------------------------------------------------------------------

                 Key: AXIS2-4367
                 URL: https://issues.apache.org/jira/browse/AXIS2-4367
             Project: Axis 2.0 (Axis2)
          Issue Type: Improvement
    Affects Versions: 1.4.1
            Reporter: Pétur Runólfsson


If a POJO web service method has a parameter of type java.lang.Object, the 
actual parameter passed to this method is always of type 
javax.activation.DataHandler. If the parameter element in the SOAP request 
contains an xsi:type attribute, that attribute should be used to determine the 
type of object to create to pass to the parameter.

For example, in the following request, the type xsd:Value should be used to 
create the parameter param0 (the type xsd:Value is defined in the wsdl).

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope";
               xmlns:axis="http://ws.apache.org/axis2";
               xmlns:xsd="http://ws.apache.org/axis2/xsd";
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   <soap:Header/>
   <soap:Body>
      <axis:process>
         <axis:param0 xsi:type="xsd:Value">
            <xsd:z>Hello</xsd:z>
         </axis:param0>
      </axis:process>
   </soap:Body>
</soap:Envelope>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to