I am trying to add the SOAP Endpoints on an F5 BIG-IP LTM VE into vCenter Orchestrator v5.1 with the following code, where strPassword is an input of type SecureString.
01. var arrAuthenticationParams = ["Shared Session", "admin", strPassword, "", ""];
02.
03. var objAuthenticationSOAP = SOAPAuthenticationManager.createAuthentication("Basic", arrAuthenticationParams);
04.
05. var objSOAPHost = new SOAPHost();
06. objSOAPHost.name = "CloudLTM-LocalLB.VirtualServer";
07. objSOAPHost.wsdlLocal = false;
08. objSOAPHost.wsdlUri = "https://cldltm-2c5202.cloud/iControl/iControlPortal.cgi?WSDL=LocalLB.VirtualServer";
09. objSOAPHost.connectionTimeout = 30.0;
10. objSOAPHost.requestTimeout = 60.0;
11. objSOAPHost.authentication = objAuthenticationSOAP;
12.
13. var objNewSOAPHost = SOAPHostManager.addHost(objSOAPHost);<== This is the line where it errors at.
14.
15. System.log("The New SOAP Host ID = " + objNewSOAPHost.id);
And I am getting the following error: java.lang.NullPointerException (Workflow:Copy of Manage SSL certificates / SOAP (item2)#13)