首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web Service >

花生壳发布webservice的端口有关问题

2013-04-09 
花生壳发布webservice的端口问题IIS布置了一个webservice 端口为91然后用花生壳发布到外网上,端口10478访

花生壳发布webservice的端口问题
IIS布置了一个webservice 端口为91

然后用花生壳发布到外网上,端口10478

访问地址假设为http://service.vicp.net:10478

这样能够打开 service1.asmx页面,点击方法也可以

但是具体到调用方法时出现了问题

比如是HelloWorld这个方法

点击调用后地址就变成了 http://service.vicp.net:91/service1.asmx/HelloWorld

这样结果就错了,

而手动把地址改成 http://service.vicp.net:10478/service1.asmx/HelloWorld

结果就正确了,请问有高手知道怎么解决这个问题吗?
[解决办法]
你告诉我,一个动态域名解析软件,它跟你端口有什么关系?
[解决办法]
是不是wsdl中引用了其他wsdl,但是使用的是旧的端口。

如果是这个问题可以升级到.net4.5.

Generating a Single WSDL Document
Some third-party WSDL processing stacks are not able to process WSDL documents that have dependencies on other documents through a xsd:import. WCF now allows you to specify that all WSDL information be returned in a single document. To request a single WSDL document append “?singleWSDL” to the URI when requesting metadata from the service.

What's New in Windows Communication Foundation 4.5
http://msdn.microsoft.com/en-us/library/dd456789(v=vs.110).aspx

热点排行