I'm making a soap call, but one of the nested elements repeats so it gets overwritten when I create the array, numbering the elements breaks to soap request.
$result = $client->SaveEventRegistration(array(
'SetEventRegistrationRQ' => array(
'Attendees' => array(
'Attendee' => array(
'EventRegistrationTypeID' => '3125',
'NoofSeats' => '2',
'RegistrationCost' => '20',
'Contact' => array(
'FirstName' => 'Danny',
'LastName' => 'Hulk',
'Email' => '[email protected]',
'IsForNewsletter' => 'true'
)
),
'Attendee' => array(
'EventRegistrationTypeID' => '3149',
'NoofSeats' => '2',
'RegistrationCost' => '30',
'Contact' => array(
'FirstName' => 'Penny',
'LastName' => 'Hulk',
'Email' => '[email protected]',
'IsForNewsletter' => 'true'
)
)
),
'EventId' => '2652',
'RegistrationBy' => array(
'FirstName' => 'Incredible',
'LastName' => 'Hulk',
'Email' => '[email protected]',
'EventScheduleId' => '2617'
)
)));