11-25-2019, 10:19 PM
(This post was last modified: 11-26-2019, 02:55 AM by ShaneStump.)
Howdy Jose!
I am NOT attaching an XML file. I am putting it into the body of the request.
The Request->Files->Count is zero any how (I had already checked that).
I have tried several things with Advanced Rest Client and when I look at the RawHeaders property of THttpRequest, the last one lists as "content-length: 2500".
I can't figure out how to get the content. The content is an XML stream like below:
<?xml version="1.0" encoding="UTF-8"?>
<BookingRequest xmlns="http://toursgds.com/api/01">
<ApiKey>{AD7276FB-9F98-4495-BB1A-E24E99B82E06}</ApiKey>
<ResellerId>12345</ResellerId>
<SupplierId>67890</SupplierId>
<ExternalReference>10051374722992645</ExternalReference>
<Timestamp>2019-11-13T12:43:44.014Z</Timestamp>
<Parameter>
<Name>CompanyID</Name>
<Value>75</Value>
</Parameter>
<Parameter>
<Name>CustomerID</Name>
<Value>19229</Value>
</Parameter>
<Extension>
<any/>
</Extension>
<BookingReference>000000028</BookingReference>
<TravelDate>2019-11-25</TravelDate>
<SupplierProductCode>HIC</SupplierProductCode>
<Location>Kingston, CA</Location>
<TourOptions>
<SupplierOptionCode>HIC</SupplierOptionCode>
<SupplierOptionName>Heart of the Islands Cruise</SupplierOptionName>
<TourDepartureTime>12:30:00</TourDepartureTime>
<TourDuration>PT3H</TourDuration>
<Option>
<Name>Location</Name>
<Value>CW</Value>
</Option>
<Option>
<Name>Resource</Name>
<Value>IQ</Value>
</Option></TourOptions>
<CurrencyCode>USA</CurrencyCode>
<Amount>250.00</Amount>
<Traveller>
<TravellerIdentifier>1</TravellerIdentifier>
<TravellerTitle>Mr</TravellerTitle>
<GivenName>Shane</GivenName>
<Surname>Stump</Surname>
<AgeBand>ADULT</AgeBand>
<LeadTraveller>true</LeadTraveller>
</Traveller>
<Traveller>
<TravellerIdentifier>2</TravellerIdentifier>
<TravellerTitle>Mrs</TravellerTitle>
<GivenName>Sandi</GivenName>
<Surname>Stump</Surname>
<AgeBand>ADULT</AgeBand>
<LeadTraveller>false</LeadTraveller>
</Traveller>
<Traveller>
<TravellerIdentifier>3</TravellerIdentifier>
<TravellerTitle>Miss</TravellerTitle>
<GivenName>Cassie</GivenName>
<Surname>Stump</Surname>
<AgeBand>ADULT</AgeBand>
<LeadTraveller>false</LeadTraveller>
</Traveller>
<TravellerMix>
<Adult>3</Adult>
<Child>0</Child>
<Youth>0</Youth>
<Infant>0</Infant>
<Senior>0</Senior>
<Total>3</Total>
</TravellerMix>
<SpecialRequirement>Special Requirement</SpecialRequirement>
<SupplierNote>Customer notes</SupplierNote>
<AdditionalRemarks>
<Remark>Additional remarks #1.</Remark>
<Remark>Additional remarks #2.</Remark>
</AdditionalRemarks>
<ContactDetail>
<ContactType>MOBILE</ContactType>
<ContactName>Shane Stump </ContactName>
<ContactValue>US+1 123-456-7890</ContactValue>
</ContactDetail>
<ContactEmail>MSG-8b17fa92-7b35-4fdb-9f18-f8a69252e019+BR-999999999@expmessaging.tripadvisor.com</ContactEmail>
<AvailabilityHoldReference></AvailabilityHoldReference>
</BookingRequest>
The stream is 2500 bytes.
How do I get it?
Thanks in advance,
Shane
I am NOT attaching an XML file. I am putting it into the body of the request.
The Request->Files->Count is zero any how (I had already checked that).
I have tried several things with Advanced Rest Client and when I look at the RawHeaders property of THttpRequest, the last one lists as "content-length: 2500".
I can't figure out how to get the content. The content is an XML stream like below:
<?xml version="1.0" encoding="UTF-8"?>
<BookingRequest xmlns="http://toursgds.com/api/01">
<ApiKey>{AD7276FB-9F98-4495-BB1A-E24E99B82E06}</ApiKey>
<ResellerId>12345</ResellerId>
<SupplierId>67890</SupplierId>
<ExternalReference>10051374722992645</ExternalReference>
<Timestamp>2019-11-13T12:43:44.014Z</Timestamp>
<Parameter>
<Name>CompanyID</Name>
<Value>75</Value>
</Parameter>
<Parameter>
<Name>CustomerID</Name>
<Value>19229</Value>
</Parameter>
<Extension>
<any/>
</Extension>
<BookingReference>000000028</BookingReference>
<TravelDate>2019-11-25</TravelDate>
<SupplierProductCode>HIC</SupplierProductCode>
<Location>Kingston, CA</Location>
<TourOptions>
<SupplierOptionCode>HIC</SupplierOptionCode>
<SupplierOptionName>Heart of the Islands Cruise</SupplierOptionName>
<TourDepartureTime>12:30:00</TourDepartureTime>
<TourDuration>PT3H</TourDuration>
<Option>
<Name>Location</Name>
<Value>CW</Value>
</Option>
<Option>
<Name>Resource</Name>
<Value>IQ</Value>
</Option></TourOptions>
<CurrencyCode>USA</CurrencyCode>
<Amount>250.00</Amount>
<Traveller>
<TravellerIdentifier>1</TravellerIdentifier>
<TravellerTitle>Mr</TravellerTitle>
<GivenName>Shane</GivenName>
<Surname>Stump</Surname>
<AgeBand>ADULT</AgeBand>
<LeadTraveller>true</LeadTraveller>
</Traveller>
<Traveller>
<TravellerIdentifier>2</TravellerIdentifier>
<TravellerTitle>Mrs</TravellerTitle>
<GivenName>Sandi</GivenName>
<Surname>Stump</Surname>
<AgeBand>ADULT</AgeBand>
<LeadTraveller>false</LeadTraveller>
</Traveller>
<Traveller>
<TravellerIdentifier>3</TravellerIdentifier>
<TravellerTitle>Miss</TravellerTitle>
<GivenName>Cassie</GivenName>
<Surname>Stump</Surname>
<AgeBand>ADULT</AgeBand>
<LeadTraveller>false</LeadTraveller>
</Traveller>
<TravellerMix>
<Adult>3</Adult>
<Child>0</Child>
<Youth>0</Youth>
<Infant>0</Infant>
<Senior>0</Senior>
<Total>3</Total>
</TravellerMix>
<SpecialRequirement>Special Requirement</SpecialRequirement>
<SupplierNote>Customer notes</SupplierNote>
<AdditionalRemarks>
<Remark>Additional remarks #1.</Remark>
<Remark>Additional remarks #2.</Remark>
</AdditionalRemarks>
<ContactDetail>
<ContactType>MOBILE</ContactType>
<ContactName>Shane Stump </ContactName>
<ContactValue>US+1 123-456-7890</ContactValue>
</ContactDetail>
<ContactEmail>MSG-8b17fa92-7b35-4fdb-9f18-f8a69252e019+BR-999999999@expmessaging.tripadvisor.com</ContactEmail>
<AvailabilityHoldReference></AvailabilityHoldReference>
</BookingRequest>
The stream is 2500 bytes.
How do I get it?
Thanks in advance,
Shane