android - What could be the reason for the Soap Fault (faultcode: soapenv:Client, faultstring:Bad Request) -
i writing client consume soap web service in android using ksoap2. , have received soap fault exception. here excerpt logcat.
<soapenv:body><soapenv:fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:client</faultcode><faultstring>bad request</faultstring></soapenv:fault></soapenv:body></soapenv:envelope> 04-06 09:04:09.693: e/searchpublications(1159): soapfault - faultcode: 'soapenv:client' faultstring: 'bad request' faultactor: 'null' detail: null
this how extracted values of final strings wsdl:
namespace
: value of attributenamespace
ofxsd:import
element, child element ofxsd:schema
, child element oftypes
soapaction
: namespace appended method's namemethodname
: name of method in apiurl
: actual url of wsdl
(reference: this answer , link mentioned in it.)
i understand there wrong code, can might causing , if have set values of mentioned final variables correctly?
i tried setting dotnet
flag true
, false
well. trying response in soapobject
xml document, , have read in article if result in xml, use soapobject
.
i tried debug it, , variables apparently having correct values (as shown in debug perspective) before line:
result= (soapobject) envelope.getresponse();
at line, soapfault excetion thrown; can compare following piece of code , screenshot. can suggest why might occurring , else try fix it?
try{ result = (soapobject) soapenvelope.getresponse(); } catch (throwable e) {
Comments
Post a Comment