How to call a web service on one site?

I need to call a web service published on the same website called aspx.

When I try to "Add Web Link", the editor does not display the web service methods from the generated namespace.

Do I need to use the “Add Web Link” or is there another way, because the web service is on the same website?

Visual Studio 2005, C #

Thank,

Eduardo

+3
source share
3 answers

I used what Andy Rose wrote in the comments:

Create an instance of the webservice class and call the methods directly, because it is available inside the project (there is no need to add a web link).

+2
source

... -, .

- ctrl-f5, , localhost:/. asmx

, web.config, , , .

0

Webreference - , VS , , - ( ), ( :)).

, , :

  • - , . bin, . , .
  • . .
  • -- , ( ) , - .
  • , . -, . - -, -, . .

, URL-, , .

0

Source: https://habr.com/ru/post/1728055/


All Articles