VMware Cloud Community
TheLittleOne
Enthusiast
Enthusiast
Jump to solution

Error adding SOAP host

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:

0 Kudos
1 Solution

Accepted Solutions
TheLittleOne
Enthusiast
Enthusiast
Jump to solution

I found the "Problem"

In the WSDL i have to define empty elements.

See the xml:

View solution in original post

0 Kudos
7 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

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".

0 Kudos
TheLittleOne
Enthusiast
Enthusiast
Jump to solution

Hi Illian,

I am using Version 5.5.2.1 of vCenter Orchestrator.

I copied the WSDL content and didn't use the URL.

Sorry I attached the wrong xml-file.

Here is the right one:

0 Kudos
TheLittleOne
Enthusiast
Enthusiast
Jump to solution

Hi,

this is what I am doing:

I open the workflow add soap host

add following data (see attachement)

submit the workflow

and get the following back (see attachement)

0 Kudos
TheLittleOne
Enthusiast
Enthusiast
Jump to solution

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;

0 Kudos
TheLittleOne
Enthusiast
Enthusiast
Jump to solution

This is the log of the SOAP Host

0 Kudos
TheLittleOne
Enthusiast
Enthusiast
Jump to solution

Here are the whole logs of the Orchestrator server

0 Kudos
TheLittleOne
Enthusiast
Enthusiast
Jump to solution

I found the "Problem"

In the WSDL i have to define empty elements.

See the xml:

0 Kudos