如何知道什么是命名空间,URL,SOAP动作和方法的名字吗? [英] How to know what is the namespace, url, soap action and method name?

查看:661
本文介绍了如何知道什么是命名空间,URL,SOAP动作和方法的名字吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android应用程序,可以连接到Web服务,但我不能启动,因为谁创建的服务器端Web服务的人给我的只有这种类型的使用PHP code。

I'm developing an android application that can connect to a web service but I can't start because the one who create the web service on server side gave me only this type of code using the php.

这里的code:

try {
$client = new SoapClient("http://as2.abc.com/aerv/app/custom/comp/ec.wsdl",
array("location" => "http://as2.abc.com/aerv/app/custom/comp/ecsoap.php") );
} catch (Exception $e) {
echo "Caught exception: ", $e->getMessage(), "\n"; exit();
}

要能够在启动客户端我需要知道什么是命名空间,网址,肥皂在给定的code动作和方法名。请帮我。

To be able to start in client side I need to know what is the namespace, url, soap action and method name in the given code. Please help me.

推荐答案

这是解释所有参数的链接 JAVA教程点对点链路

This is the link that explains all the parameters JAVA tutorials point link

和它会告诉你如何找回它们。

And it will show you how to retrieve them.

SOAP_ACTION:这是您的命名空间/ METHOD_NAME如 http://microsoft.com/webservices/

SOAP_ACTION : It is your NAMESPACE/METHOD_NAME e.g. "http://microsoft.com/webservices/"

METHOD_NAME:这是法如的名字:的GetData,GetUserDetails

METHOD_NAME : It's the name of the Method e.g : "GetData", "GetUserDetails"

命名空间:这是你的NameSapce例如: http://microsoft.com/webservices/

NAMESPACE : It's your NameSapce e.g: "http://microsoft.com/webservices/"

网址:192.168.22.12/test/getMyData.asmx,您的网址到Web服务页

URL : 192.168.22.12/test/getMyData.asmx, your URL to web Services page

这篇关于如何知道什么是命名空间,URL,SOAP动作和方法的名字吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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