Example
A sample repository file, called demo.rep, is supplied with the xmlconnector.jar.
Note
In case your configuration, does not contain the demo.rep, please
include it. Use the Central Configuration Console to add demo.rep to the "Domain Priority" property.
- Step I : Initializing Tables
This step is required to create the demo tables in the backend.
-
( i )
Select demo.rep, file from the Repository Files dropdown list. Choose b3Test, from the
BOI Name dropdown list and initializetest as the
Method Name. Browse to a folder where you would
like the results to be placed.
-
( ii )
Next select either XML Schema radio button or DTD
radio button, depending on whether you want the
metadata documents to be generated in XML Schema format or in
DTD format respectively.
Now click on the button Gen Metadata. Assuming you
have chosen XML Schema, the metadata for the Request,
Response and RequestStatus documents will be generated in XML
Schema format, in the [Destination Folder]\Metadata
folder.
To view the generated metadata documents, click on the
Edit/View... button.
-
( iii )
Switch to the Execute tab. You can edit the Request
Document, by clicking on the Edit/View Req button
to enter the Bus Component Name, pointing to your backend.
Assumption : You are not using the Activation functionality.
-
( iv )
Now click on the Execute Request button, to invoke an
execute call on XML Connector, for the Request Document, you
just edited. You can view the result of the call, i.e. the Response
and the Request Status documents, by clicking on the View Results button.
Note
If the you want to execute a Request document in a
different path than the one in the destination folder, then the
Response and the RequestStatus documents will be generated in
that folder, under a sub-directory Output. For example,
if the destination folder points to C:\Streets, but the
Request Document, which the you pick for execution is in the
folder C:\Residence, then the documents will be
generated in the folder C:\Residence\Output.
- Step II : Creating Records
This step will create two records in the backend, in the demo tables, "tmboa100" and "tmboa110".
-
( i )
Select demo.rep, file from the Repository Files
dropdown list. Choose b3Test, from the BOI Name
dropdown list and fillTabletmboa100_110
as the Method Name. Browse to a folder where
you would like the results to be placed. You may use the same
destination folder as in Step I.
-
( ii )
Same as (ii) of Step I.
-
( iii )
Same as (iii) of Step I. Edit the Request XML Document as shown in the figure.
-
( iv )
Same as (iv) of Step I.
- Step III : Retrieving Records
This step will retrieve records from the backend.
-
( i )
Select demo.rep, file from the Repository Files
dropdown list. Choose Streets, from the BOI Name
dropdown list and list as the Method Name.
Browse to a folder where you would
like the results to be placed. You may use the same destination
folder as in Step I.
-
( ii )
Same as (ii) of Step I.
-
( iii )
Same as (iii) of Step I. Edit the Request XML Document as shown in the figure.
-
( iv )
Same as (iv) of Step I.