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!
.asmx , codebehind, ( .asmx "View Markup" ).
Class, . , , codebehind.
-, .
, .dll , , GAC. , , . , GAC gacutil/q/f, .
- App_WebReferences ASP.NET " /". IDE - .
App_WebReferences -, -, ASP.NET. , -, , . , - (.. , , , ).
Right-click on your service in Solution Explorer and update the web service. I checked.
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.