Hi,

> I have WebService enabled a service method that returns OMElement. The
> generated WSDL shows the element type as 'anyType'.
> 
> I generated a stub from the WSDL and executed a client invoking the
> WebService method through the stub.
> 
> The HTTP trace shows the response stream returned by WebService is
> correct. 
> But in the client I am getting the following error:
> 
> org.apache.axis2.databinding.ADBException: Any type element type has
> not been given
>       at
> org.apache.axis2.databinding.utils.ConverterUtil.getAnyTypeObject(Conv
> erterUtil.java:1612)
> 
> Exerpt from WSDL is:
> 
> <xs:element name="mtomSampleResponse">
> <xs:complexType><xs:sequence>
> <xs:element minOccurs="0" name="return" nillable="true"
> type="xs:anyType"/>
> </xs:sequence></xs:complexType>
> </xs:element>
> 
> Exerpt from the response stream is:
> 
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope
> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";><soapenv:Body>
> <ns:mtomSampleResponse
> xmlns:ns="http://ws.apache.org/axis2";><ns:return>
> <return><xop:Include
> href="cid:1.urn:uuid:[email protected]"
> xmlns:xop="http://www.w3.org/2004/08/xop/include"; /></return>
> </ns:return></ns:mtomSampleResponse>
> </soapenv:Body></soapenv:Envelope>
> 
> Could you please kindly look into the same and let me know how I can
> overcome the above problem.
> Do I have to configure anything to map the response element of type
> 'anyType' anywhere to construct 'OMElement' back. 
> 
I am using Axis 2-1.4.1.


> Regards,
> Sathish Chandra
> 

Reply via email to