Forum Discussion
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.
- 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
- nmrao10 years agoChampion Level 3Are you using any sort of wsdl?
I believe, you need to create a new request with all the mandatory elements. Fill the data and then validate which should work. Or you can connect with the wsdl/service provider for more details regarding the correct request.- ravi123110 years agoOccasional Contributor
I think RequestorId is optional but not not filling it is giving error and filling it is not authenticating correctly.
- nmrao10 years agoChampion Level 3If you see the error message - "Cannot authenticate agentId", that means it is clearly saying the type of error. Hope you have all the details to call these services.
And thank your for the details.