Get One Enabled Protocol
This operation allows you to read the properties of an enabled protocol that belongs to a participant. The response is given as property key value pairs.
|
1.
|
Select the Project tab in TIBCO Business Studio. |
|
2.
|
Select project_name > INIT_REQ > read > op_getenabledprotocol. |
The process for GetOneEnabledProtocol
opens in the design window.
|
3.
|
Select the resource ReadFile. |
In the Activity Input window, the fileName
parameter shows which sample file is used for this operation: GETONEEnabledProtocolREQ.xml
listed in GlobalVariables/CMI/cmi.doc.path
.
|
5.
|
To edit the sample XML file, go to BC_HOME\protocols\cmi\examples\SampleDocs\ GETONEEnabledProtocolREQ.xml |
|
6.
|
Open the file with a text editor. |
GETONEEnabledProtocolREQ.xml
is as follows:
<?xml version="1.0" encoding="UTF-8" ?>
- <GETONEEnabledProtocolREQ xmlns="http://www.tibco.com/AX/BC/CMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.tibco.com/AX/BC/CMI ../../src/com/tibco/ax/cmi/resource/cmipayload.xsd">
<participantName>Partner1</participantName>
<protocol>EZComm</protocol>
</GETONEEnabledProtocolREQ>
|
7.
|
If needed, modify the sample file so that it contains the appropriate information about the Protocol and the Partner, such as substituting the EZComm protocol with X12. |
|
9.
|
In the opened TIBCO Business Studio project, click the dropdown icon next to the BWApplication icon. |
|
10.
|
In the Run Configurations dialog, expand BusinessWorks Application > BWApplication. |
The Select Processes to Load dialog appears.
|
11.
|
Select the process op_getenabledprotocol and click on Load and Start Current. |
|
12.
|
The process is be executed. |
|
—
|
If the operation is successful, the schema with values are posted to the ResponseFile , which has been created in the logs folder (path is provided for the global variable cmi.log.path ). |
|
—
|
If the operation is not successful, you can debug it in TIBCO Business Studio by checking the Output tab of the SendRequest activity in the process op_getenabledprotocol . |
Check the response file that has been created in the logs folder (path is provided for the global variable cmi.log.path)
. You can also use the Log Viewer in BusinessConnect Container Edition Admin Server to see the summary of this operation, including the causes of failure. To learn more about viewing audit logs, see Viewing Logs.