Progress
ADM 2 Reference


SmartB2BObject

The SmartB2BObject transforms data between XML and 4GL based on an agreed-upon XML schema mapped to local data representations. It performs this service on behalf of other SmartObjects, particularly the SmartBusinessObject and SmartDataObject.

A single instance transforms either inbound or outbound messages, but not both. Two instances of this object are required when transforming both inbound and outbound messages.

The class name of the object is B2B, and it inherits from classes MsgHandler and XML. All are user-defined classes.

The file %DLC%/src/adm2/b2b.p is the super procedure for the SmartB2BObject class. It contains logic that uses the XML mapping schema to read or store data in data objects. The syntax for loading that file is:

SYNTAX
RUN start-super-proc("adm2/b2b.p":U). 

Other files related to b2b.p are:

Class Files
Custom Files
Definition
b2b.cld
Super
b2bcustom.p
Method
b2b.i
Method
b2bcustom.i
Property
b2bprop.i
Property
b2bpropcustom.i
Prototype
b2bprto.i
Prototype
b2bprtocustom.i
Template
b2b.w
dynb2b.w
Exclude
b2bexclcustom.i
Instance
b2bdefscustom.i

MsgHandler Class

The MsgHandler class is represented by the super procedure msghandler.p. The syntax for loading that file is:

SYNTAX
RUN start-super-proc("adm2/msghandler.p":U). 

Other files related to msghandler.p are:

Class Files
Custom Files
Definition
msghandler.cld
Super
msghandlercustom.p
Method
msghandler.i
Method
msghandlercustom.i
Property
msghprop.i
Property
msghpropcustom.i
Prototype
msghprto.i
Prototype
msghprtocustom.i
Template
msghandler.w
Exclude
msghandlerexclcustom.i
Instance
msghandlerdefscustom.i

XML Class

Xml.p presents a simplified DOM API by encapsulating the 4GL DOM statements so that x-noderef handles never need to be exposed to b2b.p. The syntax for loading that file is:

SYNTAX
RUN start-super-proc("adm2/xml.p":U). 

Other files related to xml.p are:

Class Files
Custom Files
Definition
xml.cld
Super
xmlcustom.p
Method
xml.i
Method
xmlcustom.i
Property
xmlprop.i
Property
xmlpropcustom.i
Prototype
xmlprto.i
Prototype
xmlprtocustom.i
Template
xml.w
Exclude
xmlexclcustom.i
Instance
xmldefscustom.i


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095