简体   繁体   English

Axis2选项:setAction()

[英]Axis2 Options: setAction()

I've successfully managed to create a HTTP Basic Authentication Client. 我已成功设法创建HTTP基本身份验证客户端。

There is a particular operation that I'm having some doubts as to it's purpose. 有一个特殊的操作,我对它的目的有一些疑问。

I tried a tutorial for a simple helloworld script and some other tutorials are the internet and I saw this: 我尝试了一个简单的helloworld脚本的教程,其他一些教程是互联网,我看到了这个:

options.setAction("urn:echo"); 

If I comment this line of code, the client works anyway. 如果我评论这行代码,客户端无论如何都会工作。

So what does it do? 那它是做什么的? I can't find specific information about this. 我找不到有关此的具体信息。

I know that my service has an "echo" operation. 我知道我的服务有一个“回声”操作。

So if I had both an "echo" and "echo2" operations, I would have to call setAction for each one? 因此,如果我同时进行“echo”和“echo2”操作,我必须为每个操作调用setAction吗?

Regards, Nuno. 此致,努诺。

This is the soapAction attribute in wsdl binding for operation element. 这是操作元素的wsdl绑定中的soapAction属性。 If nothing is specified in the WSDL then its value should be blank string or the exact value mentioned in the WSDL should be used here. 如果在WSDL中没有指定任何内容,则其值应为空字符串,或者此处应使用WSDL中提到的确切值。 Its purpose is not very well defined but it can be used for filtering the traffic. 其目的不是很明确,但可用于过滤流量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM