Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

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

 
 
shrikant
Guest
Posts: n/a
 
      12-20-2006
Hi,
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 java.io.Serializable {
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"
use="literal">
<operation name="getData" qname="ns1:getData"
returnQName="ns1:getDataReturn" returnType="xsd:string"
soapAction="" xmlns:ns1="http://webservices.test.com"
xmlnssd="http://www.w3.org/2001/XMLSchema">
<parameter qname="ns1:aCollection"
type="ns1:MyCollection" />
</operation>
<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="http://webservices.test.com" />
<parameter name="wsdlTargetNamespace"
value="http://webservices.test.com" />
<parameter name="wsdlServiceElement"
value="ImportWebserviceService" />
<typeMapping
deserializer="org.apache.axis.encoding.ser.BeanDes erializerFactory"
encodingStyle="" qname="ns2:MyCollection"
serializer="org.apache.axis.encoding.ser.BeanSeria lizerFactory"
type="java:com.test.webservices.MyCollection"
xmlns:ns2="http://webservices.test.com" />
<arrayMapping innerType="xsd:string"
languageSpecificType="java:java.lang.String[]"
qname="ns3:ArrayOf_xsd_string"
xmlns:ns3="http://webservices.test.com"
xmlnssd="http://www.w3.org/2001/XMLSchema" />
<arrayMapping innerType="ns4:ArrayOf_xsd_string"
languageSpecificType="java:java.lang.String[][]"
qname="ns4:ArrayOfArrayOf_xsd_string"
xmlns:ns4="http://webservices.test.com" />
</service>
.......
This web service is deployed properly and upon accessing this web
service i am getting the following XML response from the web service.
.....
<soapenv:Envelope
xmlns:soapenv = "http://schemas.xmlsoap.org/soap/envelope/"
xmlnssd = "http://www.w3.org/2001/XMLSchema"
xmlnssi = "http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXException: No deserializer for
{http://www.w3.org/2001/XMLSchema}anyType</faultstring>
<detail>
<ns1:hostname xmlns:ns1 =
"http://xml.apache.org/axis/">ysi-in-c142</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
.....
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.
Shrikant

 
Reply With Quote
 
 
 
Reply

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 thefatson@gmail.com Java 1 09-14-2006 02:50 PM
How to write a deserializer? Wibble Java 6 01-26-2006 07:36 PM



Advertisments