Forum Discussion
- ravi123110 years agoOccasional 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?
- ravi123110 years agoOccasional Contributor
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.
- nmrao10 years agoChampion Level 3Good to know. Now correct your request, make sure the request is validated ok before submitting the request to server. You should be good then.
- ravi123110 years agoOccasional Contributor
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