6

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.

Rian Schmits
  • 3,096
  • 3
  • 28
  • 44
jlp
  • 9,800
  • 16
  • 53
  • 74

2 Answers2

11

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!!

jccprj
  • 161
  • 2
  • 5
2

this setting is not interoperable with soapUI:

negotiateServiceCredential="true" 

change it to false

Yaron Naveh
  • 23,560
  • 32
  • 103
  • 158
  • Do you have a source to confirm that soapUI does not support that setting? – VoodooChild Nov 16 '12 at 20:34
  • Thanks for the link. However, they have this entire section on this very topic http://www.soapui.org/SOAP-and-WSDL/applying-ws-security.html - what is that about? – VoodooChild Nov 17 '12 at 21:56
  • negotiateServiceCredential uses ssl negotiated which is wcf proprietary standard. it is not part of the standard ws-security. while other products can try to implement it this has never been done. – Yaron Naveh Nov 18 '12 at 09:42