c#连接webservice方法

使用webservice,应用后,可以直接调用方法。类似于引用dll后,直接调用类方法

右键引用-》添加服务引用-》输入webservice地址->转到

 

 类文件引用:

using 命名空间xxx.olding_interface;

构造函数中初始化连接

m_service.方法xxx()直接调用 

m_service.方法2xxx(string xx)直接调用 

猜你喜欢

转载自blog.csdn.net/txwtech/article/details/131263708