Android的kSOAP2连接到Web服务。 [英] Android kSOAP2 connecting to web service.

查看:250
本文介绍了Android的kSOAP2连接到Web服务。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 kSOAP2 来将Android设备连接到Web服务。如果有人有兴趣它是一个SAP ABAP web服务。

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.

我收到以下错误:

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

什么用 START_TAG 意味着错误。

感谢

马丁

推荐答案

这是web服务端点需要指定,而不是WSDL。

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

这篇关于Android的kSOAP2连接到Web服务。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆