您的位置:首页 > 其它

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的一次入门的实例,现在只牵涉到怎样去实现,里面牵涉的内容很多,下次就详细的描述各个层次之间设计的原理。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: