WCF wsHttpBinding in SoapUI

2019-04-10 15:15发布

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.

标签: wcf soapui
2条回答
叼着烟拽天下
2楼-- · 2019-04-10 15:51

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

查看更多
Lonely孤独者°
3楼-- · 2019-04-10 16:00

this setting is not interoperable with soapUI:

negotiateServiceCredential="true" 

change it to false

查看更多
登录 后发表回答