亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 編程 > .NET > 正文

Using Web Services for Remoting over the Internet.

2024-07-21 02:27:49
字體:
來源:轉載
供稿:網友
introduction
this article describes a design and implementation (c#) of the remoting over internet using the web service as a gateway into the remoting infrastructure. the web service gateway (custom remoting channel) allows to enhance the remoting channel over internet and its chaining with another heterogeneous channel. consuming a remote object over internet is full transparently and it doesn't require any special implementation from the remoting via intranet. the web service gateway enables to create a logical model of the connectivity between the different platforms and  languages. before than we will go to its implementation details, let's start it with usage and configuration issue. for some demonstration purpose i will use a msmq custom remoting channel (msmqchannellib.dll), which i described in my previously article [][1]#[1]]1]. i am assuming that you have a knowledge of the .net remoting and web service.
usage
consuming a remote object over internet using the web service gateway is very straightforward and it actually requires only to install the following assemblies:
  • webservicechannellib , this is a custom remoting channel on the client side to forward a remoting message to the web service gateway over internet (outgoing message).
  • webservicelistener, this is a web service (gateway) to listen an incoming message from the client side and forward it to the local remoting infrastructure (incoming message).

note that the above assemblies have to be installed (into the gac) both on the server and client sides when a remote callback is used.  
the next step is to configure a server and client host sides. their configuration are depended from the actually application. let me assume, we want to call a remote object driven by msmq custom channel over internet. their config files might look like the following snippets:
server.exe.config
<configuration>
<system.runtime.remoting>
  <application >
   <service>
    <wellknown mode="singleton" type="myremoteobject.remoteobject, myremoteobject"
               objecturi="endpoint" />
   </service>
   <channels>
   <channel type="rkiss.msmqchannellib.msmqreceiver, msmqchannellib"
            listener="./reqchannel"/>
   <channel type="system.runtime.remoting.channels.tcp.tcpchannel, system.runtime.remoting"
            port="8090" />
   </channels>
  </application>
</system.runtime.remoting>
</configuration>
the above server config file will register two channels to listen an incoming message for the remote well known singleton object.
client.exe.config
this is an example of the client config file to register our custom remoting channel.
<configuration>
<system.runtime.remoting>
  <application>
   <client >
    <wellknown type="myremoteobject.remoteobject, remoteobject"
               url="ws://localhost/webservicelistener/listener.asmx;
               tcp://localhost:8090/endpoint/remoteobject" />
   </client>
   <channels>
    <channel type="rkiss.webservicechannellib.sender, webservicechannellib" mode="soap"/>
   </channels>
  </application>
</system.runtime.remoting>
</configuration>
the ws is a custom remoting client channel to dispatch an imessage over internet using a binary respectively soap mode formatter. note that the mode is a customchannelproperty and its default value is binary.
web.config
this is a web service config file. the following snippet is its part. the web service gateway is also a local remoting client, therefore a client (sender) channel is requested to be registered. the following snippet shows a configuration of the two channels - tcp and msmq.
<system.runtime.remoting>
<application >
  <channels>
   <channel type="system.runtime.remoting.channels.tcp.tcpchannel, system.runtime.remoting"/>
   <channel type="rkiss.msmqchannellib.msmqsender, msmqchannellib"                  
            respond="./rspchannel" admin="./adminchannel" timeout="30" priority="10"/>
  </channels>
</application>
</system.runtime.remoting>
activating a remote object
the well known remote object (wko) is activated by its consumer using the getobject method mechanism. the proxy is created based on the remote object metadata assembly installed in the gac (see an argument objecttype). the remoting channel is selected by the objecturl argument. the url address in this solution has two parts :
  • connectivity to the web service gateway over internet
  • connectivity to the remote object over intranet within the web service gateway

between the primary and secondary addresses is a semicolon delimiter as it is shown the below:
string objecturl = @"ws://localhost/webservicelistener/listener.asmx; msmq://./reqchannel/endpoint";
using this objecturl design pattern allows an easy selection of the web service gateways on the internet. note that the ws custom remoting channel will trim this primary address and forward only its secondary part. in this solution, the objecturl represents a physical path of the logical connectivity between the consumer and remote object regardless of how many channels are needed. in this example, the web service gateway resides on the localhost and it should be replaced by the real machine name.
finally, the following code snippet shows an activation of the remote object:
// activate a remote object
type objecttype = typeof(myremoteobject.remoteobject);
string objecturl = @"ws://localhost/webservicelistener/listener.asmx; msmq://./reqchannel/endpoint";
remoteobject ro = (remoteobject)activator.getobject(objecttype, objecturl);
note that a metadata (assembly) of the remote object must be installed into the gac in the places such as client, web service gateway and server host.
that's all for the client/remoteobject plumbing issue over the internet.
the following pictures shows this connectivity:


    
now, to understand how the message flows between the heterogeneous channels over the internet, have a look at the following paragraphs:
 


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
午夜剧场成人观在线视频免费观看| 久久夜色精品亚洲噜噜国产mv| 亚洲综合中文字幕在线观看| 久久99国产精品久久久久久久久| 久久久久99精品久久久久| 深夜福利国产精品| 欧美亚洲视频在线看网址| 亚洲激情视频在线播放| 久久亚洲精品一区| 国产成人福利夜色影视| 欧美性69xxxx肥| 性欧美暴力猛交69hd| 91色琪琪电影亚洲精品久久| 亚洲色图av在线| 中文.日本.精品| 国产精品久久久久免费a∨大胸| 亚洲一品av免费观看| 日韩免费高清在线观看| 久久免费视频在线观看| 日韩精品一区二区三区第95| 国产精品亚发布| 热久久这里只有精品| 亚洲国产精品网站| 一本色道久久综合狠狠躁篇的优点| 亚洲成人黄色网址| 中文字幕日本欧美| 国产日韩欧美视频| 国产精品久久久| 日韩av片免费在线观看| 亚洲成人激情图| 欧美激情日韩图片| 亚洲无限乱码一二三四麻| 亚洲国产成人久久| 77777少妇光屁股久久一区| 久久久久久香蕉网| 欧美裸身视频免费观看| 热re91久久精品国99热蜜臀| 亚洲精品美女在线观看播放| 久久香蕉国产线看观看网| 色综合久久久久久中文网| 久操成人在线视频| 黑人狂躁日本妞一区二区三区| 欧美日韩一区二区在线播放| 欧美激情亚洲激情| 国产精品丝袜一区二区三区| 少妇高潮久久久久久潘金莲| xxxx性欧美| 久久久久久久久久久久久久久久久久av| 久久久99久久精品女同性| 亚洲精品在线看| 中文字幕亚洲专区| 国产精品成人免费视频| 永久555www成人免费| 亚洲天堂色网站| 久久av.com| 久久久久日韩精品久久久男男| 国产精品高潮粉嫩av| 国产一区二区三区网站| 欧美亚洲视频一区二区| 国产精品一区二区三区成人| 欧美一级淫片播放口| 亚洲精品日产aⅴ| 亚洲欧美日本精品| 久久久www成人免费精品| 国产97在线|亚洲| www.久久久久久.com| 精品丝袜一区二区三区| 欧美成人亚洲成人日韩成人| 亚洲在线免费视频| 日韩欧美一区二区在线| 亚洲精品自拍视频| 久久久国产在线视频| 日韩精品在线免费观看视频| 欧美激情国产高清| 亚洲一区二区日本| 国产精品美女www| 国外日韩电影在线观看| 亚洲开心激情网| 亚洲女在线观看| 国产亚洲欧美aaaa| 不卡av在线播放| 久久久女人电视剧免费播放下载| 黄色一区二区在线| 成人国产精品久久久久久亚洲| 国产精品爽黄69天堂a| 69久久夜色精品国产69乱青草| 日本精品久久久久久久| 日韩免费电影在线观看| 日韩免费av片在线观看| 高清日韩电视剧大全免费播放在线观看| 国产精品视频色| 日本伊人精品一区二区三区介绍| 国产91在线视频| 欧美一区二区三区免费观看| 人人爽久久涩噜噜噜网站| 欧洲美女7788成人免费视频| 欧美日韩免费在线观看| 精品视频在线播放| 日韩小视频在线观看| 亚洲精品美女久久久久| 欧美日韩亚洲系列| 国产精品a久久久久久| 欧美日韩中文在线| 亚洲欧美一区二区三区四区| 在线丨暗呦小u女国产精品| 91精品国产高清自在线| 一区二区福利视频| 68精品国产免费久久久久久婷婷| 国产精品私拍pans大尺度在线| 麻豆精品精华液| 欧美一级片久久久久久久| 日韩欧美在线视频免费观看| 成人www视频在线观看| 色狠狠久久aa北条麻妃| 亚洲欧美日韩中文在线制服| 久久久精品久久久久| 国产精自产拍久久久久久| 国产精品扒开腿做爽爽爽男男| 欧美国产日本高清在线| 成人美女免费网站视频| 国产99久久久欧美黑人| 欧美性猛xxx| 日韩乱码在线视频| 国产精品∨欧美精品v日韩精品| 51色欧美片视频在线观看| 国产精品丝袜视频| 国产成人精品视频在线观看| 伊人久久精品视频| 日韩国产高清视频在线| 国产精品久久久久久久久男| 亚洲精品98久久久久久中文字幕| 日本高清不卡在线| 最近2019免费中文字幕视频三| 久久久亚洲天堂| 在线观看亚洲视频| 日韩精品极品在线观看播放免费视频| 亚洲最大成人免费视频| 777777777亚洲妇女| 91视频88av| 欧美日韩国产页| 中文字幕日韩欧美| 一本大道久久加勒比香蕉| 综合欧美国产视频二区| 国产精品日韩电影| 欧美理论在线观看| 这里只有精品视频在线| 久久久久一本一区二区青青蜜月| 国产mv免费观看入口亚洲| 国产一区二区免费| 精品美女国产在线| 最近中文字幕mv在线一区二区三区四区| 国产欧美久久久久久| 亚洲精品wwww| 国产精品久久999| 亚洲男人天堂手机在线| 亚洲free性xxxx护士hd| 在线激情影院一区| 亚洲成人网久久久| 国产精品一区二区女厕厕| 日韩电影网在线| 日韩成人xxxx| 中文欧美日本在线资源| 91国内产香蕉| 国内免费久久久久久久久久久|