webMethods Microsoft Package 9.0 | webMethods Package for Microsoft .NET Documentation | webMethods Package for Microsoft .NET Client API Programmer’s Documentation | Invoking a Service using Java Client API from Designer | Generating a C# Client Code from Designer | Connect to Integration Server (IData)
 
Connect to Integration Server (IData)
The third stage creates the connection to Integration Server:
{
String returnString = null;
// create our connection context with the Integration Server
Context serverContext = new Context();
// connect to the server
try
{
serverContext.connect( "localhost:5555", "Administrator", "manage" );
}
catch( Exception ex )
{
Console.WriteLine("Connection to server failed, reason=" + ex );
return null;
}