• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have developed a client for an web service.

I try to call methods of the service it gives me the following error on method

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

<b>Java Code:</b>

Object xe = call.invoke( new Object [] {confrimationNumber});


<b>Some part of my WSDL file</b>

<element name="getAppointmentsByConfirmation">
<complexType>
<sequence>
<element name="confirmationNumber" type="xsd:string"/>
</sequence>
</complexType>
</element>

<element name="getAppointmentsByConfirmationResponse">
<complexType>
<sequence>
<element name="getAppointmentsByConfirmationReturn" type="tns1:XmlElement"/>
</sequence>
</complexType>
</element>

<wsdl:message name="getAppointmentsByConfirmationRequest">
<wsdl art element="tns1:getAppointmentsByConfirmation" name="parameters"/>
</wsdl:message>

<wsdl:message name="getAppointmentsByConfirmationResponse">
<wsdl art element="tns1:getAppointmentsByConfirmationResponse" name="parameters"/>
</wsdl:message>

<wsdl peration name="getAppointmentsByConfirmation">
<wsdl:input message="impl:getAppointmentsByConfirmationRequest" name="getAppointmentsByConfirmationRequest"/>
<wsdl utput message="impl:getAppointmentsByConfirmationResponse" name="getAppointmentsByConfirmationResponse"/>
</wsdl peration>

I have checked with TCPMon that I am recieving the correct response.

Does anyone know what is wrong?

Please help. Many thanks in advance

Bikramjit
reply
    Bookmark Topic Watch Topic
  • New Topic