send xml from pro-iv to a web service
#1
Posted 20 May 2009 - 08:40 PM
Running pro-iv ver 5.5 with SQL server
#2
Posted 21 May 2009 - 07:39 AM
One way would be for the external app to issue a bus&task call (p4gateway) to run an xml report - that can output along the bus. But you might want to read the p4 documentation on the subject as you may be able to use p4 web services.Anyone know how to send xml from pro-iv to a web service running in a third party application on the client machine. I am working on some pro-iv functions that need to interact with an e-proscription software via the web service.
Running pro-iv ver 5.5 with SQL server
of the poster and do not represent those of any organisation.
#3
Posted 21 May 2009 - 01:42 PM
One way would be for the external app to issue a bus&task call (p4gateway) to run an xml report - that can output along the bus. But you might want to read the p4 documentation on the subject as you may be able to use p4 web services.Anyone know how to send xml from pro-iv to a web service running in a third party application on the client machine. I am working on some pro-iv functions that need to interact with an e-proscription software via the web service.
Running pro-iv ver 5.5 with SQL server
The communication would be initiated from the pro-iv side. For example to start the e-proscription sofware, set the current user, and select a specific patient in the e-prosciption software when I press a button in my pro-iv function to proscribe medication.
To select the current patient the following xml needs to be presented to the webservice:
<Request>
<RequestId>ABC123</RequestId>
<PatientId>12</PatientId>
</Request>
#5
Posted 22 May 2009 - 01:52 PM
One way would be for the external app to issue a bus&task call (p4gateway) to run an xml report - that can output along the bus. But you might want to read the p4 documentation on the subject as you may be able to use p4 web services.Anyone know how to send xml from pro-iv to a web service running in a third party application on the client machine. I am working on some pro-iv functions that need to interact with an e-proscription software via the web service.
Running pro-iv ver 5.5 with SQL server
The communication would be initiated from the pro-iv side. For example to start the e-proscription sofware, set the current user, and select a specific patient in the e-prosciption software when I press a button in my pro-iv function to proscribe medication.
To select the current patient the following xml needs to be presented to the webservice:
<Request>
<RequestId>ABC123</RequestId>
<PatientId>12</PatientId>
</Request>
OK - if the app is running on the same client as the p4 client then you simply run the xml report, then transfer it to the PC, and then start the client app with the name of the file on the command line (probably) something like :-
#X = CLIENT.GETPATH('%TEMP%',$PATH)
#X = CLIENT.SEND("your_server_path_and_file","your_client_path_and_filename")
#X = CLIENT.EXECUTE("your_app_name " + "your_client_path_and_filename")
Depending on registered file types in your client you may or may not need to specify the app to open the file you transferred to the client but given that it's likely .xml you probably need to have the name of the executable.
Read the manuals for full details of these commands.
HTH,
of the poster and do not represent those of any organisation.
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users