Hello,
I am trying to perform a basic test where I can call a basic
web service that I created and deployed in Tomcat with Axis2. I am able
to get the call to make it to the web service and perform the function,
but the response has an error that I can't seem to figure out. It is
failing in the sax parser and it is saying that it has run into an
unexpected child element. In the following response, I can't figure out
what is the offending element.
org.xml.sax.SAXException: SimpleDeserializer encountered a child
element, which is NOT expected, in something it was trying to
deserialize.
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:HelloWorldNoReturnResponse xmlns:ns="http://sampleAxisWebSvc">
<ns:return>1</ns:return>
</ns:HelloWorldNoReturnResponse>
</soapenv:Body>
</soapenv:Envelope>
I have pasted the code, the web service and the error that I am
receiving.
Any help would be appreciated.
Todd
Tested with Tomcat 5.5 and 6.0
Axis2 - 1.3
Openlaszlo - 4.0.7
The error that I am seeing is.
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG soap.LZSOAPHandler -
========== handleRequest([EMAIL PROTECTED])
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG soap.LZSOAPHandler -
[EMAIL PROTECTED]
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG soap.LZSOAPHandler -
<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><Hel
loWorldNoReturn
xmlns="http://sampleAxisWebSvc"/></soapenv:Body></soapenv:Envelope>
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG soap.LZSOAPHandler -
==========
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.header - >> "POST
/axis2/services/basicWebSvc HTTP/1.1[\r][\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.header - >>
"Content-Type: text/xml; charset=utf-8[\r][\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.header - >>
"SOAPAction: "urn:HelloWorldNoReturn"[\r][\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.header - >>
"User-Agent: Jakarta Commons-HttpClient/3.0[\r][\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.header - >>
"Host: 192.168.10.14:8081[\r][\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.header - >>
"Content-Length: 276[\r][\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.header - >>
"[\r][\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - >>
"<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><Hel
loWorldNoReturn
xmlns="http://sampleAxisWebSvc"/></soapenv:Body></soapenv:Envelope>"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.header - <<
"HTTP/1.1 200 OK[\r][\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.header - <<
"Server: Apache-Coyote/1.1[\r][\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.header - <<
"Content-Type: text/xml;charset=utf-8[\r][\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.header - <<
"Transfer-Encoding: chunked[\r][\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.header - <<
"Date: Fri, 14 Dec 2007 18:35:37 GMT[\r][\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG soap.LZSOAPHandler -
========== handleResponse([EMAIL PROTECTED])
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG soap.LZSOAPHandler -
==========
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "1"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "1"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "c"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - <<
"[\r]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - <<
"[\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "<"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "?"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "x"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "m"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "l"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << " "
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "v"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "e"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "r"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "s"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "i"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "o"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "n"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "="
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "'"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "1"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "."
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "0"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "'"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << " "
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "e"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "n"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "c"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "o"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "d"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "i"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "n"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "g"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "="
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "'"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "u"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "t"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "f"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "-"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "8"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "'"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "?"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << ">"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - <<
"<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body>
<ns:HelloWorldNoReturnResponse
xmlns:ns="http://sampleAxisWebSvc"><ns:return>1</ns:return></ns:HelloWor
ldNoReturnResponse></soapenv:Body></soapenv:Envelope>"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - <<
"[\r]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - <<
"[\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - << "0"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - <<
"[\r]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - <<
"[\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - <<
"[\r]"
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG wire.content - <<
"[\n]"
14 Dec 2007 13:35:37 (127.0.0.1 9) ERROR client.Call -
Exception:
org.xml.sax.SAXException: SimpleDeserializer encountered a child
element, which is NOT expected, in something it was trying to
deserialize.
at
org.openlaszlo.remote.swf.soap.encoding.SWFSimpleDeserializer.onStartChi
ld(SWFSimpleDeserializer.java:230)
at
org.apache.axis.encoding.DeserializationContext.startElement(Deserializa
tionContext.java:1025)
...
14 Dec 2007 13:35:37 (127.0.0.1 9) ERROR soap.LZSOAPService -
AxisFault
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG data.DataSource - got data
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG data.DataSource - remote
content was SWF
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG data.DataSource - setting
content length: 587
14 Dec 2007 13:35:37 (127.0.0.1 9) INFO data.DataSource - 587
bytes sent
14 Dec 2007 13:35:37 (127.0.0.1 9) DEBUG servlets.LZServlet - Request
9 finished