Velocity Reviews

Velocity Reviews (
-   Java (
-   -   org.xml.sax.SAXException: No deserializer for anyType (

shrikant 12-20-2006 01:07 PM

org.xml.sax.SAXException: No deserializer for anyType
I am getting deserialization exception on accessing the web service.
I am using apache axis for developing web service and my web server is
Tomcat 5.5.
I have created a java bean and used it as a parameter to web service
java class.
The bean class structure is as follows...

public class MyCollection implements {
private int actualSize;
private java.lang.String[][] Hashtable;
private int increamentValue;
// ... and get/set methods for all three members...
and added the getter/setter methods for these private members.

Object of this bean is sent to web service as method parameter. The
method signature in web service class is...
public String getData(MyCollection aCollection);

The server-config.wsdd file has the following service definition. I am
doubtful about the <typeMapping> tag.
<service name="ImportWebservice" provider="java:RPC" style="wrapped"
<operation name="getData" qname="ns1:getData"
returnQName="ns1:getDataReturn" returnType="xsd:string"
soapAction="" xmlns:ns1=""
<parameter qname="ns1:aCollection"
type="ns1:MyCollection" />
<parameter name="allowedMethods" value="getData" />
<parameter name="typeMappingVersion" value="1.2" />
<parameter name="wsdlPortType" value="ImportWebservice" />
<parameter name="className"
value="com.test.webservices.ImportWebservice" />
<parameter name="wsdlServicePort" value="ImportWebservice" />
<parameter name="schemaQualified"
value="" />
<parameter name="wsdlTargetNamespace"
value="" />
<parameter name="wsdlServiceElement"
value="ImportWebserviceService" />
deserializer="org.apache.axis.encoding.ser.BeanDes erializerFactory"
encodingStyle="" qname="ns2:MyCollection"
serializer="org.apache.axis.encoding.ser.BeanSeria lizerFactory"
xmlns:ns2="" />
<arrayMapping innerType="xsd:string"
xmlns:xsd="" />
<arrayMapping innerType="ns4:ArrayOf_xsd_string"
xmlns:ns4="" />
This web service is deployed properly and upon accessing this web
service i am getting the following XML response from the web service.
xmlns:soapenv = ""
xmlns:xsd = ""
xmlns:xsi = "">
<faultstring>org.xml.sax.SAXException: No deserializer for
<ns1:hostname xmlns:ns1 =
Please help me identify where is the error. Whether I am missing or
incorrectly written any entry in the server-config.wsdd.

Thnx in advance.

All times are GMT. The time now is 12:38 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.