Brocade Virtual ADX XML API Programmer’s Guide (Supporting ADX v03.1.00) User Manual

Page 837

Advertising
background image

Brocade Virtual ADX XML API Programmer’s Guide

827

53-1003248-01

Example: Adding and binding a real server and a VIP

B

/////////////////////////////////////////////////////////////////////////////

public static Utils GetUtilsInstance()

{

if (m_Utils == null)

m_Utils = new Utils();

return m_Utils;

}

/////////////////////////////////////////////////////////////////////////////

// Name: GetSLBObject

//

// Description: Returns the SlbService class object. Creates the new

object if

// this object is null.

//

// Parameters: -

//

/////////////////////////////////////////////////////////////////////////////

public SlbService GetSLBObject()

{

if (m_SLBService == null)

m_SLBService = new SlbService();

return m_SLBService;

}

/////////////////////////////////////////////////////////////////////////////

// Name: GetSYSObject

//

// Description: Returns the SysService class object. Creates the new

object if

// this object is null.

//

// Parameters: -

//

/////////////////////////////////////////////////////////////////////////////

public SysService GetSYSObject()

{

if (m_SYSService == null)

m_SYSService = new SysService();

return m_SYSService;

}

/////////////////////////////////////////////////////////////////////////////

// Name: OpenConnection

//

// Description: This function forms the URL based on the given DeviceName

// and sets the required parameters to the WSDL SLB Service object

// inorder to communicate witht the ADX Box.

//

// Parameters: DeviceName - The IP Adress of the ADX Box

// UserName - The user name associated with the ADX Box

// Password - The password associated with the ADX Box

//

/////////////////////////////////////////////////////////////////////////////

public void OpenConnection(ref string DeviceName, ref string UserName, ref

string Password)

Advertising