I am new to SOAP. I am unable to convert this request into an array. This xml array should be in string type.
Xml request:
<OTA_HotelAvailRQ Version="1.0">
<POS>
<Source>
<UniqueId Id="20000704abcde:105ABCDE" />
</Source>
</POS>
<AvailRequestSegments>
<AvailRequestSegment>
<StayDateRange End="2011-08-15" Start="2011-08-14" />
<RoomStayCandidates>
<RoomStayCandidate Quantity="1">
<GuestCounts>
<GuestCount AgeQualifyingCode="10" Count="1" />
</GuestCounts>
</RoomStayCandidate>
</RoomStayCandidates>
<HotelSearchCriteria>
<Criterion>
<HotelRef Destination="East London, South Africa" CityCode="" CountryCode="" HotelName="" MinHotelRating="1"/>
<SearchCurrency>EUR</SearchCurrency>
<AdditionalInfo Value="1" />
<Language>EN</Language>
</Criterion>
</HotelSearchCriteria>
</AvailRequestSegment>
</AvailRequestSegments>
</OTA_HotelAvailRQ>
xml response:
<OTA_HotelAvailRS Version="1.0">
<Success Id="24064"/>
<Properties>
<Property HotelCityCode="4162" HotelCode="6001287" HotelName="Amaryllis">
<RelativePosition Direction="" Distance="0" DistanceUnitName=""/>
<RoomStays>
<RoomStay>
<RatePlans>
<RatePlan RatePlanCode="12201993"/>
</RatePlans>
<RoomRates>
<RoomRate>
<Rates>
<Rate EffectiveDate="2010-06-12" ExpireDate="2010-06-13">
<Base Amount="76.00" CurrencyCode="EUR"/>
<RateDescription Adults="1" Availability="A" Children="0" RoomNum="1">
<![CDATA[Single room]]>
</RateDescription>
</Rate>
</Rates>
</RoomRate>
</RoomRates>
<Meals Description="Buffet B'Fast (continental)"/>
<EssentialInfo>Here comes essential information</EssentialInfo>
</RoomStay>
</RoomStays>
<Promotions/>
<AdditionalInfo>
<HotelStarDetail rating="2"/>
<HotelImages>
<HotelImage Type="Bedroom" URL="https://www.miki.co.uk/live/hotel/mikiNet/image/v1.0/FR/4162/419/lr/room.jpg"/>
<HotelImage Type="Bedroom" URL="https://www.miki.co.uk/live/hotel/mikiNet/image/v1.0/FR/4162/419/lr/room1.jpg"/>
</HotelImages>
<HotelDescription>
<LongDescription>This 2 star hotel is located in the city centre of Nice. It is close
to the Beach. The Hotel has a restaurant.</LongDescription>
</HotelDescription>
</AdditionalInfo>
</Property>
</Properties>
</OTA_HotelAvailRS>