【问题标题】:Which url should I use for soap on android?我应该在android上使用哪个网址作为肥皂?
【发布时间】:2012-12-12 16:00:22
【问题描述】:

我必须在不使用 3.rd 方库(如 ksoap)的情况下在 android 上使用 Web 服务。所以我必须写我自己的请求。而这一点我应该使用哪个网址作为帖子网址?

    HttpPost httppost = new HttpPost("url");

我有这样的 wsdl 链接:

http://kavakci.com.tr/kod.merkezi/rotametre.asmx?WSDL  (not working for you, just for me)

肥皂行动:

http://kavakci.com.tr/BaglantiDogrula

方法:

BaglantiDogrula

命名空间:

http://kavakci.com.tr/

【问题讨论】:

    标签: android web-services wsdl httprequest


    【解决方案1】:

    通常的做法是能够通过以“?WSDL”为后缀的端点地址访问 Web 服务的 WSDL,这意味着您应该将请求发布到:

    http://kavakci.com.tr/kod.merkezi/rotametre.asmx
    

    【讨论】:

    • 那么,如果我想在Web服务下调用“BaglantiDogrula”方法,url会改变吗?我怎么称呼“ BaglantiDogrula”。你能给我一个关于在不使用第三方库的情况下调用网络服务的示例链接吗?
    • @gurcan15:无论您调用何种 Web 服务操作,URL 都保持不变。您必须为每个方法构建正确的 SOAP 有效负载并更改 SOAPAction,但端点对于 Web 服务公开的所有操作都是相同的。 See this post for an example of a web service call without third party libraries.
    猜你喜欢
    • 1970-01-01
    • 2022-01-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多