WCF wsHttpBinding in SoapUI

瘦欲@ 提交于 2019-12-30 07:02:07

问题


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



来源:https://stackoverflow.com/questions/10169871/wcf-wshttpbinding-in-soapui

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!