axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <>
Subject [jira] Resolved: (AXIS2-4367) Parameter of type object is always passed as javax.activation.DataHandler
Date Wed, 05 Jan 2011 12:07:48 GMT


Amila Chinthaka Suriarachchi resolved AXIS2-4367.

    Resolution: Fixed

this is fixed with the inheritance support of POJO. 

if not working please update your service class and the request xml.

> Parameter of type object is always passed as javax.activation.DataHandler
> -------------------------------------------------------------------------
>                 Key: AXIS2-4367
>                 URL:
>             Project: Axis2
>          Issue Type: Improvement
>    Affects Versions: 1.4.1
>            Reporter: Pétur Runólfsson
>         Attachments:, Server.wsdl, services.xml,
> 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=""
>                xmlns:axis=""
>                xmlns:xsd=""
>                xmlns:xsi="">
>    <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.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message