Condividi tramite


Creare un canale con Siebel

Questa sezione illustra come creare un canale per la messaggistica diretta con Siebel fornendo e utilizzando messaggi XML.

//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();  

Dopo aver creato il canale, è possibile usare tale canale per eseguire operazioni su Siebel.

Vedere anche

Sviluppare applicazioni Siebel usando il modello di canale WCF
Eseguire operazioni sui componenti aziendali con l'adattatore Siebel usando il modello di canale WCF