WEBService学习
发布时间:2020-12-17 02:35:39 所属栏目:安全 来源:网络整理
导读:? ? A: WEBService 1。创建WEBservice工程 工程编译后生成 : ddd.Service.DLL文件 2。在web中引用工程 添加引用:ddd.Service.Dll 在cs中 using System.Web.Services; using ddd.Service; 添加Service对象 假如 dll中有类 users 则创建对象 users usersvc;
?
?
A: WEBService
1。创建WEBservice工程 工程编译后生成 : ddd.Service.DLL文件
2。在web中引用工程
添加引用:ddd.Service.Dll
在cs中
using System.Web.Services;
using ddd.Service;
添加Service对象
假如 dll中有类 users 则创建对象 users usersvc;
3。在函数中引用: private void Btn1_Click() { usersvc= new Users(); string hello= usersvc.GetHello(); }
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |