ContributionsMost RecentMost LikesSolutionsRe: <Error Type="4">Could not locate RequestorID/@ID in MessageContext</Error> I am using siteconnect. I created new SOAP PROJECT with initial wsdl as https://cmtpi.siteminder.com/siteconnect/services/siteconnect_v1.1.0.wsdl And then there appears four services of which I am using HotelAvailReq, try running any of service it will return response for HotelResNotifRS. Link of webservice is : https://siteminder.atlassian.net/wiki/display/SITECONNECT/SOAP+Message+Structure Re: <Error Type="4">Could not locate RequestorID/@ID in MessageContext</Error> thanks for replying, just last question that I am sending request using OTA_HotelAvailRQ and getting response from OTA_HotelResNotifRS and that's why it is asking for REQUESTORID which is mandatory in OTA_HotelResNotifRS but not in OTA_HotelAvailRQ. Do you have any idea about this that why parameters of request and response are different. Thanks Re: <Error Type="4">Could not locate RequestorID/@ID in MessageContext</Error> I think RequestorId is optional but not not filling it is giving error and filling it is not authenticating correctly. Re: <Error Type="4">Could not locate RequestorID/@ID in MessageContext</Error> validating it is continusly giving error : Invalid element [{http://www.opentravel.org/OTA/2003/05}OTA_HotelAvailRS] And when I added below code under <OTA_HotelAvailRQ> <POS> <Source> <RequestorID Type="22" ID="agentId"/> </Source> </POS> After adding this line error : "Could not locate RequestorID/@ID in MessageContext" is gone but now it is giving "<Error Type="4">Cannot authenticate agentId</Error>" and "Invalid element [{http://www.opentravel.org/OTA/2003/05}OTA_HotelAvailRS]" on validating it, as I am not sure that what will be the value of "agentid" in ID attribute. Please let me know my mistake. Thanks Re: <Error Type="4">Could not locate RequestorID/@ID in MessageContext</Error> okay I got it after right clicking there is an option. It is giving error : line 24: Invalid element [{http://www.opentravel.org/OTA/2003/05}OTA_HotelAvailRS] in SOAP Body after validating it. Re: <Error Type="4">Could not locate RequestorID/@ID in MessageContext</Error> 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? <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. Re: <Error Type="4">Could not locate RequestorID/@ID in MessageContext</Error> okay thanks I have posted my question there. Re: <Error Type="4">Could not locate RequestorID/@ID in MessageContext</Error> should I ask my question on this link? (http://community.smartbear.com/t5/Open-Source-Tools/ct-p/OpenSource) <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. Solved