M
M
mikki_72016-09-26 13:31:35
htaccess
mikki_7, 2016-09-26 13:31:35

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>

but it should be like this:
'TravelerInfoSummary' => [
'AirTravelerAvail' => [
'PassengerTypeQuantity' => [
['_' => NULL, 'Code' => 'ADT'],
['_' => NULL, 'Code' => 'ADT']
]
]
],
<ns1:TravelerInfoSummary>
<ns1:AirTravelerAvail>
<ns1:PassengerTypeQuantity Code="ADT"/>
<ns1:PassengerTypeQuantity Code="ADT"/>
</ns1:AirTravelerAvail>
</ns1:TravelerInfoSummary>

how to be? help pliz

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Taran, 2016-09-21
@shambler81

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.

N
Nazar Mokrinsky, 2016-09-21
@nazarpc

Usually 301 is reset by restarting the browser

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question