axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
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

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

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: https://issues.apache.org/jira/browse/AXIS2-4367
>             Project: Axis2
>          Issue Type: Improvement
>    Affects Versions: 1.4.1
>            Reporter: Pétur Runólfsson
>         Attachments: Server.java, Server.wsdl, services.xml, Value.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.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message