Web Service Software Factory 入门
2006-10-22 11:06
344 查看
这次主要是通过一个示例基本介绍Web Service Software Factory各个层次的开发
一、建立模板
文件—新建—项目,选择Web Service Software Factory (ASMX)并建立ASMX Service 模板如下图
public partial class Customer
class FindCustomerAction
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlRootAttribute(Namespace = "http://CustomerService.DataTypes/2006/10", IsNullable = false)]
public class Customer
using CustomerService.ServiceContracts;
using CustomerService.BusinessLogic;
namespace CustomerService.ServiceImplementation
十、发布服务
using (localhost.CustomerManager proxy = new localhost.CustomerManager())
{
localhost.SearchRequest request = new localhost.SearchRequest();
request.Criteria = new localhost.Customer();
request.Criteria.LastName = SearchText.Text;
localhost.SearchResponse response = proxy.FindCustomer(request);
ResultsGrid grid = new ResultsGrid(response.Customers);
grid.ShowDialog(this);
}
十二、总结:
这是关于Web Service Software Factory的一次入门的实例,现在只牵涉到怎样去实现,里面牵涉的内容很多,下次就详细的描述各个层次之间设计的原理。
一、建立模板
文件—新建—项目,选择Web Service Software Factory (ASMX)并建立ASMX Service 模板如下图
public partial class Customer
class FindCustomerAction
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlRootAttribute(Namespace = "http://CustomerService.DataTypes/2006/10", IsNullable = false)]
public class Customer
using CustomerService.ServiceContracts;
using CustomerService.BusinessLogic;
namespace CustomerService.ServiceImplementation
十、发布服务
using (localhost.CustomerManager proxy = new localhost.CustomerManager())
{
localhost.SearchRequest request = new localhost.SearchRequest();
request.Criteria = new localhost.Customer();
request.Criteria.LastName = SearchText.Text;
localhost.SearchResponse response = proxy.FindCustomer(request);
ResultsGrid grid = new ResultsGrid(response.Customers);
grid.ShowDialog(this);
}
十二、总结:
这是关于Web Service Software Factory的一次入门的实例,现在只牵涉到怎样去实现,里面牵涉的内容很多,下次就详细的描述各个层次之间设计的原理。
相关文章推荐
- Web Service Software Factory 入门
- [导入]WebService开发(三)Web Service Software Factory
- Web Service Software Factory
- WebService Software Factory 设计草图
- WebService开发(三)Web Service Software Factory
- Web Service Software Factory基础应用
- Web Service Software Factory 框架
- 学习笔记:使用Web Service Software Factory开发简易留言本服务以及Mobile调用实现-1.创建Service
- Service Station-Web Service Software Factory Modeling Edition
- Web Service Software Factory
- WebService开发(三)Web Service Software Factory
- Web Service Software Factory
- Web Service Software Factory
- Web Service Software Factory 构架
- 转:Web Service Software Factory
- Web Client Software Factory发布了!
- [导入]Web Client Software Factory系列(1):初识与预备知识
- [导入]Web Client Software Factory系列(1):初识与预备知识
- Java WebService入门实例
- RESTful WebService入门(转)