问题描述
我有一个WCF项目以下.NET 4.0:
I have the following in a WCF project .Net 4.0:
[ServiceContract]
public interface EchoService {
[OperationContract]
void Ping();
}
[ServiceBehavior]
public class EchoServiceImpl : EchoService {
public void Ping() { }
}
阉我部署到IIS,或在调试器中运行,当我从了SoapUI连接并尝试调用ping命令,我终于得到了暂停。我的目的是生成一个可以从Java调用服务,但我不能连得一个空操作,ping命令当前工作。
Wether I deploy to IIS, or run in the debugger, when I connect from SoapUI and try to invoke the ping command, I eventually get a timeout. My intention is to generate a service that can be called from Java, but I can't even get a noop ping command to work currently.
有什么办法来调试这是怎么回事?
Is there any way to debug what's going on?
推荐答案
如果要连接到的wsHttpBinding服务,并在了SoapUI项目获得超时
If you are connecting to wsHttpBinding service and getting timeouts in SoapUI project
打开第一个请求
,并按WS-A按钮(在要求编辑器的底部)。检查
启用WS-A解决,添加默认的wsa:行动和添加默认的
WSA:要。
(从)
这些改变后,我能够正确与WCF服务进行通信。
After these changes I was able to properly communicate with WCF service.
请参阅有关WS-A的更多细节处的
See more details about WS-A at http://www.soapui.org/SOAP-and-WSDL/using-ws-addressing.html
这篇关于WCF Web服务时间从了SoapUI出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!