我快要疯了,我相信。
也就是说,我以前从未遇到过这样的问题,而且似乎没有人(Google 已索引)遇到同样的问题。
每当我向 VS2010 项目添加对特定 ASMX 服务的引用时,都会生成所有代码,并且有一个接口ServiceSoap
它代表了服务的所有功能,但解决方案中的任何地方都没有该接口的具体实现!
我究竟做错了什么?我只是right click project
, add service reference
, paste url to .asmx
, type 'Blah' in the namespace box
, click OK
.
一切似乎都发生得很顺利。我想我简直是疯了……
Update:
If I go to
Advanced...
in the add service reference dialog, and choose to add it as a .NET 2.0 service, everything works, but I don't particularly want to do it that way.
The actual namespace I'm using is
Remedy
and the service .asmx file is
Service.asmx
.
尝试这个...
右键单击服务参考。然后去配置服务引用。然后取消选中引用程序集中的重用类型复选框。
更新
这解决了我的问题,希望它也能帮助其他人
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)