WEBService学习

 

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();
}

Ok

posted @ 2007-03-06 08:47  路口  阅读(119)  评论(0编辑  收藏  举报