c# connect webservice method

Using webservice, after application, you can directly call the method. Similar to calling the class method directly after referencing the dll

Right-click reference-"Add service reference-"Enter webservice address->Go to

 

 Class file reference:

using namespace xxx.olding_interface;

Initialize the connection in the constructor

m_service.method xxx() calls directly 

m_service.method 2xxx (string xx) is called directly 

 

Guess you like

Origin blog.csdn.net/txwtech/article/details/131263708