Web Service Import Problem

I created a web service in a virtual directory using VS 2008. I tested the service by going to the .asmx page and everything works fine. So I chose the option "Add Web Link" in the solution and typed in the .asmx URL. He found the web service successfully and added a link to the project. However, when I try to import the service namespace with the same name as the directory in the App_WebReferences folder, it does not recognize the name and gives me an error if I try to import it. Did I skip any steps in this process?

+3
source share
2 answers

Refresh . Try creating the proxy manually using the wsdl tool and adding the proxy class as an existing element to the client web application project, as indicated in the link.

Something strange is happening with the proxy generation in your case from VS. There may be a problem with access. If this happens, you should find the VS proxy class under one of the% windir% \ Microsoft.NET \ Framework \ v2.0.50727 \ ASP.NET Temporary Files \ subfolders (for Asp.Net 2.0). Look for file names starting with App_WebReferences * .cs in the temporary folder.


When you added the web service, what name did you include in the web link? Use the same web link name in your import statement.

In this link , the name of the web link com.deepfitnessso that you can import com.deepfitnessnamespace in your asp.net application.

+2

, - App_WebReferences , reference.cs, .

0

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


All Articles