Step 2: Create the MAIN application
In your main application:
- Import the XML library. This is due to the support of WS-Addressing 1.0 with IMPORT XML.
- Import the generated .inc file with GLOBALS "ws_stub.inc"
- Manage the WS-Addressing 1.0 reference parameters representing the session state (if your client has to handle several instances of a same service).
For
example:
IMPORT XML # Import the XML library required for WS-Addressing 1.0
GLOBALS "ws_stub.inc" # Import service global definition
TYPE InstanceType DYNAMIC ARRAY OF xml.DomDocument
# End point WSA reference parameters
DEFINE instance1,instance2,instance3 InstanceType
# Store the different sessions the client will have to manage
MAIN
...
END MAIN