none
silverlight4,wcf,windows服务 RRS feed

答案

  • 你好,

           和普通的IIS host的service是一样的。比如我的service config类似这样

        <system.serviceModel>   
        <bindings>
          <netTcpBinding>
            <binding name="netTcpBindConfig">
              <security mode="None" />
            </binding>
          </netTcpBinding>
        </bindings>
        <services>
          <service name="DataService.Service1">
            <endpoint address="" binding="netTcpBinding" bindingConfiguration="netTcpBindConfig"
              contract="DataService.IService1">
              <identity>
                <dns value="localhost" />
              </identity>
            </endpoint>
            <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
              contract="IMetadataExchange" />
            <host>
              <baseAddresses>
                <add baseAddress="net.tcp://10.172.8.58:4504/Service1" />
              </baseAddresses>
            </host>
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior name="">
              <serviceMetadata httpGetEnabled="false" httpsGetEnabled="false" />
              <serviceDebug includeExceptionDetailInFaults="false" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
      </system.serviceModel>

       Silverlight会去Request Http://10.172.8.58/crossdomainpolicy.xml

    2010年7月2日 1:33