VMware Cloud Community
UofS
Enthusiast
Enthusiast
Jump to solution

Web Services cannot find wdsl?

I want to call a workflow from a php application server but am getting this error (confirmed both PHP and Java are also seeing the error):

Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://servername:8281/vmware-vmo-webcontrol/webservice' : Extra content at the end of the document

I see a web page that says:

webservice
Hi there, this is an AXIS service!
Perhaps there will be a form for invoking the service here...

Any idea why this is not working?

0 Kudos
1 Solution

Accepted Solutions
UofS
Enthusiast
Enthusiast
Jump to solution

Never mind.  1d10t

This works:

$url = "https://server.com:8281/vmware-vmo-webcontrol/webservice?WSDL";

$client = new SoapClient($url, array("trace" => 1, "exception" => 0));
$result = $client->__getFunctions();
var_dump($result);

View solution in original post

0 Kudos
2 Replies
UofS
Enthusiast
Enthusiast
Jump to solution

Never mind.  1d10t

This works:

$url = "https://server.com:8281/vmware-vmo-webcontrol/webservice?WSDL";

$client = new SoapClient($url, array("trace" => 1, "exception" => 0));
$result = $client->__getFunctions();
var_dump($result);
0 Kudos
tschoergez
Leadership
Leadership
Jump to solution

Hi!

Be aware that vCO 5.1 provides a much more powerful REST based API (the "old" SOAP API is still supported, though).

So depending on your update plans you may not want to spend too much time with the SOAP one 🙂

Cheers,

Joerg

0 Kudos