VMware Cloud Community
Gregi44
Contributor
Contributor

Can't access to vco using New SoapClient in PhP

Hello,

I'm trying to launch a workflow using php with this simple code (at this moment i'm just trying to list all function available)

$wsdl = "https://vco_id:8281/vco/vmware-vmo-webcontrol/webservice?WSDL";

$client = new SoapClient($wsdl);

var_dump($client->__getFunctions());

But i got this error in my apache error.log

PHP Fatal error:  Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://vco_ip:8281/vco/vmware-vmo-webcontrol/webservice?WSDL' : failed to load external entity "https://vco_ip:8281/vco/vmware-vmo-webcontrol/webservice?WSDL"

The request work for the web service Paypal "https://www.paypalobjects.com/wsdl/PayPalSvc.wsdl "

So i suppose it come from a vco configuration.

more over, i have already a script working using this soap uri but only work on a specific host.

[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}

$vcoWS = New-WebServiceProxy -Class VCO -Namespace VCO -Uri https://vco_ip:8281/vco/vmware-vmo-webcontrol/webservice?WSDL

So my question is, is there a security setting in vco to block ip or something?

Sorry for this post, i haven't configure VCO and the guy who did left.

Thanks for your help.

Regards.

Tags (2)
0 Kudos
3 Replies
daphnissov
Immortal
Immortal

What version of vCO/vRO is this? Are you aware there's a REST API now that can do this?

0 Kudos
Gregi44
Contributor
Contributor

Hi Daphnissov,

We are using Vco 5.5.2, build 1946710, and soap plugin 1.0.3.

Yes i see a lot of thread say me that but i never find a tuto to explain how to connect vco with REST and launch a worflow.

Regards

0 Kudos
iiliev
VMware Employee
VMware Employee

What happens if you try to open the WSDL URL in a browser?

As for launching workflows via REST, there are available tutorials; check for example this one - https://www.vcoteam.info/articles/learn-vco/268-how-to-use-the-rest-api-to-start-a-workflow.html

0 Kudos