rest的config
2024-08-26 01:47:25
<个人积累,转载请注明出处>
新手写rest wcf经常会报配置文件异常。我为了避免这种问题,将自己配好的config放这里,用的时候将ABC改成自己的,粘贴就行了。
ABC是什么我就不赘述了,给个链接 http://blog.csdn.net/lglgsy456/article/details/7637332
<configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system.serviceModel> <services> <service name="Akmii.Chint.Service.test"> <endpoint address="" behaviorConfiguration="RestBehavior" binding="webHttpBinding" bindingConfiguration="HttpBinds" contract="Akmii.Chint.Service.test" /> </service> <service name="Akmii.Chint.Service.SendRest"> <endpoint address="" behaviorConfiguration="Akmii.Chint.Service.SendRestAspNetAjaxBehavior" binding="webHttpBinding" contract="Akmii.Chint.Service.SendRest" /> </service> <service name="Akmii.Chint.Service.ReceiveRest"> <endpoint address="" behaviorConfiguration="Akmii.Chint.Service.ReceiveRestAspNetAjaxBehavior" binding="webHttpBinding" contract="Akmii.Chint.Service.ReceiveRest" /> </service> </services> <behaviors> <endpointBehaviors> <behavior name="RestBehavior"> <webHttp helpEnabled="true" defaultBodyStyle="Bare" defaultOutgoingResponseFormat="Json" /> </behavior> <behavior name="Akmii.Chint.Service.SendRestAspNetAjaxBehavior"> <enableWebScript /> </behavior> <behavior name="Akmii.Chint.Service.ReceiveRestAspNetAjaxBehavior"> <enableWebScript /> </behavior> </endpointBehaviors> <serviceBehaviors> <behavior name=""> <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="true" /> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> <bindings> <webHttpBinding> <binding name="HttpsBinds"> <security mode="Transport"></security> </binding> <binding name="HttpBinds" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"></binding> </webHttpBinding> </bindings> </system.serviceModel> </configuration>
最新文章
- 搭建一套自己实用的.net架构(3)【ORM-Dapper+DapperExtensions】
- 2016年12月31日 星期六 --出埃及记 Exodus 21:26
- 在iis7上如何配置来看到asp报错
- C语言拾遗
- Android Stutio -- 编译报错: Error:File path too long on Windows, keep below 240
- python display color output
- 转 vagrant package[打包命令]详解
- Zookeeper + Hadoop2.6 集群HA + spark1.6完整搭建与所有参数解析
- OAuth2.0_豆瓣登录_API错误返回码说明一览表[转]
- 一个简单的AJAX实例
- mongodb 操作语句与sql操作语句对比
- Window Pains
- Jquery autocomplete 插件示例
- 自定义控件之--继承控件(圆形TextView)
- 财付通API
- JavaScript获取客户端IP地址
- codeforces 3b之贪心算法
- 初学mybatis和mysql碰到的问题
- sequelize查询数据的日期格式化
- Go指南练习_斐波纳契闭包