-
Jun 15th, 2007, 10:51 AM
#1
Web Service client: SimpleDeserializer encountered a child element, NOT expected
I'm using a Web Service client using spring-ws-rc2, with WebServiceTemplate, although I can access the WebService with JMeter, I am getting an error with spring-ws.
What I get from spring-ws is :-
<soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<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 />
</soapenv:Fault>
I have tried both the default SaajSoapMessageFactory and the AxiomSoapMessageFactory but both give same. The soap message I am sending is loaded from a file on the classpath, and has the same contents as the JMeter request. I use sendSourceAndReceiveToResult(requestSource, result) like the echoClient.
What I should get back (like JMeter) is :-
(I have edited below after my original post)
<?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>
<ns1:loadPromotionsSyncResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://service.intf.dprj.evant.com"/>
</soapenv:Body>
</soapenv:Envelope>
I did google 'org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize'
and came across a few quotes saying, some implementations can't cope with arrays very well, and the WSDL does have arrays.
I cannot change the WSDL, as I'm just the client of Web Service in this case.
Last edited by PeteTh; Jun 15th, 2007 at 11:19 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules