S
santosh.ncstk
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"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<RequestDetail>
<BookDetail>
<Date>2008-09-09</Date>
<City>London</City>
</BookDetail>
<PersonDetail>
<Name>Santosh</Name>
<Age>25</Age>
<Address>London</Address>
</PersonDetail>
</RequestDetail>
</soap:Body>
</soap:Envelope>
=================x
Provider end return Exception / Error is :-
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope
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:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXException: SimpleDeserializer
encountered a child element, which is NOT expected, in something it
was trying to deserialize.</faultstring>
<detail>
<ns1:hostname xmlns:ns1="http://xml.apache.org/
axis/">xmlapps.testgo1.com</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
===================x
WSDL file is :-
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:TestSearchEngine" xmlns="http://
schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-
soap" xmlns:impl="urn:TestSearchEngine"
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">
<!--WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT)-->
<wsdl:message name="searchTestRequest">
<wsdl
art name="in0" type="soapenc:string"/>
</wsdl:message>
<wsdl:message name="searchTestResponse">
<wsdl
art name="searchTestReturn" type="soapenc:string"/>
</wsdl:message>
<wsdl
ortType name="TestSearchEngineInterface">
<wsdl
peration name="searchTest" parameterOrder="in0">
<wsdl:input message="impl:searchTestRequest"
name="searchTestRequest"/>
<wsdl
utput message="impl:searchTestResponse"
name="searchTestResponse"/>
</wsdl
peration>
</wsdl
ortType>
<wsdl:binding name="wsTestsearchdetailsSoapBinding"
type="impl:TestSearchEngineInterface">
<wsdlsoap:binding style="rpc" transport="http://
schemas.xmlsoap.org/soap/http"/>
<wsdl
peration name="searchTest">
<wsdlsoap
peration soapAction=""/>
<wsdl:input name="searchTestRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/
soap/encoding/" namespace="urn:TestSearchEngine" use="encoded"/>
</wsdl:input>
<wsdl
utput name="searchTestResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/
soap/encoding/" namespace="urn:TestSearchEngine" use="encoded"/>
</wsdl
utput>
</wsdl
peration>
</wsdl:binding>
<wsdl:service name="TestSearchEngineInterfaceService">
<wsdl
ort binding="impl:wsTestsearchdetailsSoapBinding"
name="wsTestsearchdetails">
<wsdlsoap:address location="http://localhost:8080/axis/
services/wsTestsearchdetails"/>
</wsdl
ort>
</wsdl:service>
</wsdl:definitions>
=================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
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"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<RequestDetail>
<BookDetail>
<Date>2008-09-09</Date>
<City>London</City>
</BookDetail>
<PersonDetail>
<Name>Santosh</Name>
<Age>25</Age>
<Address>London</Address>
</PersonDetail>
</RequestDetail>
</soap:Body>
</soap:Envelope>
=================x
Provider end return Exception / Error is :-
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope
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:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXException: SimpleDeserializer
encountered a child element, which is NOT expected, in something it
was trying to deserialize.</faultstring>
<detail>
<ns1:hostname xmlns:ns1="http://xml.apache.org/
axis/">xmlapps.testgo1.com</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
===================x
WSDL file is :-
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:TestSearchEngine" xmlns="http://
schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-
soap" xmlns:impl="urn:TestSearchEngine"
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">
<!--WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT)-->
<wsdl:message name="searchTestRequest">
<wsdl
</wsdl:message>
<wsdl:message name="searchTestResponse">
<wsdl
</wsdl:message>
<wsdl
<wsdl
<wsdl:input message="impl:searchTestRequest"
name="searchTestRequest"/>
<wsdl
name="searchTestResponse"/>
</wsdl
</wsdl
<wsdl:binding name="wsTestsearchdetailsSoapBinding"
type="impl:TestSearchEngineInterface">
<wsdlsoap:binding style="rpc" transport="http://
schemas.xmlsoap.org/soap/http"/>
<wsdl
<wsdlsoap
<wsdl:input name="searchTestRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/
soap/encoding/" namespace="urn:TestSearchEngine" use="encoded"/>
</wsdl:input>
<wsdl
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/
soap/encoding/" namespace="urn:TestSearchEngine" use="encoded"/>
</wsdl
</wsdl
</wsdl:binding>
<wsdl:service name="TestSearchEngineInterfaceService">
<wsdl
name="wsTestsearchdetails">
<wsdlsoap:address location="http://localhost:8080/axis/
services/wsTestsearchdetails"/>
</wsdl
</wsdl:service>
</wsdl:definitions>
=================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