WCF webservices times out from SoapUI

后端 未结 2 1671
星月不相逢
星月不相逢 2021-01-16 09:45

I have the following in a WCF project .Net 4.0:

[ServiceContract]
public interface EchoService {
    [OperationContract]
    void Ping();
}

[ServiceBehavior         


        
相关标签:
2条回答
  • 2021-01-16 09:56

    For wsHttpBinding you need to use security of some sort if you're hosting it in IIS you'll need to set a certificate.

    0 讨论(0)
  • 2021-01-16 09:58

    If you are connecting to wsHttpBinding service and getting timeouts in SoapUI project

    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”.

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

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

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

    0 讨论(0)
提交回复
热议问题