C # Web Services

I am new to web services. I just followed the tutorial and created a web service. The next step was to create a proxy by entering wsdl and then the path to the esdl contract. It was supposed to create a service1.cs file, however, my system created a service.cs file that looked like an exception in the tutorial.

The next step is to create a console tester application. I added the service.cs file to my console project, but it cannot compile. I get the following error:

 Error 1 The type or namespace name 'Services' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) C:\.....\tws\Service.cs 4 18 tws 

Please, help.

+6
source share
1 answer

Have you looked at the project links?

System.Web.Services NOT in System.Web , but in another separate assembly.

See if there is a link to:

  System.Web.Services 

if you do not add a link to:

  System.Web.Services.dll 
+16
source

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


All Articles