hi all,
i'm using the code you proposed below (i enclose it again)
<?php
// include class + will need changing for your NuSoap set up
include("lib/nusoap.php");
$body = '<GetAffiliateAvailability xmlns="http://www.alpha-beds.com/">
<AffiliateAuthentication>
<Code1>XXXXX</Code1>
<Code2>XXXX</Code2>
</AffiliateAuthentication>
<ArrivalDate>2008-08-01</ArrivalDate>
<DepartureDate>2008-08-08</DepartureDate>
<RoomType>TwinRoom</RoomType>
<MasterDestination>ae77c30b-7974-4a65-abd6-dc004d243abb</MasterDestination>
</GetAffiliateAvailability>';
$s = new nusoap_client('http://xml.alpharooms.com/affiliate.asmx');
$msg = $s->serializeEnvelope($body);
$s ->send($msg,'http://www.alpha-beds.com/GetAffiliateAvailability');
// Display the request and response
$xml = '<xmp>'.$s->response.'</xmp>';
//strip response of header
$xml = strstr($xml, '<GetAffiliateAvailabilityResult>');
///GET POS
$pos = strpos($xml,'</GetAffiliateAvailabilityResult>');
$length = strlen($xml);
$xml = substr($xml, 0, $pos);
// echoes XML
echo $xml;
?>
but i got an errro message
Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 759463 bytes) in /home/fhlinux176/c/cheapbarcelonahotels.co.uk/user/htdocs/nusoap/lib/nusoap.php on line 292
I assume that it is because the query is trying too retrieve too many results. Could you tell me how i have to do to limit the number of results to ..., let's say 20
thanks
Last edited by ontherocks; 19-05-08 at 10:15 PM..
Reason: change affiliates codes
|