zoukankan      html  css  js  c++  java
  • wcf webconfig配置

    按照模板添加一个名为Services1的服务

    Web.config配置注意以下两点

          <serviceBehaviors>
    <behavior name="MyServiceTypeBehaviors" >
    <serviceMetadata httpGetEnabled="true" />
    </behavior>
    </serviceBehaviors>
     <services>
          <service name="JSStudy.JQuery.Chapter6AJax.Service1" behaviorConfiguration="MyServiceTypeBehaviors">        
            <endpoint address="" behaviorConfiguration="JSStudy.JQuery.Chapter6AJax.Service1AspNetAjaxBehavior"
              binding="webHttpBinding" contract="JSStudy.JQuery.Chapter6AJax.Service1" />
          </service>
        </services>
    

      

        <serviceHostingEnvironment aspNetCompatibilityEnabled="true"
    multipleSiteBindingsEnabled="true">
    <serviceActivations>
    <add relativeAddress="Service1.svc" service="Service1" factory="System.ServiceModel.Activation.WebScriptServiceHostFactory" />
    </serviceActivations>
    </serviceHostingEnvironment>


     

  • 相关阅读:
    html 一号店静态页面
    多线程
    TCP通信
    MySQL连接查询
    Mysql数据库 DDL 数据定义语言
    MySQL数据库 DML 数据操作语言
    java字符流
    java File类
    java变量
    JDK、JRE、JVM的关系
  • 原文地址:https://www.cnblogs.com/yixinliu/p/2295505.html
Copyright © 2011-2022 走看看