Tulasi

Tulasi

  • 742
  • 1.1k
  • 208.5k

consume wcf service with wshttpBinding in SOAP UI PRO 4.5

Dec 31 2012 12:34 AM
I am using soapUI tool to test my wcf services.It is not working with WSHttpbinding.

Please tell me how to test WSHttpbinding with soapUI tool.In some sites i find below solutions but not working 
SOLUTION1 
Please follow the steps as mentioned below:

1.)Expose the service for the required Application with Wshttp bindings.

2.)In web.config file add the binding information as given below:

<bindings>
<wsHttpBinding>
<binding name="wsHttpBindingNoSCT">
<security mode="None">
<transport clientCredentialType="None" />
<message establishSecurityContext="false" />
</security>
</binding>
</wsHttpBinding>
</bindings>

3.)Reset IIS

4.)In SOAP UI Check Whether WS-A is enabled.
Trigger a request in SOAP UI...U will get the corresponding response... :)
IT IS NOT WORKING 

SOLUTION2

[ServiceContract(SessionMode=SessionMode.Required)] 

In the above change to [ServiceContract(SessionMode=SessionMode.Allowed)] this is working. But i need to use Required Only

How can i get rid of this problem ?