Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function doxml($action, $xml)
- {
- $actionresponse = $action."Response";
- $xml = "<?xml version='1.0' encoding='UTF-8'?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:ns1='urn:vim25' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
- <SOAP-ENV:Body>
- <ns1:$action>
- $xml
- </ns1:$action>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>";
- //echo $xml;
- $response = $this->__doRequest($xml, $this->location, "urn:vim25/5.1", 1, $one_way = 0);
- $soap = simplexml_load_string($response);
- return $soap->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children()->$actionresponse;
- }
Advertisement
Add Comment
Please, Sign In to add comment