我正在尝试建立以下请求,但是我无法为<SearchFlight xmlns="http://epowerv5.amadeus.com.tr/WS">
等块添加XML属性,并且希望得到一些帮助,因为这已经很久了,超出了我。
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<AuthenticationSoapHeader xmlns="http://epowerv5.amadeus.com.tr/WS">
<WSUserName>username</WSUserName>
<WSPassword>Password</WSPassword>
</AuthenticationSoapHeader>
</soap:Header>
<soap:Body>
<SearchFlight xmlns="http://epowerv5.amadeus.com.tr/WS">
<OTA_AirLowFareSearchRQ ProviderType="OnlyAmadeus" RefundableType="AllFlights" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="0" MaxPrice="0">
<OriginDestinationInformation>
<DepartureDateTime>2018-11-19T00:01:00</DepartureDateTime>
<OriginLocation LocationCode="MUC" />
<DestinationLocation LocationCode="WAW" MultiAirportCityInd="true" />
</OriginDestinationInformation>
<OriginDestinationInformation>
<DepartureDateTime>2018-11-25T00:01:00</DepartureDateTime>
<OriginLocation LocationCode="WAW" MultiAirportCityInd="true" />
<DestinationLocation LocationCode="MUC" />
</OriginDestinationInformation>
<TravelerInfoSummary>
<AirTravelerAvail>
<PassengerTypeQuantity Code="ADT" />
<!--<PassengerTypeQuantity Code="CHD" />-->
</AirTravelerAvail>
</TravelerInfoSummary>
</OTA_AirLowFareSearchRQ>
</SearchFlight>
</soap:Body>
</soap:Envelope>
如您所见,这里有很多属性,我无法开始告诉您它是多么令人困惑。