Forum Discussion

Shirate's avatar
Shirate
New Contributor
6 years ago

wsHttpBinding

Hi ,

when I try to execute a request in Soap Ui,

when my webConfig is configured as the follwoing:

 

<service behaviorConfiguration="BillingHost.GeneralServiceBehavior" name="Ness.Wcf.Billing.CustomerService">
<endpoint address="" behaviorConfiguration="InspectionBehavior" binding="wsHttpBinding" bindingConfiguration="wsHttpSecurityMessage" contract="Ness.Wcf.Billing.ICustomerService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>

 

<wsHttpBinding>

<binding name="wsHttpSecurityMessage">
<security mode="Message">
<transport clientCredentialType="Windows"
proxyCredentialType="None" realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" establishSecurityContext="true" />
</security>
</binding>

</wsHttpBinding>

 

it fails on "The message could not be processed. This is most likely because the action 'http://tempuri.org/ICustomerService/GetCustomerNameByID' is incorrect or because the message contains an invalid or expired security context token or because there is a mismatch between bi......."

 

when I change it to security mode="None"

it works!

How can I make it to work when security mode="message"????

Thanks  a lot

Shira

4 Replies

    • Shirate's avatar
      Shirate
      New Contributor

      I'll check it!

      Thanks a lot!!

    • Shirate's avatar
      Shirate
      New Contributor

      Hi,

      I understood from your a post that you refered me to look at, that SoapUI will work with wsHttpBinding with Transport security.

      Can you please provide me an example for that?

       

      Another thing, I was trying to do the same as it was posted with the


      <endpointBehaviors>
      <behavior name="NoTrust">
      <clientCredentials>
      <serviceCertificate>
      <authentication certificateValidationMode="None"/>
      </serviceCertificate>
      </clientCredentials>
      </behavior>
      </endpointBehaviors>

       

      And it still didn't work...

      So for the meantime nothing is working except mode="none"

      I would really appricate if you can please provide me examples for bothe cases!

       

      Thanks a lot!!!

      Shira

      • Nastya_Khovrina's avatar
        Nastya_Khovrina
        SmartBear Alumni (Retired)

        Hi Shira,

         

        Unfortunately, we don't have any examples for wsHttpBinding. The article states that the wsHttpBinding binding most likely isn't supported in ReadyAPI since it requires some protocols, which are not supported.

         

        As a workaround, you can switch to the BasicHttpBinding binding.