Using PHP and SoapClient.
I need to pass the following XML into a soap request - i.e. multiple \'s within .
I also had this problem and found the solution. Stays needs to be an array with ascending keys starting with 0.
$client = new SoapClient('http://myservice.com?wsdl');
$stays[] = array('startDate'=>'01-01-2013', 'endDate'=>'02-02-2013');
$stays[] = array('startDate'=>'02-02-2013', 'endDate'=>'03-03-2013');
$params = array(
'reservation' => array('stays'=>$stays)
);
$client->saveReservation($params);
I found my answer on this page: https://bugs.php.net/bug.php?id=45284