WCF wsHttpBinding in SoapUI

2019-04-10 15:06发布

问题:

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.

回答1:

this setting is not interoperable with soapUI:

negotiateServiceCredential="true" 

change it to false



回答2:

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.

After doing that, my problem was solved.

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



标签: wcf soapui