An additional method is not displayed in the web service

I wrote an ASP.NET web service that has 2 methods. They work fine and are shown in http: // localhost: 85 / Services / NopService.asmx? WSDL

If I add another method, I cannot access the new!

The corresponding file is located in the folder D: \ Web \ NopCommerceStore \ Services \ NopService.asmx and..asmx.cs No other file with this name anywhere!

If I just add another method, for example:

[WebMethod]
public string Hi(string you)
{
    return "Hi " + you;
}

and go to http: // localhost: 85 / Services / NopService.asmx? WSDL the new method does not appear - even after: Restart IIS Clear the temp.asp.net clear hash.web folder

How to update my web service using a new method?

Thank!

+3
source share
6

.asmx , codebehind, ( .asmx "View Markup" ).

Class, . , , codebehind.

+5

-, .

+2

, .dll , , GAC. , , . , GAC gacutil/q/f, .

+2

- App_WebReferences ASP.NET " /". IDE - .

App_WebReferences -, -, ASP.NET. , -, , . , - (.. , , , ).

+1

Right-click on your service in Solution Explorer and update the web service. I checked.

+1
source

One of the things that tricked me and didn't see my changes to WSDL was that I have several instances of Visual Studio open with different versions of the same solution, and it was building the old version from another instance.

+1
source

All Articles