次の方法で共有


Siebel を使用してチャネルを作成する

このセクションでは、XML メッセージを提供して使用することで、Siebel を使用してダイレクト メッセージング用のチャネルを作成する方法について説明します。

//create a channel factory, capable of sending a request to Siebel and receiving a reply (IRequestChannel)  
IChannelFactory<IRequestChannel> factory = binding.BuildChannelFactory<IRequestChannel>(new BindingParameterCollection());  
  
//open factory  
factory.Open();  
  
//obtain a channel from the factory by specifying the address you want to connect to  
IRequestChannel irc = factory.CreateChannel(address);  
  
//open the channel  
irc.Open();  
  
//perform operations  
…………  
…………  
…………  
  
//close the channel  
irc.Close();  
  
//close the factory  
factory.Close();  

チャネルを作成したら、そのチャネルを使用して Siebel に対する操作を実行できます。

参照

WCF チャネル モデルを使用した Siebel アプリケーションの開発
WCF チャネル モデルを使用して Siebel アダプターを使用してビジネス コンポーネントに対する操作を実行する