Has anyone used the kSOAP API to access an Axis WS? If you have I am
wondering if you ever
ran into this exception - I think I have the client setup correctly and
yet the XmlPullParser is complaining.
Any ideas on this would be greatly appreciated. Thanks
request: <?xml version="1.0" encoding="UTF-8"
standalone="no"?><v:Envelope
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns:d="http://www.w3.org/2001/XMLSchema"
xmlns:c="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"><v:Header
/><v:Body><n0:getBooks id="o0" c:root="1" xmlns:n0="http://myBooks"
/></v:Body></v:Envelope>
response: <html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
</body>
</html>
org.xmlpull.v1.XmlPullParserException: expected: START_TAG
{http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG
<html>@1:6 in java.io.inputstreamrea...@1d32ad89)
at org.kxml2.io.KXmlParser.exception(Unknown Source)
at org.kxml2.io.KXmlParser.require(Unknown Source)
at org.ksoap2.SoapEnvelope.parse(Unknown Source)
at org.ksoap2.transport.Transport.parseResponse(Unknown Source)
at org.ksoap2.transport.HttpTransport.call(Unknown Source)
at Utils.TestAxis.sendkSOAPOSGiPost(Unknown Source)
at Utils.TestAxis.main(Unknown Source)
at java.lang.reflect.Method.invoke(Compiled Method)(Unknown Source)
at sun.misc.CVM.runMain(Unknown Source)