I am trying to determine how I can extract the Description found in the then I dump the Vapp Template object
$vmSDK = $service->createSDKObj($record->get_href()); $vApp = $vmSDK->getContainerVApp();var_dump($vApp);
["namespacedef":protected]=> string(601) " xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"" ["tagName":protected]=> string(12) "VAppTemplate" ["status":protected]=> string(1) "8" ["Files":protected]=> NULL ["name":protected]=> string(28) "Redhat Enterprise 6 (RHEL 6)" ["id":protected]=> string(60) "urn:vcloud:vapptemplate:daf4b8b1-fb15-43e5-932e-a7c5164a026c" ["Description":protected]=> string(30) "Or is it this the description?"
But all I can ever get is errors:
<b>Fatal error</b>: Call to protected method VMware_VCloud_API_VAppTemplateType::exportAttributes() from context '' in <b>/var/www/cloudstore.usask.ca/html/store_form.php</b> on line <b>60</b><br /> |
and
<b>Notice</b>: Undefined property: VMware_VCloud_API_VAppTemplateType::$get_Description in <b>/var/www/cloudstore.usask.ca/html/store_form.php</b> on line <b>60</b><br />
and
<PRE><br /> | |
<b>Fatal error</b>: Cannot access protected property VMware_VCloud_API_VAppTemplateType::$Description in <b>/var/www/cloudstore.usask.ca/html/store_form.php</b> on line <b>60</b><br /> |
Any direction to this would be appreciated. Examples are also nice.