5.17.2 Using the XMLBindFileService

Whether you are writing your client application in RDML / RDMLX or in a 3GL such as RPG, you must complete the same basic steps.

For example, an application that needs to READ an XML document would typically issue the following sequence of commands:

JSM(X)_OPENJSM(X)_COMMANDs

     SERVICE_LOAD

          READ

          BIND

          GET

          CLOSE

     SERVICE_UNLOAD

JSM(X)_CLOSE

Whereas, an application that needs to WRITE to an XML document would typically issue the following sequence of commands:

JSM(X)_OPENJSM(X)_COMMANDs

     SERVICE_LOAD

          BIND

          SET

          WRITE

          CLOSE

     SERVICE_UNLOAD

JSM(X)_CLOSE

Refer to the Java Service Manager Clients for the command details that apply to your chosen development language.