ASMX web link does not update return service type after update

I have a webservice - MyCompany.WebService1

I reference this using a web link in my ASP.net web application.

This web service uses the GetDeal method, which returns a Deals object. The transaction object currently looks (for example) as follows:

public class Deal
{
    Public string Name {get;set;}
    Public string Description {get;set;}
}

This class is in another assembly: MyCompany.Model

The web service refers to this assembly.

In my web application, I can call the GetDeal method. This returns Service1.Deal (service1 is just the name of the web link)

I can access the above properties.

Now I have modified the Deal class and added some more properties. However, I do not see these new properties in my web application.

- -. -, MyCompany.Model ..

, ... - , ...

, ?

+3
2

, :

  • Public / ( )
  • - (-, -).
  • ( - -, , ).
  • - ( ).
+5

, , .

WSDL, , . "? Wsll" URL- - , XML .

+2

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


All Articles