Home Page › Forums › BizTalk 2004 – BizTalk 2010 › How to config/costom a WS Security to SOAP header › Re: How to config/costom a WS Security to SOAP header
Hello, All
I found the answer and tested it successfully.
Main is 3 part:1) <security authenticationMode=”UserNameOverTransport” 2)<httpsTransport /> 3) <textMessageEncoding messageVersion=”Soap11″ />
Please see following:
<?xml version=”1.0″ encoding=”utf-8″?>
<configuration>
<system.serviceModel>
<client>
<endpoint address=”https://ws.betagrid.gxs.com/smg/ws_comm/mailboxList” binding=”basicHttpBinding” bindingConfiguration=”gxs_ws_docManagementBinding” contract=”BizTalk” name=”WcfSendPort_gxs_ws_docManagementService_gxs_ws_docManagementPort0_Custom” />
</client>
<bindings>
<customBinding>
<binding name=”gxs_ws_docManagementBinding”>
<security authenticationMode=”UserNameOverTransport” includeTimestamp=”false”messageSecurityVersion=”WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10″>
<textMessageEncoding messageVersion=”Soap11″ />
<httpsTransport />
</binding>
</customBinding>
</bindings>
</system.serviceModel>
</configuration>
Ryo