vs自动生成的WebService配置文件在部署到IIs6后,服务调用失败的解决方法
来源:互联网 发布:免费cms源代码php 编辑:程序博客网 时间:2024/06/07 11:50
近日,在项目中需要引用java发布的WebService,添加服务引用后,调用一切正常。
配置如下:
<system.serviceModel> <bindings> <basicHttpBinding> <binding name="SecurityServiceImplServiceSoapBinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"/> </basicHttpBinding> </bindings> <client> <endpoint address="http://10.10.10.10:80/securityService" binding="basicHttpBinding" bindingConfiguration="SecurityServiceImplServiceSoapBinding" contract="Service.ISecurityService" name="SecurityServiceImplPort" /> </client> </system.serviceModel>
部署到IIS6上,服务无法调用,折腾一下午,终于搞清是由于配置文件的原因:
修改后如下:
<system.serviceModel> <bindings> <wsHttpBinding> <binding name="WSHttpBinding_IUpService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" useDefaultWebProxy="true" allowCookies="false"> <security mode="None" /> </binding> </wsHttpBinding> </bindings> <client> <endpoint address="http://10.10.10.10:80/UpService/UPService.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IUpService" contract="PermissionService.IUpService" name="WSHttpBinding_IUpService" /> </client> </system.serviceModel>
修改了一下配置,服务正常调用.
原因大概是用于的vs版本大概比较高,所以生成的WebService配置文件,IIS6无法识别,配置文件需要详细列出配置详情。
0 0
- vs自动生成的WebService配置文件在部署到IIs6后,服务调用失败的解决方法
- “MyEclipse自动生成的web项目部署后在TOMCATE正常,resin下无法访问”解决方法
- 如何让VS 自动把 Silverlight 项目生成的 xap 文件部署到指定目录
- Window Server IIS6.0部署webservice请求调用提示请求失败
- Make.exe生成的vs工程转发后编译失败
- 用wsimport在本地生成代理,调用webservice服务接口的示例
- Silverlight4在IIS6上的部署方式
- wcf在iis6上的部署
- MVC3 在IIS6的部署 记录
- mongoDB加入服务后启动失败的解决方法
- WCF服务发布到IIS6.0跨域访问的解决方法
- MyEclipse自动生成的web项目部署后在TOMCATE正常,resin下无法访问
- VS调用Java的WebService
- VS部署发布失败解决方法
- Jenkins自动部署到Tomcat随机失败的问题
- 发布到IIS的webservice无法调用office的解决方法
- 根据.wsdl文件,自动生成webservice的调用客户端
- 用axis自动生成webService调用的客户端
- 解决ultravnc在win2008 R2下CTRL+ALT+DELETEA组合键发送失败的问题
- C语言输出螺旋矩阵
- seajs 2.3.0 傻瓜式入门
- poj 3348 Cows 凸包模板题
- Linux ARM交叉编译器设定
- vs自动生成的WebService配置文件在部署到IIs6后,服务调用失败的解决方法
- 指针
- 查看搜集统计信息的estimate_percent
- 数据结构_二叉树的先序建立与先序,中序,后序(递归)遍历方式_C语言源代码
- 【GoldenGate】使用OGG,两个Oracle库之间单向同步数据
- Cocos2d-x3.1UserDefaule类详解
- POJ 1789 Truck History(最小生成树)
- Linux扩展权限
- 杂谈:行业的变迁