日期:2014-05-17  浏览次数:20478 次

wcf服务iis发布成功,浏览器也能访问调数据,但是无法生成客户端配置文件,jquery也不能调用
本帖最后由 hu137919722 于 2013-04-24 15:33:52 编辑
wcf服务iis发布成功,浏览器也能访问调取数据,但是无法生成客户端配置文件,我看到网上说的用svcutil工具或者直接添加服务引用就能生成客户端配置文件,但是我的就是没有客户端配置文件,代理类都是有的,jquery也不能调用,不知道是我的配置那里出了问题,希望大家帮忙看看,谢了!

配置文件

<?xml version="1.0"?>
<configuration>

  <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <system.serviceModel>

    <standardEndpoints>
      <webHttpEndpoint>
        <standardEndpoint crossDomainScriptAccessEnabled="true" />
      </webHttpEndpoint>
    </standardEndpoints>
    <bindings>
      <webHttpBinding>
        <binding name="webbinding" crossDomainScriptAccessEnabled="true" />
      </webHttpBinding>
    </bindings>
    <services>
      <service name="ePDP.WCF.CategorySearch">
        <endpoint address="CategorySearch" kind="webHttpEndpoint" contract="ePDP.WCF.ICategorySearch" behaviorConfiguration="AjaxWCFServiceAspNetAjaxBehavior" />
      </service>
    </services>
    
    <behaviors>
      <endpointBehaviors>
        <behavior name="AjaxWCFServiceAspNetAjaxBehavior">
          <enableWebScript />
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior>
          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpGetEnabled="true"/>
          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
 <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
  
&