Release 10.1A: OpenEdge Development:
ADM 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 `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. Table 1–6 lists the class and custom files related to `b2b.p`.

> Table 1–6: Class and custom files for SmartB2BObjects
> Class files | Customer 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`. Table 1–7 lists the class and custom files related to `msghandler.p`.

> Table 1–7: Class and custom files for MsgHandler
> Class files | Customer 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

> The `Xml.p` file presents a simplified DOM API by encapsulating the 4GL DOM statements so that x-noderef handles never need to be exposed to `b2b.p`. Table 1–8 lists the class and custom files related to `xml.p`.

> Table 1–8: Class and custom files for XML
> Class files | Customer 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 © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095