5
votes

I am trying to add WCF service with wsHttpBinding to soapUI.

I am using message security and it works with test client but SoapUI returns

An error occurred when verifying security for the message

Here is service configuration:

<wsHttpBinding>
   <binding name="wsHttpSecure">
      <security mode="Message">
         <message clientCredentialType="UserName" negotiateServiceCredential="true"    
                  establishSecurityContext="false" algorithmSuite="Default" />
      </security>
   </binding>
</wsHttpBinding>

Here http://www.soapui.org/SOAP-and-WSDL/applying-ws-security.html is a document but they say I need .jks file. I only have encoded public key value generated by SvcUtil in test client configuration file.

2
See my answer at stackoverflow.com/a/13989176/52277 how to setup WS-A tab in SoapUI project for wsHttpBinding service - Michael Freidgeim

2 Answers

10
votes

after a lot of research I found a solution on a blog.

You need to check the WS-A:To checkbox, located on the WS-A options tab.

How to enable wsa:To

After doing that, my problem was solved.

This is the blog containing the solution. Thanks David!!

2
votes

this setting is not interoperable with soapUI:

negotiateServiceCredential="true" 

change it to false