<?php
namespace App\Sabre\Api\Soap\Operation; class SessionCreate extends \App\Sabre\Api\Soap\Operation\GeneralAbstract { protected $Service = 'Session'; protected $Action = 'SessionCreateRQ'; protected function getRequestBody() {} protected function getRequestXml() { $CFG = \Engine\Loader_Cfg::getInstance()->getGlobal(); $soapenv = $this->soapenv; $sec = $this->sec; $mes = $this->mes; $ns = $this->ns; $Envelope = new \Engine\SimpleXmlElement("<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope
		    xmlns:soapenv=\"{$soapenv}\"
		    xmlns:sec=\"{$sec}\"
		    xmlns:mes=\"{$mes}\"
		    xmlns:ns=\"{$ns}\"></soapenv:Envelope>"); $this->getRequestHeader($Envelope); $Body = $Envelope->addChild('Body', null, $soapenv); $SessionCreateRQ = $Body->addChild('SessionCreateRQ', null, $ns); $SessionCreateRQ->addAttribute('returnContextID', ""); $POS = $SessionCreateRQ->addChild('POS', null, $ns); $Source = $POS->addChild('Source', null, $ns); $Source->addAttribute('PseudoCityCode', $CFG['sabre']['Api']['credentials']['Organization']); return $Envelope->asXML(); } } 