摘要: 我们对宿主的概念、环境、特点做了文字性的介绍和概括,接下来我们将通过实例对这几种寄宿方式进行介绍。为了更好的说明各寄宿环境特点,本实例采用Http和net.tcp两种服务通讯方式,同时寄宿在不同的宿主中。程序结构如下:服务契约的接口和实现代码如下:usingSystem;usingSystem.Co... 阅读全文
posted @ 2015-04-09 14:32 徐本县 阅读(142) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Data.Services;using System.Data.Services.Common;using System.Linq;namespace CustomDataServi... 阅读全文
posted @ 2015-04-09 10:50 徐本县 阅读(202) 评论(0) 推荐(0)
摘要: 首先要写一个执行动态调用的方法:在里面实现反射调用。public static object ExecuteMethod(string pUrl,string pMethodName, params object[] pParams) { EndpointAddr... 阅读全文
posted @ 2015-04-09 10:48 徐本县 阅读(1021) 评论(0) 推荐(0)