Answer the question
In order to leave comments, you need to log in
How to form a soap request with the same keys (php)?
is the number of adult passengers $passengerAdt for example there are 2.
$searchParams = [];
$adultPassenger = ['_' => NULL, 'Code' => 'ADT'];
for($i=0; $i<=$passengerAdt; $i++){
$searchParams[$i] = $adultPassenger;
}
and insert it into the
'TravelerInfoSummary' => [
'AirTravelerAvail' => [
PassengerTypeQuantity' => $searchParams
]
] array,
but with this composition, the following soap request is obtained:
<ns1:travelerinfosummary>
<ns1:airtraveleravail>
<ns1:passengertypequantity code="ADT" id="ref1">
<ns1:passengertypequantity href="#ref1">
<ns1:passengertypequantity href="#ref1">
</ns1:passengertypequantity>
</ns1:passengertypequantity
></ns1:passengertypequantity>
</ns1:airtraveleravail>
</ns1:travelerinfosummary>
<ns1:TravelerInfoSummary>
<ns1:AirTravelerAvail>
<ns1:PassengerTypeQuantity Code="ADT"/>
<ns1:PassengerTypeQuantity Code="ADT"/>
</ns1:AirTravelerAvail>
</ns1:TravelerInfoSummary>
Answer the question
In order to leave comments, you need to log in
no
1. remove browser cache
2. routers themselves can cache dns. and even providers, if there are domain names in the redirects, then it can interfere.
well and
3. millet come in incognito mode.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question