File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Author

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

TigerJeet Singh
Greenhorn

Joined: May 23, 2007
Posts: 3
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.xml.sax.SAXException: SimpleDeserializer encountered a child element