I have the following in a WCF project .Net 4.0:
[ServiceContract]
public interface EchoService {
[OperationContract]
void Ping();
}
[ServiceBehavior
For wsHttpBinding you need to use security of some sort if you're hosting it in IIS you'll need to set a certificate.
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