Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > org.xml.sax.SAXException: No deserializer for anyType

Thread Tools

org.xml.sax.SAXException: No deserializer for anyType

Posts: n/a
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"
xmlnssd="" />
<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 = ""
xmlnssd = ""
xmlnssi = "">
<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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANN] pyxser-1.5r --- Python Object to XML serializer/deserializer Daniel Molina Wegener Python 3 08-28-2010 10:09 PM
[ANN] pyxser-1.4.4r --- Python Object to XML serializer/deserializer Daniel Molina Wegener Python 0 06-20-2010 04:17 PM
AXIS: no deserializer defined for array type string R Java 0 11-13-2006 04:31 PM
No deserializer for org.uddi4j.datatype.Name Java 1 09-14-2006 02:50 PM
How to write a deserializer? Wibble Java 6 01-26-2006 07:36 PM