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 attribute namespace of xsd:import element, child element of xsd:schema, child element of types
  • soapaction: namespace appended method's name
  • methodname: name of method in api
  • url: 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) { 

enter image description here


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -