Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

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

Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
You get good luck from rubbing the belly of a tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic