如何删除Soap Security标头

时间:2016-10-31 19:36:46

标签: c# web-services wcf soap

我目前正在尝试使用WCF客户端使用SOAP 1.2 Web服务。问题是,无论何时我发出请求MessageSecurityException,都会抛出以下内部消息:

SOAP header Security was not understood

据我所知,WS不理解Security标题,当前标记为MustUnderstand="true"

如何将MustUnderstand更改为false /删除Security标题?

以下是我现在正在使用的绑定:

<customBinding>
  <binding name="CteRecepcaoSoap12">
    <textMessageEncoding messageVersion="Soap12" />
    <security authenticationMode="CertificateOverTransport"/>
    <httpsTransport requireClientCertificate="true"/>
  </binding>
</customBinding>

0 个答案:

没有答案