我正在创建一个WCF服务,它必须拥有一个SOAP 1.2端点。该服务正在使用以下自定义绑定:
<customBinding>
<binding name="httpsBinding" openTimeout="00:10:00" closeTimeout="00:10:00" sendTimeout="00:10:00" receiveTimeout="00:10:00">
<transactionFlow />
<security authenticationMode="UserNameOverTransport" allowInsecureTransport="true" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10" >
<secureConversationBootstrap allowInsecureTransport="true"></secureConversationBootstrap>
</security>
<textMessageEncoding messageVersion="Soap12">
<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647" />
</textMessageEncoding>
<httpsTransport maxReceivedMessageSize="2147483647" />
</binding>
</customBinding>
在这里之前,当通过Fiddler进行调试时,包的格式是正确的(SOAP 1.2):
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Header>...
但是查看生成的WSDL,绑定似乎在引用soap 1.1架构。
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
WSDL中没有关于http://www.w3.org/2003/05/soap-envelope的参考。虽然它能够工作,我猜测由于WSDL未正确描述服务,可能存在问题。
basichttpbinding
吗? - Rahul