Forum Discussion
Mark_Scattergoo
Nimbostratus
Feb 02, 2005XML exception when calling ITCMLocalLBVirtualServer.get_virtual_address_list()
I'm writing some iControl code (using iControl 4.6.2) for use against a
540 running 4.5.9 Build 2 and a 2400 running 4.5 PTF3. When I call
ITCMLocalLBVirtualServer.get_virtual_addre...
Mark_Scattergoo
Nimbostratus
Feb 03, 2005Loc - thanks for the response. According to the documentation I have, get_virtual_address_list takes one argument and returns a string[]. Here is some sample code to reproduce the problem. I can take this code, change the IP address in the webservice URL from the 540 to the 2400, and have it work fine.
using System;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Web;
namespace BigIpPoC
{
class Class2
{
[STAThread]
static void Main(string[] args)
{
ServicePointManager.CertificatePolicy = new CertPolicy();
F5VirtualServer.ITCMLocalLBVirtualServer bigIpVirtualServer = new F5VirtualServer.ITCMLocalLBVirtualServer();
bigIpVirtualServer.Url = "https:///iControl/iControlPortal.cgi";
bigIpVirtualServer.PreAuthenticate = true;
bigIpVirtualServer.Credentials = new NetworkCredential("", @"", "");
string[] bigIpVlanWildcardArresses;
try
{
string[] virtualAddressList = bigIpVirtualServer.get_virtual_address_list(out bigIpVlanWildcardArresses);
}
catch (Exception e)
{
Console.Write(e.ToString());
}
}
}
public class CertPolicy : ICertificatePolicy
{
public CertPolicy()
{
// Nothing to do.
}
public bool CheckValidationResult(
ServicePoint srvPoint,
X509Certificate certificate,
WebRequest request,
int certificateProblem)
{
return(true);
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects