Exemplo n.º 1
0
 function query()
 {
     $this->data = $this->soap->queryData($this->query, false);
     $this->query = '';
     $this->error = $this->soap->getError();
     return $this->data;
 }
Exemplo n.º 2
0
 function _query($query, $indexes, &$result)
 {
     $data = $this->soap->queryData($query);
     if ($this->soap->getError()) {
         $this->error = $this->soap->getError();
         return false;
     }
     $data = simplexml_load_string($data);
     $index = 0;
     //  Merge results
     foreach ($data->children() as $row) {
         $result[$indexes[$index]] = $row;
         if ($this->cache) {
             // Put in cache
             $this->cache->PutCachedData($this->queries[$indexes[$index]], $row->asXML());
         }
         $index++;
     }
 }
Exemplo n.º 3
0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
<?php 
include 'guayaquillib' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'request_prag.php';
ini_set('display_errors', 1);
error_reporting(E_ALL);
$soapWrapper = new GuayaquilSoapWrapper();
$soapClient = $soapWrapper->getSoapClient('prag', false);
$result = $soapClient->FindOffers('VIC', 'C110', 1, 1, 1);
print_r($soapClient);
print_r($result);
die;
if ($request->error != '') {
    echo $request->error;
} else {
    $data = simplexml_load_string($data);
    $data = $data['FindOffers'];
}
?>
</body>
</html>