Android kSOAP2连接到Web服务。

时间:2012-10-30 14:25:28

标签: android ksoap2

我正在尝试使用kSOAP2将Android设备连接到Web服务。如果有人感兴趣,那么它就是SAP ABAP Web服务。

我收到以下错误:

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) 

我的网址连接详情如下: -

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";

START_TAG的错误意味着什么。

由于

马丁

2 个答案:

答案 0 :(得分:0)

您可以尝试显示从Web服务返回的字符串吗?这听起来像解析错误

答案 1 :(得分:0)

我需要指定的Web服务端点而不是WSDL。