0

I seem to have struck a complete blank and will most likely have a homer moment when someone points me in the right direction.

I have a WCF Web Service which is consumed happily across asp.net, windows phone, windows services, etc, etc. I'm adding a page to the same application in which the service resides, basically a "test" page that the user can go to and it'll do a quick call to the service to see if the server is up.

Now normally, you'd just throw in a Service Reference and bobs your uncle, but for the life of me, I just can't seem to click what I'm supposed to do when I'm accessing the service from within the same application, do I still add a service reference or is there a quicker way to do it?

Thanks!

4

1 回答 1

0

尝试在代码中通过其名称引用 Web 服务,看看您是否能够从该 Web 服务创建新对象,然后在代码中使用,而不是创建引用。

于 2013-07-01T08:10:31.877 回答