Call request message examples
Examples of the messages that you can put on the agent command queue to request that the agent creates a managed call or creates a transfer that calls programs.
Managed call request example
<?xml version="1.0" encoding="UTF-8"?>
<request xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
version="1.00"
xsi:noNamespaceSchemaLocation="FileTransfer.xsd">
<managedCall>
<originator>
<hostName>example.com.</hostName>
<userID>mqm</userID>
</originator>
<agent agent="DNWE" QMgr="QM1"/>
<transferSet>
<call>
<command name="echo" successRC=0
>
<argument>call</argument>
<argument>test</argument>
</command>
</call>
</transferSet>
<job>
<name>managedCallCalls.xml</name>
</job>
</managedCall>
</request>
Managed transfer request example with calls
<?xml version="1.0" encoding="UTF-8"?>
<request xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
version="1.00"
xsi:noNamespaceSchemaLocation="FileTransfer.xsd">
<managedTransfer>
<originator>
<hostName>example.com.</hostName>
<userID>mqm</userID>
</originator>
<sourceAgent agent="DNWE" QMgr="QM1"/>
<destinationAgent agent="DNWE" QMgr="QM1"/>
<transferSet>
<preSourceCall>
<command name="echo" successRC=0
>
<argument>preSourceCall</argument>
<argument>test</argument>
</command>
</preSourceCall>
<postSourceCall>
<command name="echo" successRC=0
>
<argument>postSourceCall</argument>
<argument>test</argument>
</command>
</postSourceCall>
<preDestinationCall>
<command name="echo" successRC=0
>
<argument>preDestinationCall</argument>
<argument>test</argument>
</command>
</preDestinationCall>
<postDestinationCall>
<command name="echo" successRC=0
>
<argument>postDestinationCall</argument>
<argument>test</argument>
</command>
</postDestinationCall>
</transferSet>
<job>
<name>managedTransferCalls.xml</name>
</job>
</managedTransfer>
</request>