1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
| /**
* CONSTRUCTION DU TABLEAU CODE ResaaaaaaaPropertySearch POUR LES PARAMETRES
**/
//je passe en tableau le headerType de ma connexion dans
// les varibales que je vais avoir besoin pour ma méthode
$ResaaaaaBookingSave = array(
"header" => array
(
"baseId" => $headerType['baseId'],
"langInterface" => $headerType['langInterface'],
"langContent" => $headerType['langContent'],
"sessionUuid" => $headerType['sessionUuid']
),
"resaaaaaBooking" => array
(
"property" => array(
"propertyLabel" => "55"
),
/* "bookingStatus" => array
(
"id" =>"101",
"statusLabel" =>"",
"statusOrder" =>"",
"statusName" =>"",
"statusKey" =>"",
"statusDraft" =>"false",
"statusControled" =>"false",
"statusReserved" =>"false",
"statusBooked" =>"false",
"statusCanceled" =>"false",
"forBooking" =>"false",
"forEvent" =>"false",
"enable" =>"false"
),
*/
"bookingStatusId" =>"101",
"bookingDate" => "2012-02-09T11:34:55.000+01:00",
"bookingBegin" => "2012-03-10T11:34:55.000+01:00",
"bookingEnd" => "2012-03-15T11:34:55.000+01:00",
"countChildren" => "0",
"bookingComment" => "******",
"countAdults" => "2"
)
);
// Je teste le retour
//echo '<h2> ResaaaaaPropertySearch Resquest</h2><pre>'; print_r($ResaaaaPropertySearch); echo '</pre>';
// appel de la methode ResaaaaaPropertySearch pour afficher
// toutes les chambres et les dipos et les reservations
$resultCodeBookingSave = $client->call('ResaaaaaaBookingSave', $ResaaaaaaaBookingSave);
if ($client->fault)
{
echo '<h2> ResaaaaaaBookingSave Fault</h2><pre>' . $resultCodeBookingSave . '</pre>';
}
else
{
$err = $client->getError();
// Si pas ok
if ($err)
{
echo '<h2> ResaaaaaaBookingSave Error</h2><pre>' . $err . '</pre>';
}
// Si ok
else
{
echo '<h2> ResaaaaaBookingSave Done</h2><pre>'; print_r($resultCodeBookingSave); echo '</pre>';
}
}
echo '<h1>Flux SOAP</h1>';
echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';
if ($debug_show)
{
echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
}
?> |