首页 新闻 会员 周边 捐助

一个基于webhttpbinding的wcf service是否能够在另外一个工程里面添加对它的service reference

0
悬赏园豆:15 [待解决问题]

我写了一个基于webhttpbinding的wcf service,然后再iis上把它发布了,当我想在另外一个web application里面添加对这个service的reference的时候却不行,错误如下:

The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved: 'http://localhost:91/HelloWorld.svc'.
There was no endpoint listening at http://localhost:91/HelloWorld.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
The remote server returned an error: (404) Not Found.
If the service is defined in the current solution, try building the solution and adding the service reference again.

请问一下,这个是我配置上有问题还是根本就不能添加啊?

dbms的主页 dbms | 初学一级 | 园豆:75
提问于:2011-04-13 16:56
< >
分享
所有回答(2)
0

配置问题吧!我前几个星期也在这块问题上折腾了好久~!

peony007 | 园豆:397 (菜鸟二级) | 2011-04-13 23:11
不过我在客户端用ajax调用这个WCF的时候是可以成功的啊,就是添加引用不成功。
支持(0) 反对(0) dbms | 园豆:75 (初学一级) | 2011-04-14 09:06
0

因为webhttp模式不支持“vs->右键->添加服务引用”模式

SonyXbox | 园豆:370 (菜鸟二级) | 2014-11-07 09:50
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册