aspose file tools
The moose likes Web Services and the fly likes org.xml.sax.SAXException: SimpleDeserializer encountered a child element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "org.xml.sax.SAXException: SimpleDeserializer encountered a child element" Watch "org.xml.sax.SAXException: SimpleDeserializer encountered a child element" New topic

org.xml.sax.SAXException: SimpleDeserializer encountered a child element


Joined: Dec 11, 2000
Posts: 16
I'm trying to run a HelloWorld web service using Apache Axis 1.2 on WSAD 5.1.2.

I've exposed a method which takes a String argument and prints it to the console..The method does not return anything..

The following is the wsdl and wsdd..

<schema xmlns="" targetNamespace="" elementFormDefault="qualified">
<element name="in0" type="xsd:string"/>
<wsdl:message name="sayHelloResponse">
<wsdl:message name="sayHelloRequest">
<wsdl art name="in0" element="impl:in0"/>
<wsdl ortType name="HelloAxisSEI">
<wsdl peration name="sayHello" parameterOrder="in0">
<wsdl:input name="sayHelloRequest" message="impl:sayHelloRequest"/>
<wsdl utput name="sayHelloResponse" message="impl:sayHelloResponse"/>
</wsdl peration>
</wsdl ortType>
<wsdl:binding name="HelloServiceSoapBinding" type="impl:HelloAxisSEI">
<wsdlsoap:binding style="document" transport=""/>
<wsdl peration name="sayHello">
<wsdlsoap peration soapAction=""/>
<wsdl:input name="sayHelloRequest">
<wsdlsoap:body use="literal"/>
<wsdl utput name="sayHelloResponse">
<wsdlsoap:body use="literal"/>
</wsdl utput>
</wsdl peration>
<wsdl:service name="HelloAxisSEIService">
<wsdl ort name="HelloService" binding="impl:HelloServiceSoapBinding">
<wsdlsoap:address location="http://localhost:9080/axis-war/services/HelloService"/>
</wsdl ort>
</wsdl efinitions>


<deployment xmlns=""

<service name="HelloService" provider="java:RPC" style="document" use="literal">
<parameter name="wsdlServiceElement" value="HelloAxisSEIService"/>
<parameter name="wsdlServicePort" value="HelloService"/>
<parameter name="wsdlPortType" value="HelloAxisSEI"/>
<operation name="sayHello" qname="q0:sayHello"
soapAction="" xmlns:q0=""
<parameter qname="q0:in0" type="xsd:string"/>
<parameter name="className" value="com.myaxis.HelloAxisImpl"/>
<parameter name="allowedMethods" value="sayHello"/>
<parameter name="wsdlTargetNamespace" value=""/>

And the JSP client code...

org.apache.axis.client.Service s = new org.apache.axis.client.Service();
org.apache.axis.client.Call c = (org.apache.axis.client.Call) s.createCall();

try {
c.invoke(new Object[] {"Hello"});
} catch (Exception e) {

The following exception is thrown if I try accessing the service..

org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.

Could anyone pls let me know the problem?
It is sorta covered in the JavaRanch Style Guide.
subject: org.xml.sax.SAXException: SimpleDeserializer encountered a child element