Interfacing PB With The Web 1 2 PDF
Interfacing PB With The Web 1 2 PDF
PART 1 OF 2
J
P Morgan in London recently used PowerBuilder to es all had computer systems but little information was communicated
electronically. The same deal might be entered into three different sys-
implement an XML interface between a Web-based
tems before it was settled.
bond trading system and one of their back-office sys- The major players in the European bond market ( JP Morgan,
tems. This is the first of two articles that describe how Deutsche Bank, and Citibank) invited a British software house called
this system was developed. Capital Net to develop a system to automate the market. The result was
a Web-based B2B bond trading system called IssueLink that links deal-
ers, banks, and clearing systems.
Participants can access IssueLink via a browser or by developing an
Some Background XML interface to their own systems. JP Morgan decided to pursue the
Trading bonds in Europe was a very old-fashioned process involving XML option. The core component in the interface is an NT Service writ-
many manual processes and disparate systems. When a dealer wanted to ten in PowerBuilder. The service runs 24/7, listening for messages from
purchase a bond they would contact a bank, such as JP Morgan, by tele- IssueLink and parsing them when they arrive. Depending on the type of
phone or fax. The details of the trade would be written down and then message, different actions are performed, such as validating the trade,
entered into a back-office system. The dealers, banks, and clearinghous- updating a back-office system, or notifying a participant. Some incom-
<?xml version="1.0"?>
<presentation code="ID352">
<!--Example XML file-->
<title>A PB / XML Messaging System</title>
<presenter>Paul Donohue</presenter>
<audience>PowerBuilder Developers</audience>
<time>13:30</time>
<date>2001-08-13</date>
</presentation>
This example shows the three parts of an XML document that I’ll dis-
cuss in this article.
1. Elements are the core of an XML document: They consist of a start and
an end tag with the data between these tags. Elements may also have
child elements or attributes. In the example, presentation, title, and
time are among the elements.
2. Attributes are also name/value pairs: However, the name and data are
separated by an equal sign. They belong to an element but are not ele-
ments on their own, rather they add some sort of qualification to the
element they belong to. All attributes are strings and enclosed in single
WRITTEN BY PAUL DONOHUE or double quotes. In the example there’s only one attribute, code.
3. Comments are used to annotate XML documents: They begin with
“<!--” and end with “-->”. The example has one comment – “Example
XML file.”
the Code!
oleobject lole_attribute_node // An attribute for this node NEXT
oleobject lole_child_node_list // The child nodes for this
load
Down
node END IF
oleobject lole_child_node // The current child node
long ll_max_attribute_nodes // The number of attribute
nodes
long ll_max_child_nodes // The number of child nodes
long ll_attribute_idx // A counter The code listing for this article can also be located at
long ll_child_idx // A counter
string ls_label // The label for the treeview www.PowerBuilderJournal .com