0
我有一个Web服务调用另一个使用会话状态的Web服务。现在我正在重写Web服务并使其成为WCF。我对如何从我的wcf服务调用Web服务存在一些困惑。调用在wcf中使用会话状态的Web服务
下面是代码,因为它现在已经存在:
[WebMethod(EnableSession = true]
public string MyWebServiceCall()
{
string result;
MyOtherWebService.MyOtherWebService C =
new MyOtherWebService.MyOtherWebService();
C.CookieContainer = GetCookieContainer();
result = C.GetResult();
Session[_codingBookSession] = C.CookieContainer;
return result;
}
是否有可能向我展示代码如何取代列出的方法? – zachary 2009-12-05 20:25:50