如何在Visual Studio中向我的项目添加测试Web服务?

时间:2023-01-27 10:49:00

I have a test web service replicating a live web service that hasn't been made public yet (It will be public when the app is released).

我有一个测试Web服务复制尚未公开的实时Web服务(它将在应用程序发布时公开)。

I added a new ASP.NET Web Service Application to my solution. Now when I try and add a web reference from the main project and choose "Browse To Web services in this solution" it doesn't find the test web service.

我在我的解决方案中添加了一个新的ASP.NET Web Service应用程序。现在,当我尝试从主项目添加Web引用并选择“在此解决方案中浏览到Web服务”时,它找不到测试Web服务。

Am I missing an important step here?

我错过了重要的一步吗?

1 个解决方案

#1


0  

Maybe the webservice you're trying to connect to isn't running . Do an F5, verify that the service has started by checking the address in the browser then try to add the refference again.

也许您尝试连接的Web服务未运行。执行F5,通过检查浏览器中的地址验证服务是否已启动,然后再次尝试添加引用。

If it doesn't work, just specify the address by hand.

如果它不起作用,只需手动指定地址。

#1


0  

Maybe the webservice you're trying to connect to isn't running . Do an F5, verify that the service has started by checking the address in the browser then try to add the refference again.

也许您尝试连接的Web服务未运行。执行F5,通过检查浏览器中的地址验证服务是否已启动,然后再次尝试添加引用。

If it doesn't work, just specify the address by hand.

如果它不起作用,只需手动指定地址。