Hi I get an error if I add a SOAP host to the vmware orchestrator.
The logs shows me the error:
2015-01-12 21:58:14.452+0100 [WorkflowExecutorPool-Thread-10] WARN {xxx@domain:Add a SOAP host:2A828080808080808080808080808080818080800126658240472157fdafc0fce:ff8080814add88c2014adff096640039} [SOAPHost] SOAP host is not available: SOAPHost[Id: 46c73a6e-47fd-4be0-b621-860e9c6d11ff, Name:hostname, WSDL URI: null, Authentication type: None]
java.lang.IllegalArgumentException: WSDL content is not allowed to be empty!
This is the WSDL:
I found the "Problem"
In the WSDL i have to define empty elements.
See the xml:
Which version/build of vCO do you use?
The log message complains that you haven't provided WSDL URI.
Also, the attached WSDL file is not a valid XML file. It has 2 space characters before the opening <?xml> tag, and also the encoding is set to "utf 8" instead of "utf-8".
var host = new SOAPHost();
host.name = name;
host.wsdlUri = wsdlUri;
host.connectionTimeout = connectionTimeout;
host.requestTimeout = requestTimeout;
host.authentication = System.getModule("com.vmware.library.soap.configuration").getSOAPAuthentication(authenticationType, sessionMode, username, password, domain, workstation, spn);
host.proxyHost = proxyHost;
host.proxyPort = proxyPort;
host = SOAPHostManager.addHost(host); <== In this line I get the error (java.lang.NullPointerException (Dynamic Script Module name : addSOAPHost#8)
System.log("SOAP host added: " + host);
return host;