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.
- 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
- 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.
Related Content
Recent Discussions
- 15 years ago