Esempio n. 1
0
                </div>
                <img src="' . get_bloginfo('template_url') . '/images/neuigkeiten.jpg" class="full-width-img img-responsive" alt="" />
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="voffset2"></div>

        <div class="container nospacing content"> ';
    include __DIR__ . '/LMwebSoapClient/LMwebSoapClient.php';
    include __DIR__ . '/LMwebSoapClient/classes/MixerRequestObject.php';
    include __DIR__ . '/LMwebSoapClient/Template.php';
    $wsdl = "http://web3dev.travel-it.com/TravelItMixer/SoapMixer?wsdl";
    $sc = new LMwebSoapClient(LMwebSoapClient::$wsdl);
    $mro = new MixerRequestObject('235', 'HR74A69Q', '');
    $mro->setJourneyType($journeytype);
    $mro->setDestination($nach);
    if (isset($journeytype) && $journeytype == "JOURNEY") {
        $mro->setDepartureAirport($von);
    }
    $mro->setPerson('2');
    $mro->setDepartureDate($abreiseDate->format('Y-m-d'));
    $mro->setReturnDate($ruckreiseDate->format('Y-m-d'));
    try {
        if ($mro->getJourneyType() == 'FLIGHT') {
            echo 'index controller search flights';
            $result = $sc->searchFlights($mro);
            if ($result != null) {
                //	Template::searchFlightsTemplate($result, $mro);
            }
        } else {
            $dst = $mro->getDestination();
Esempio n. 2
0
 include __DIR__ . '\\LMwebSoapClient\\HollydayTemplate.php';
 $wsdl = "http://web3dev.travel-it.com/TravelItMixer/SoapMixer?wsdl";
 $sc = new SoapClient($wsdl);
 // $sc = new LMwebSoapClient(LMwebSoapClient::$wsdl);
 //$mro = new MixerRequestObject('88', 'HGD7777', '');
 $mro = new MixerRequestObject('235', 'HR74A69Q', '');
 //$mro->setParamsByArray($_GET);
 //if (isset($_GET['mro'])) {
 //    $mro = unserialize(base64_decode($_GET['mro']));
 //}
 //$mro->setParamsByArray($_GET);
 $mro->setJourneyType($jType);
 //	$mro->setDestination('Asien');
 //	$mro->setRegionGIATAidDestination('Asien');
 //$mro->setDepartureAirport('Munich');
 $mro->setDestination($destination);
 if (isset($jType) && $jType == "JOURNEY") {
     $mro->setDepartureAirport('MUC');
     echo $jType;
 }
 $mro->setPerson($persons);
 $mro->setDepartureDate('2015-10-15');
 $mro->setReturnDate('2015-10-28');
 try {
     $result = $this->sc->searchDestinations(array('mro' => $mro->getParamsAsArray()))->return;
     var_dump($result);
     /* if ($mro->getJourneyType() == 'FLIGHT') {
     //        echo 'searchFlights<br>';
                 echo 'index controller search flights';
     
                 $result = $sc->searchFlights($mro);