Android kSOAP2 connecting to web service.

谁说我不能喝 提交于 2020-01-11 11:53:33

问题


I am trying to use kSOAP2 to connect an android device to a web service. If anyone is interested it is an SAP ABAP Webservice.

I am getting the following error:

10-30 15:21:42.395: I/System.out(18148): Error org.xmlpull.v1.XmlPullParserException:
expected: START_TAG {http://www.w3.org/2003/05/soap-envelope}Envelope (position:START_TAG <html>@1:7 in java.io.InputStreamReader@4138e570) 

My connection details to the url are: -

String NAMESPACE = "urn:sap-com:document:sap:rfc:functions";
String METHOD_NAME = "ZmobileGetTableDefinition";
String SOAP_ACTION = "urn:sap-com:document:sap:rfc:functions/ZmobileGetTableDefinition";
String URL = "http://localhost.com/sap/bc/srt/wsdl/sdef_ZMOBILE_REPORTING/wsdl11/ws_policy/document?sap-client=800?WSDL";

What does the error with the START_TAG imply.

Thanks

Martin


回答1:


Can you try to show the String that's returned from the webservice? It sounds like parsing error




回答2:


It was the webservice endpoint I need to specify rather than the WSDL.



来源:https://stackoverflow.com/questions/13141069/android-ksoap2-connecting-to-web-service

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!