Group: comp.lang.java.programmer
From: santosh.ncstk@gmail.com
Date: Wednesday, March 26, 2008 2:32 AM
Subject: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize

Dear All,

I have installed Axis 1.3 (Java) and provided a service to
Requester(other end). At my end when i invoking web service by passing
XmlRequest as string from java client program then it returns proper
Response xml. but

The Service Requester(other end) invoking our web services
using WFETCH tool. They send SOAP request then from Service Provider
end(my end) returns the soapenv:Server.userException -
SimpleDeserializer encountered a child element, which is NOT expected,
in something it was trying to deserialize.

Please see below the SOAP Request, Exception / Error and WSDL file.

Requester send SOAP request is :-

Content-Type: text/xml; charset=utf-8
SOAPAction: "http://www.eviivo.com/UTSv/2004/01/01/SearchTest"


xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">



2008-09-09
London


Santosh
25

London






=================x

Provider end return Exception / Error is :-


xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">


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


xmlapps.testgo1.com





===================x

WSDL file is :-


xmlns:intf="urn:TestSearchEngine" xmlns:soapenc="http://
schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://
schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/
wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">


















name="searchTestRequest"/>

name="searchTestResponse"/>





type="impl:TestSearchEngineInterface">

























name="wsTestsearchdetails">









=================x

1. I am thinking that SOAP request what they send that is not proper/
requiered to my end(provider). if so what change i have to do.

I am googling it from last 3 day's and found some tricks which i
tried but Nothing works.




Thanx and Regards
Santosh