WCF WEB API配置

2020-11-17 02:30

阅读:660

标签:style   blog   class   code   java   javascript   color   get   int   rgb   数据   

Web.config配置

mamicode.com,搜素材
system.serviceModel>
    services>
      service name="WCFServiceWebRole2.Service1">
        endpoint  contract="WCFServiceWebRole2.IService1" 
                   binding="webHttpBinding"
                   behaviorConfiguration="web"
                  >endpoint>
      service>
    services>
    behaviors>
      serviceBehaviors>
        behavior>
          
          serviceMetadata httpGetEnabled="true"/>
          
          serviceDebug includeExceptionDetailInFaults="false"/>
        behavior>
      serviceBehaviors>
      endpointBehaviors>
        behavior name="web">
          webHttp helpEnabled="true" defaultBodyStyle="Bare" defaultOutgoingResponseFormat="Json" >webHttp>
        behavior>
      endpointBehaviors>
    behaviors>
    serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  system.serviceModel>
mamicode.com,搜素材
behaviorConfiguration="web" 配置为HTTP访问

WCF WEB API配置,搜素材,soscw.com

WCF WEB API配置

标签:style   blog   class   code   java   javascript   color   get   int   rgb   数据   

原文地址:http://www.cnblogs.com/FlyCat/p/3701631.html


评论


亲,登录后才可以留言!