使用许多连接运行WCF服务

时间:2014-10-30 10:33:03

标签: c# wcf

是否可以调整可支持多种客户端类型的WCF服务,例如soap 1.1soap 1.2?目前我的服务配置如下。我写的是为了支持我需要编辑配置文件的几个连接?

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding name="BasicHttpBinding_IService1" sendTimeout="00:05:00" />
            </basicHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://localhost:8733/Design_Time_Addresses/WcfServiceLibrary1/Service1/"
                binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService1"
                contract="IService1" name="BasicHttpBinding_IService1" />
        </client>
    </system.serviceModel>
</configuration>

0 个答案:

没有答案