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 "Pétur Runólfsson (JIRA)" <ji...@apache.org> on 2009/06/08 13:50:07 UTC

[jira] Updated: (AXIS2-4367) Parameter of type object is always passed as javax.activation.DataHandler

     [ https://issues.apache.org/jira/browse/AXIS2-4367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pétur Runólfsson updated AXIS2-4367:
------------------------------------

    Attachment: Server.java

Attached web service used to trigger problem.

> 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
>         Attachments: Server.java
>
>
> 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.