Versions Compared

Key

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

...

Code Block
languagexml
<SOAP-ENV:Envelope
	xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    	<SOAP-ENV:Header/>
    	<SOAP-ENV:Body>
        		<SOAP-ENV:Fault>
            			<faultcode>SOAP-ENV:Server</faultcode>
            			<faultstring xml:lang="en">Unable to process message. Payload too large</faultstring>
        		</SOAP-ENV:Fault>
    	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

...

For the above example, we would expect this:

Code Block
languagexml
<​AvailStatusMessages​<AvailStatusMessages ​HotelCode​HotelCode="TESTHOTEL"​>>
	<​AvailStatusMessage<AvailStatusMessage ​BookingLimit​BookingLimit="4"​>>
		<​StatusApplicationControl​<StatusApplicationControl ​Start​Start="2022-11-08" ​End​End="2022-11-08"​​ InvTypeCode​InvTypeCode="DBL" RatePlanCode="BAR"/>
	</​AvailStatusMessage​>AvailStatusMessage>
</​AvailStatusMessages​>AvailStatusMessages>

But not this:

Code Block
languagexml
<​AvailStatusMessages​<AvailStatusMessages ​HotelCode​HotelCode="TESTHOTEL"​>>

	<​AvailStatusMessage​<AvailStatusMessage ​BookingLimit​BookingLimit="4"​>>
		<​StatusApplicationControl​<StatusApplicationControl ​Start​Start="2022-11-08" ​End​End="2022-11-08" ​InvTypeCode​InvTypeCode="DBL" RatePlanCode="BAR"/>
        		<LengthsOfStay>
          			<LengthOfStay MinMaxMessageType="SetMinLOS" Time="1"/>
          	  			<LengthOfStay MinMaxMessageType="SetMaxLOS" Time="999"/>
        		</LengthsOfStay>
		​<RestrictionStatus<RestrictionStatus Status="Open"/>
	</​AvailStatusMessage​>AvailStatusMessage>
</​AvailStatusMessages​>AvailStatusMessages>

Bundling updates

The ideal way for ARI messages to be constructed would be for them to contain a single room and rate code and that the message contains all dates that have changed for that room rate combination. Avoid sending small single date updates where possible. If the changes you need to send for a room/rate have consecutive dates and the Availability is the same for those dates, then this update should be bundled by using the Start and End dates.

...

Code Block
languagexml
<RateAmountMessages HotelCode="TESTHOTEL">
  	<RateAmountMessage>
      		<StatusApplicationControl InvTypeCode="DBL" RatePlanCode="BAR"/>
      </StatusApplicationControl>
      <Rates>
        		<Rates>
			<Rate CurrencyCode="USD" Start="2021-02-15" End="2022-02-14" Mon="1" Tue="1" Weds="1" Thur="1" Fri="0" Sat="0" Sun="1">
          <BaseByGuestAmts>
            				<BaseByGuestAmts>
					<BaseByGuestAmt AmountBeforeTax="245.00">
            </BaseByGuestAmt>
          ></BaseByGuestAmt>
				</BaseByGuestAmts>
        			</Rate>
      		</Rates>
  	</RateAmountMessage>
</RateAmountMessages>

...

Code Block
languagexml
<RateAmountMessages HotelCode="TESTHOTEL">
    	<RateAmountMessage>
      		<StatusApplicationControl InvTypeCode="DBL" RatePlanCode="BAR"/>
      </StatusApplicationControl>
      <Rates>
        		<Rates>
			<Rate CurrencyCode="USD" Start="2021-02-15" End="2022-02-14" Mon="0" Tue="0" Weds="0" Thur="0" Fri="1" Sat="1" Sun="0">
          <BaseByGuestAmts>
            				<BaseByGuestAmts>
					<BaseByGuestAmt AmountBeforeTax="265.00">
            </BaseByGuestAmt>
          ></BaseByGuestAmt>
				</BaseByGuestAmts>
        			</Rate>
      		</Rates>
    	</RateAmountMessage>
</RateAmountMessages>

...

Code Block
languagexml
<RateAmountMessages HotelCode="TESTHOTEL">
    	<RateAmountMessage>
      		<StatusApplicationControl InvTypeCode="DBL" RatePlanCode="BAR"/>
      </StatusApplicationControl>
      <Rates>
        		<Rates>
			<Rate CurrencyCode="USD" Start="2021-02-15" End="2022-02-14" Mon="0" Tue="0" Weds="0" Thur="0" Fri="1" Sat="1" Sun="0">
          <BaseByGuestAmts>
            				<BaseByGuestAmts>
					<BaseByGuestAmt AmountBeforeTax="265.00">
            </BaseByGuestAmt>
          ></BaseByGuestAmt>
				</BaseByGuestAmts>
        			</Rate>
      		</Rates>
    	</RateAmountMessage>
    	<RateAmountMessage>
      		<StatusApplicationControl InvTypeCode="DBL" RatePlanCode="BAR"/>
      </StatusApplicationControl>
      <Rates>
        		<Rates>
			<Rate CurrencyCode="USD" Start="2021-02-15" End="2022-02-14" Mon="1" Tue="1" Weds="1" Thur="1" Fri="0" Sat="0" Sun="1">
          <BaseByGuestAmts>
            				<BaseByGuestAmts>
					<BaseByGuestAmt AmountBeforeTax="245.00">
            </BaseByGuestAmt>
          ></BaseByGuestAmt>
				</BaseByGuestAmts>
        			</Rate>
      		</Rates>
    	</RateAmountMessage>
</RateAmountMessages>

...

Code Block
languagexml
<RateAmountMessages HotelCode="TESTHOTEL">
	<RateAmountMessage>
		<StatusApplicationControl InvTypeCode="DBL" RatePlanCode="BAR"/>
		</StatusApplicationControl>
		<Rates>
			<Rate Start="2023-07-07" End="2023-07-11">
				<BaseByGuestAmts>
					<BaseByGuestAmt AmountAfterTax="299.00"/>
				</BaseByGuestAmts>
			</Rate>
		</Rates>
	</RateAmountMessage>
	<RateAmountMessage>
		<StatusApplicationControl InvTypeCode="DBL" RatePlanCode="BAR">
		<></StatusApplicationControl>
		<Rates>
			<Rate Start="2023-07-01" End="2023-07-06">
				<BaseByGuestAmts>
					<BaseByGuestAmt AmountAfterTax="299.00"/>
				</BaseByGuestAmts>
			</Rate>
		</Rates>
	</RateAmountMessage>
</RateAmountMessages>

...

Code Block
languagexml
<RateAmountMessages HotelCode="TESTHOTEL">
		<RateAmountMessage>
			<StatusApplicationControl InvTypeCode="DBL" RatePlanCode="BAR"/>
			</StatusApplicationControl>
			<Rates>
				<Rate Start="2023-07-01" End="2023-07-11">
					<BaseByGuestAmts>
						<BaseByGuestAmt AmountAfterTax="299.00"/>
					</BaseByGuestAmts>
				</Rate>
			</Rates>
		</RateAmountMessage>
</RateAmountMessages>

...