cancel
Showing results for 
Search instead for 
Did you mean: 

wsHttpBinding

Highlighted
New Contributor

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 4
Highlighted
Moderator

Re: wsHttpBinding

Hi Shira,

 

Please check this article: Is wsHttpBinding supported in ReadyAPI?

 


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
New Contributor

Re: wsHttpBinding

I'll check it!

Thanks a lot!!

New Contributor

Re: wsHttpBinding

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

Highlighted
Moderator

Re: wsHttpBinding

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.

 


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to change request body before sending it to the server for the TechCorner tag!


Scripts created in June:
- A script to generate a request body based on data from Datasource
- A script to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite
Top Kudoed Authors