Forum Discussion

ravi1231's avatar
ravi1231
Occasional Contributor
9 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>

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

 

 

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

13 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Did you try validating the request? Do you think RequestorID should be part of the request?
    • ravi1231's avatar
      ravi1231
      Occasional Contributor

      I don't know that how to validate the request. I am beginer to this. Please let me know that how can I validate this request?

      • nmrao's avatar
        nmrao
        Champion Level 3
        Good to know. Now correct your request, make sure the request is validated ok before submitting the request to server. You should be good then.