Hi,
I am trying to integrate workflows from PHP code using the orchestrator SOAP API.
<?php
try
{
$parameters=array(username=>"username",password=>"passwd");
$client = new SoapClient('https://vcoserver:8281/vco/vmware-vmo-webcontrol/webservice?WSDL');
$result = $client->getAllWorkflows($parameters);
foreach($result as $item)
{
foreach($item as $work)
{
echo $work->name;
echo "<br>";
echo "id";
echo $work->id;
echo "<br />";
}
}
}
catch(Exception $e)
{
echo $e;
}
?>
I do not see any error/exception, but do not see any output as well.
Am i missing anything?
Hi Everyone
I am trying to integrate VCO 5.5 with php.
I am using below code to execute workflow. I am facing issue with passing variables from php to workflow.
<?php
$vco_server = "10.14.72.32"; //your vco ip
$vco_user = "administrator@vsphere.local";
$vco_pass = "Test#1234";
$vco_id = "ae09cca3-51f6-4146-ac6c-953e307e4d27";
$obj = new stdObject();
$obj->value = "10.134.72.32";
$obj->name = "hostname";
$obj->type = "string";
echo $onj->name;
$vco = new SoapClient('https://' . $vco_server . ':8281/vmware-vmo-webcontrol/webservice?WSDL');
$param = (object)array(workflowId=>$vco_id,username=>$vco_user,password=>$vco_pass,workflowInputs=>$obj);
$result = $vco->executeWorkflow($param);
?>
I successfully pass single parameter by creating object like below
$vco_input = (object)array('name'=>'hostname','value'=>'test','type'=>'string');
Now I am not able understand how to pass multiple parameters.
Can someone help me?