WCF Web服务时间从了SoapUI出 [英] WCF webservices times out from SoapUI

查看:178
本文介绍了WCF Web服务时间从了SoapUI出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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:要。

Open the first request and press the WS-A button (on the bottom of the request editor). Check "Enable WS-A addressing", "Add default wsa:Action" and "Add default wsa:To".

(从的http:// berendjdejong.wordpress.com/2011/03/18/soapui-and-wcf-service-testing/

这些改变后,我能够正确与WCF服务进行通信。

After these changes I was able to properly communicate with WCF service.

请参阅有关WS-A的更多细节处的 http://www.soapui.org/SOAP-and-WSDL/using-ws-addressing.html

See more details about WS-A at http://www.soapui.org/SOAP-and-WSDL/using-ws-addressing.html

这篇关于WCF Web服务时间从了SoapUI出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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