Forum Discussion
Mark_Scattergoo
Feb 03, 2005Nimbostratus
Loc - 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);
}
}
}