使用basicHttpBinding方式发布服务就可以,协议是SOAP 1.1 也就是兼容Web Service.
这个文章的结尾留言部分也有讨论。
我搜索到一个连接,就是WCF如何使用SOAP1.1而不是SOAP1.2.就是配置BasicHttpBinding绑定。
wshttpbinding 是支持SOAP1.2规范。
这个是参考解释:
The BasicHttpBinding uses HTTP as the transport for sending SOAP 1.1 messages. A service can use this binding to expose endpoints that conform to WS-I BP 1.1, such as those that ASMX clients consume. Similarly, a client can use the BasicHttpBinding to communicate with services exposing endpoints that conform to WS-I BP 1.1, such as ASMX Web services or services configured with the BasicHttpBinding.
连接地址:
http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/fd5e46ff-9b93-4665-85af-e2941e68f2ad参考代码:
<services>
<service name="HelloIndigo.HelloIndigoService" behaviorConfiguration="serviceBehavior" >
<endpoint address="Soap11" binding="basicHttpBinding" contract="HelloIndigo.IHelloIndigoService" />
<endpoint address="Soap12" binding="customBinding" bindingConfiguration="httpSoap12NoAddressing" contract="HelloIndigo.IHelloIndigoService" />
<endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />
<host>
<baseAddresses>
<add baseAddress="
http://localhost:8000/HelloIndigoService"/></baseAddresses>
</host>
</service>
</services>
<bindings>
<customBinding>
<binding name="httpSoap12NoAddressing">
<textMessageEncoding messageVersion="Soap12"/>
<httpTransport />
</binding>
</customBinding>
http://www.cnblogs.com/frank_xl/archive/2009/04/02/1424659.html
Frank Xu Lei--谦卑若愚,好学若饥
专注于.NET平台下分布式应用系统开发和企业应用系统集成
Focus on Distributed Applications Development and EAI based on .NET
欢迎访问老徐的中文技术博客:
Welcome to My Chinese Technical Blog
欢迎访问微软WCF中文技术论坛:
Welcome to Microsoft Chinese WCF Forum
欢迎访问微软WCF英文技术论坛:
Welcome to Microsoft English WCF Forum