Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is to test RON XML-API Request and Response

The data is configured against the sales-trinity software organisation the test URL -https://ron.respax.com.au:30443/section/xmlrpc/server-ron.php?config=train

Method - readToursAvailabilityRange
Output- XML Request and Response
Host - Sales - Trinity Software

 

Code Block
themeDJango
languagexml
titleexpand for readTourAvailabilityRange XML
collapsetrue
XML Request<?xml version="1.0" encoding="iso-8859-1"?> <methodCall> <methodName>readTourAvailabilityRange</methodName> <params>  <param>
  <value>
   <array>
    <data>
     <value>       <struct>
       <member>         <name>strHostID</name>
        <value>
         <string>SALES</string>         </value>        </member>        <member>
        <name>strTourCode</name>
        <value>
         <string>RONSAMPLE</string>
        </value>
       </member>
       <member>
        <name>intBasisID</name>
        <value>          <string/>
        <string>110</string> </value>        </member>
       <member>
        <name>intSubBasisID</name>         <value>
         <string/>
        </value>
      <value> <string>161</string> </value> </member>
       <member>
        <name>dteTourDate</name>
        <value>          <string>05-Aug<string>10-Dec-2015</string>
        </value>
       </member>
       <member>
        <name>intTourTimeID</name>
        <value>          <string/>
        <string>112</string> </value>
       </member>
      </struct>      </value>
     <value>
      <struct>
       <member>
        <name>strHostID</name>
        <value>
         <string>SALES</string>
        </value>
       </member>
       <member>
        <name>strTourCode</name>
        <value>
         <string>RONSAMPLE</string>         </value>
       </member>
       <member>
        <name>intBasisID</name>
        <value>          <string/>
        <string>110</string> </value>
       </member>
       <member>
        <name>intSubBasisID</name>
        <value>          <string/>
       <string>161</string> </value>
       </member>        <member>         <name>dteTourDate</name>
        <value>          <string>06-Aug<string>11-Dec-2015</string>
        </value>
       </member>
       <member>
        <name>intTourTimeID</name>
        <value>          <string/>
        <string>112</string> </value>        </member>
      </struct>
     </value>
    </data>
   </array>
  </value>  </param>
 <param>
  <value>    <boolean>0</boolean>   </value>
 </param> </params> </methodCall> 
XML Response<?xml version="1.0" encoding="iso-8859-1"?> <methodResponse> <params>
 <param>
  <value>
   <array>
    <data>
     <value>
      <struct>
       <member>
        <name>strHostID</name>
        <value>
         <string>SALES</string>
        </value>
       </member>
       <member>
        <name>strTourCode</name>
        <value>
         <string>RONSAMPLE</string>
        </value>
       </member>        <member>
        <name>intBasisID</name>
        <value>          <int>0<<int>110</int>
        </value>
       </member>
       <member>
        <name>intSubBasisID</name>
        <value>          <int>0<<int>161</int>
        </value>        </member>
       <member>
        <name>dteTourDate</name>
        <value>          <string>05-Aug<string>10-Dec-2015</string>
        </value>
       </member>
       <member>
        <name>intTourTimeID</name>
        <value>          <int>0<<int>112</int>         </value>
       </member>
       <member>
        <name>intAvailability</name>         <value>
         <int>-1</int>
        <value> <int>10</int> </value>        </member>
       <member>
        <name>boolTrip</name>
        <value>          <boolean>0</boolean>
       <boolean>1</boolean> </value>
       </member>
       <member>
        <name>boolThreshold</name>
        <value>          <boolean>0</boolean>
        </value>
       </member>
       <member>
        <name>faultCode</name>
        <value>
         <int>699</int>
        </value>
       </member>
       <member>
        <name>faultString</name>
        <value>
         <string>ERROR (server-ron) : ERROR (xmlOperator) : No time ID provided.</string>
        </value>
       </member>
      </struct>
     </value>
     <value>
      <struct>
       <member>
        <name>strHostID</name>
        <value>
         <string>SALES</string>
        </value>
       </member>
       <member>
        <name>strTourCode</name>
        <value>
         <string>RONSAMPLE</string>
        </value>
       </member>
       <member>
        <name>intBasisID</name>
        <value>
         <int>0</int>
        </value>
       </member>
       <member>
        <name>intSubBasisID</name>
        <value>
         <int>0</int>
        </value>
       </member>
       <member>
        <name>dteTourDate</name>
        <value>
         <string>06-Aug-2015</string>
        </value>
       </member>
       <member>
        <name>intTourTimeID</name>
        <value>
         <int>0</int>
        </value>
       </member>
       <member>
        <name>intAvailability</name>
        <value>
         <int>-1</int>
        </value>
       </member>
       <member>
        <name>boolTrip</name>
        <value>
         <boolean>0</boolean>
        </value>
       </member>
       <member>
        <name>boolThreshold</name>
        <value>
         <boolean>0</boolean>
        </value>
       </member>
       <member>
        <name>faultCode</name>
        <value>
         <int>699</int>
        </value>
       </member>
       <member>
        <name>faultString</name>
        <value>
         <string>ERROR (server-ron) : ERROR (xmlOperator) : No time ID provided.</string>
        </value>
       </member>
      </struct>
     </value>
    </data>
   </array>
  </value>
<boolean>1</boolean> </value> </member> </struct> </value> <value> <struct> <member> <name>strHostID</name> <value> <string>SALES</string> </value> </member> <member> <name>strTourCode</name> <value> <string>RONSAMPLE</string> </value> </member> <member> <name>intBasisID</name> <value> <int>110</int> </value> </member> <member> <name>intSubBasisID</name> <value> <int>161</int> </value> </member> <member> <name>dteTourDate</name> <value> <string>11-Dec-2015</string> </value> </member> <member> <name>intTourTimeID</name> <value> <int>112</int> </value> </member> <member> <name>intAvailability</name> <value> <int>10</int> </value> </member> <member> <name>boolTrip</name> <value> <boolean>1</boolean> </value> </member> <member> <name>boolThreshold</name> <value> <boolean>1</boolean> </value> </member> </struct> </value> </data> </array> </value> </param> </params> </methodResponse>