IRIS Integration testing helper. Send complex deep objects as XML from Production Services
When resending messages for Testing for HL7 virtual documents there is ability to "Edit and Resend"
For resending messages that are persistent objects with XML serialization capability it is possible to edit the "top level" object.
This tool hopes to add to this by helping send / "Edit and Resend" objects with a deeper object graph.
- IPM (ZPM): install alwo-SendComplexMessageFromService
- Studio users: Import file /src/SendComplexMessageFromService.xml
- Visual Studio Code: /udl/alwo/integ/SendComplexMessageFromService.CLS
If the SMP production view is accessed via:
http://localhost:52773/csp/healthshare/thenamespace/EnsPortal.ProductionConfig.zen
Then this tool can be accessed from:
http://localhost:52773/csp/healthshare/thenamespace/alwo.integ.SendComplexMessageFromService.cls
Could bookmark in browser for each production namespace.
The web page will show the current production name and status. Unless production is already running the utility will be disabled.
Start by adding:
- Service to send message from
- Target to recieve message
- Classname of message (Only classes that are both Persistent and extend XML adapter are listed)
- Paste existing XML message representation into textarea
- Press "Submit Query" button
- Specify the numeric ID / ROWID of an existing message record. Hint as seen in property MessageBodyId in MessageHeader
- Press "Submit Query" button
- Optionally adjust the XML content
- Press "Submit Query" button
Use the "Message sent in session" link to open message trace
Make sure you have git and Docker desktop installed.
Clone/git pull the repo into any local directory
$ git clone https://github.com/rcemper/PR_SendComplexMessageFromService.git
Open the terminal in this directory and run:
$ docker-compose build
Run IRIS container with your project:
$ docker-compose up -d
Test from docker console
$ docker-compose exec iris1 iris session iris
USER>
or using WebTerminal
http://localhost:42773/terminal/