Forum Discussion
nmrao
10 years agoCommunity Hero
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.
ravi1231
10 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 agoCommunity HeroAre 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. - nmrao10 years agoCommunity HeroIf 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.