客户端调用第三方remoting 服务程序的n中方式,VB.NET 晚期邦定还真方便[3]

[入库:2005年8月18日] [更新:2007年3月25日]

本文简介:选择自 montaque 的 blog

本质上remoting 服务端和客户端走的是soap协议,对于简单的方法。只要客户端能支持soap就可以了。微软提供了一个soaptoolkit ,比如在vb6 中调用我的remoting 服务。

dim o as new soapclient30
o.mssoapinit 
"http://server:6363/simpleobject?wsdl"
msgbox o.helloworld("montaque")

2. 在vb.net 中调用remoting 服务。通过bindingtomoniker

dim o as object = system.runtime.interopservices.marshal.bindtomoniker("soap:wsdl=http://localhost:6363/simpleobject?wsdl")
msgbox(o.helloworld("asdf"))
当然要设置option explicit off

上述代码好像无法翻译成c#

3。常规的方式,忽略。。。

本文关键:客户端调用第三方remoting 服务程序的n中方式,VB.NET 晚期邦定还真方便
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top