AMADEUS API - XML-DOM - COM/NT  Function :
 CAI_sendAndReceiveXml


CAI_sendAndReceiveXml Method

This function is the main function of the XML API. It allows you to send a request to the Amadeus Reservation System and get back an answer. It takes as input an XML document and an XML Document is returned to it. The name of the document specifies the functionality you want to use (see user's guide for XML presentation and samples).
It is up to the user to free the memory allocated by this function.

C Syntax
   CaiErr CAI_sendAndReceiveXml(CAI_Conversation *conversation,	
          			CAI_XML_BUFFER   xmlQuery, 
          			CAI_XML_BUFFER   *xmlReply);

Parameters


Parameter In/Out Description
conversation In A pointer to the conversation.
xmlQuery In XML Document to send to the Amadeus system.
xmlReply Out XML Document returned by the Amadeus system. It could be null if an hardware error occured during the process.

Return Value

Please refer to the failure cases section for more information.