Forum Discussion

ravi1231's avatar
ravi1231
Occasional Contributor
10 years ago

<Error Type="4">Could not locate RequestorID/@ID in MessageContext</Error>

I am running my code on SoapUI 5.2.1 when I run my code on that I get below error:
<Error Type="4">Could not locate RequestorID/@ID in MessageContext</Error>
My xml code is :

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<wsse:UsernameToken>
<wsse:Username>admin</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">admin123</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<OTA_HotelAvailRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2005-08-01T09:30:47+02:00" EchoToken="fb57388d" AvailRatesOnly="true">
<AvailRequestSegments>
<AvailRequestSegment AvailReqType="Room">
<HotelSearchCriteria>
<Criterion>
<HotelRef HotelCode="hotel_code"/>
</Criterion>
</HotelSearchCriteria>
</AvailRequestSegment>
</AvailRequestSegments>
</OTA_HotelAvailRQ>
<OTA_HotelAvailRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2005-08-01T09:30:47+02:00" EchoToken="abc123">
<Success/>
<RoomStays>
<RoomStay>
<RoomTypes>
<RoomType RoomTypeCode="BP Deluxe One Bedroom Suite 104">
<RoomDescription Name="BP Deluxe One Bedroom Suite 104">
<Text>Our Deluxe One Bedroom Suite offers a bedroom with separate living room for more space and privacy. Room offers a full kitchen, refrigerator, microwave, cook-top range, coffee maker, toaster, utensils, pots and pans, and private bathroom.</Text>
</RoomDescription>
<AdditionalDetails>
<AdditionalDetail Code="DO_NOT_SEND_RATES"/>
<AdditionalDetail Code="DO_NOT_SEND_AVAILABILITY"/>
</AdditionalDetails>
</RoomType>
</RoomTypes>
</RoomStay>

<RoomStay>
<RoomTypes>
<RoomType RoomTypeCode="pb_deluxe_one_bedroom_suite 220">
<RoomDescription Name="PB Deluxe One Bedroom Suite 220">
<Text>Our most popular room for larger families, feature one separate sleeping area (bedroom) with a single bathroom adjoining a living room/kitchen area. The One Bedroom Suite is perfect for both families and couples that want to enjoy a relaxed vacation with all the amenities of home. All of our suites are located on the second floor.</Text>
</RoomDescription>
<AdditionalDetails>
<AdditionalDetail Code="DO_NOT_SEND_RATES"/>
<AdditionalDetail Code="DO_NOT_SEND_AVAILABILITY"/>
</AdditionalDetails>
</RoomType>
</RoomTypes>
</RoomStay>

<RoomStay>
<RoomTypes>
<RoomType RoomTypeCode="BV BayFront Balcony Suite 716">
<RoomDescription Name="BV BayFront Balcony Suite 716">
<Text>Our Bayfront with Balcony rooms offer a beautiful view of the Boca Ciega Bay. Enjoy the morning sunrise on your balcony while you have breakfast or a glass of wine in the afternoon and watch for dolphins and manatees from your room.
Rooms offer a full kitchen, full size refrigerator, microwave, cooktop range, coffee maker, toaster, utensil, pots, pans and private bathroom.</Text>
</RoomDescription>
<AdditionalDetails>
<AdditionalDetail Code="DO_NOT_SEND_RATES"/>
<AdditionalDetail Code="DO_NOT_SEND_AVAILABILITY"/>
</AdditionalDetails>
</RoomType>
</RoomTypes>
</RoomStay>

</RoomStays>
</OTA_HotelAvailRS>
</SOAP-ENV:Body>

</SOAP-ENV:Envelope>



What could be the reason for this?
Thanks in advance.

  • Yes.

     

    This forum is for TestComplete.

     

    The link I posted is the support forum for Soap UI.