Response message

The following sections describe in detail the message structure returned from the HCD XML Update Interface.

The payload for transactions returned by ENTERPRISE CONNECTIVITY will follow the schema defined for the OTA_HotelDescriptiveContentNotifRS message.

Element

Level

Attribute

R

O

C

Example

Usage

Description

OTA_HotelDescriptiveCo ntentnotifRS

0

R

Version

R

4.000

Version 4.000 should always be used.

Required for

OTA_HotelDescriptiveCo ntentnotifRS element.

PrimaryLangID

R

EN

Refer to the Appendix B for valid codes

Mimic the ID found in the inbound XML message.

Success

1

C

Either a Success or a Success with Warnings can be present in the response.

If a Success Element is present, the property message was successfully submitted into HCD.

Warnings

1

C

Warning

2

C

Will be present if an Warnings element is present

Type

R

3

Refer to the Appendix for valid codes

Due to limited warning types, this code can be a

ENTERPRISE CONNECTIVITY generated code.

ShortText

R

Invalid Property would result from update.

64 Char

A short description of the error

Required for Warning element.

Code

O

3

Refer to the Appendix for valid codes

Due to limited warning types, this code can be a

ENTERPRISE CONNECTIVITY generated code.

Errors

1

C

Either a Success or an Errors element will be present in the response

Error

2

C

Will be present if an Errors element is present

Type

R

3

Refer to the Appendix for valid codes

Due to limited warning types, this code can be a

ENTERPRISE CONNECTIVITY generated code.

ShortText

R

Invalid Property would result from update.

64 Char

A short description of the error

Required for Error element.

Code

O

3

Refer to the Appendix for valid codes

Due to limited error types, this code can be a

ENTERPRISE CONNECTIVITY generated code.

UniqueID

1

R

ID

R

RecordID00 1

32 Char

Mimic the MessageID within the inbound XML message. The ID will be appended with a sequence number.

Type

R

1

Always displays as 1.

Unique ID Type (UIT)

Required for UniqueID element.

Schema design view

Example transaction

The following is a standard Success response.

<env:Envelope xmlns:env="
http://schemas.xmlsoap.org/soap/envelope/
"
env:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/
" xmlns:enc="
http://schemas.xmlsoap.org/soap/encoding/
" xmlns:ns0="
http://webservices.pegs.com/HCD/update_interface/HotelDescriptiveContentWS/types/HotelDescriptiveContentW
 S" xmlns:xsd="
http://www.w3.org/2001/XMLSchema
"  xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance
"> <env:Body>
<ans1:processResponse
xmlns:ans1="
http://webservices.pegs.com/HCD/update_interface/HotelDescriptiveContentWS/HotelDescriptiveContentWS
">
<result xsi:type="xsd:string"><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OTA_HotelDescriptiveContentNotifRS PrimaryLangID="en" Version="4.000" xmlns="
http://www.opentravel.org/OTA/2003/05
">
<Success/>
<UniqueID ID="BORWIG00001" Type="1"/>
</OTA_HotelDescriptiveContentNotifRS>
</result>
</ans1:processResponse>
</env:Body>
</env:Envelope>

The following is a standard Error response.

<env:Envelope xmlns:env="
http://schemas.xmlsoap.org/soap/envelope/
"
env:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/
" xmlns:enc="
http://schemas.xmlsoap.org/soap/encoding/
" xmlns:ns0="
http://webservices.pegs.com/HCD/update_interface/HotelDescriptiveContentWS/types/HotelDescriptiveConte
 ntWS" xmlns:xsd="
http://www.w3.org/2001/XMLSchema
" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-
 instance"><env:Body><ans1:processResponse xmlns:ans1="
http://webservices.pegs.com/HCD/update_interface/HotelDescriptiveContentWS/HotelDescriptiveContentWS
"
><result xsi:type="xsd:string"><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OTA_HotelDescriptiveContentNotifRS PrimaryLangID="en" Version="4.000" xmlns="
http://www.opentravel.org/OTA/2003/05
">
<Errors>
<Error Code="XML002" ShortText="XML parsing error" Type="7">ERROR:Line=1:cvc-pattern-valid: Value
'4000000' is not facet-valid with respect to pattern '[0-9A-Z]{1,3}(\.[A-Z]{3}(\.X){0,1}){0,1}' for type
'OTA_CodeType'.</Error>
<Error Code="XML002" ShortText="XML parsing error" Type="7">ERROR:Line=1:cvc-attribute.3: The value '4000000' of attribute 'Code' on element 'LocationCategory' is not valid with respect to its type, 'OTA_CodeType'.</Error>
</Errors>
<UniqueID ID="BORWIG00001" Type="1"/>
</OTA_HotelDescriptiveContentNotifRS></result></ans1:processResponse></env:Body></env:Envelope>

Last updated