Create XmlRpcUrl Interface at runtime

我们两清 提交于 2019-12-04 03:50:30

The URL can be set at runtime, for example:

ISumAndDiff proxy = XmlRpcProxyGen.Create<ISumAndDiff>();
proxy.Url = "http://www.cookcomputing.com/SumAndDiff.rem";   
SumAndDiffValue ret = proxy.SumAndDifference(2, 3);

This assumes the proxy interface derives from IXmlRpcProxy. If not, you have have to cast to IXmlRpcProxy to set the Url property.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!