XML Travel Objects

The following objects are passed as arguments to or results from the Carapace XML to Videotex Translator when mapping a Tour Operator service. Click here to see the descriptions of the travel commands.

The invoke object contains the name of the command and the arguments. If an error occurs in processing, an error object is returned. Certain commands don't have relevant data to return -- in these cases the ok object is returned.

An alphabetical list of XML objects is as follows:

invoke

Used to supply a command request to the XML server.

Attributes

name mandatory description
commandyesname of the command

Content

At most one XML object.

ok

Returns a simple textual response to the client.

Attributes

none

Content

character data

error

Returns a simple textual response to the client.

Attributes

name mandatory description
classyesinteger class of the error
codeyesdifferentiates errors within the same class
filenoname of the file where the error originated
linenoline within the file where the error originated

Content

character data which describes the error

collection

A collection of a single type of XML objects.

Attributes

name mandatory description
typeyestype of the contained XML objects

Content

sequence of XML objects of the identified type

status

Holds the status of the Videotex session.

Attributes

name mandatory description
sessionyesstate of the session
serviceIdnoidentifier for the connected service
pagenoname of the current Videotex page
activitynoname of the activity within the service as chosen by the user

Content

empty

page

Describes a Videotex page -- may include the raw content of the page within the contained line objects.

Attributes

name mandatory description
nameyesname of the current Videotex page -- may be unknown
cursorRownointeger row where the cursor is currently positioned
cursorColumnnointeger column where the cursor is currently positioned
filenoname of file holding the page

Content

sequence of line objects

line

Holds the content of a line on the Videotex screen.

Attributes

name mandatory description
noyesline number on the screen -- line zero is the initial line

Content

character data holding the line of data

data

Holds data to send to the Videotex host.

Attributes

name mandatory description
typenodefines whether the data is to be sent raw -- i.e. exactly as supplied -- or is to have an end-of-field character appended before sending to the host

Values: raw, field

The default type is field.

Content

character data to send

markup

Holds marked-up data sent between client and server.

Attributes

name mandatory description
languageyesthe language of the data e.g. HTML
datayesthe data to send

Content

none

event

Defines an event for which the server must wait.

Attributes

name mandatory description
typeyesthe type of event required

Values: cursorOn, newPage

timeoutyesmaximum time to wait (in milliseconds)

Content

none

session

Holds information about the current Videotex session.

Attributes

name mandatory description
usernoname of the user for logging on
passwordnouser's logon password
referencenoreference supplied by the user at logon
promptsnorequest for prompts to be received from the Videotex service

Values: N, Y

serviceIdnothree letter identifier for the service to choose
serviceNamenodescriptive name for the service
serviceMapnomap for mapping the chosen service
serviceChoiceMapnomap for mapping the page which selects the service
pageTimeoutnotimeout to wait for a new page to be received
logonTimeoutnotimeout to wait for the system to validate a logon

Content

none

viewer

Defines the Videotex viewer to be attached to each Videotex session -- this is a debugging aid rather than for use in a production system.

Attributes

name mandatory description
browseryesprogId of the browser to be created using COM e.g. InternetExplorer.Application
urlyesURL of the web page to navigate to which holds the Videotex emulator
emulatoryesname of the emulator object within the web page
attachyesrequest to attach the browser to the current session
detachyesrequest to detach the browser from the current session

Content

none

communications

Definition of the communications stack for connection to a service.

Attributes

name mandatory description
modulesyescomma-separated list of communication module names for the stack e.g. Util,Telnet,Tcp

Content

sequence of attribute objects representing the attributes to push onto a communications stack

map

Defines a map for an individual Videotex service.

Attributes

name mandatory description
codeyesthree-letter code which identifies a Videotex service
nameyesname of the map to use for this service

Content

none

formData

Holds the values to be entered for fields on a Videotex form.

Attributes

name mandatory description
pagenoname of the current Videotex page
timeoutnotime to wait (milliseconds) for the subsequent page to be received from the Videotex host

Content

sequence of fieldData objects

fieldData

Value for a field on a Videotex form.

Attributes

name mandatory description
nameyesname of the field on the current page
valueyesvalue for the field

Content

none

service

Information about a Videotex service.

Attributes

name mandatory description
codeyesunique code identifying the service
namenoname of the service
descriptionnotextual description

Content

none

activity

An activity available on the Videotex service.

Attributes

name mandatory description
nameyesname of the activity
descriptionnotextual description

Content

none


Contents Current topic: videotex Related topics: Carapace Hub