Transports and Interfaces: Siebel Enterprise Application Integration > EAI HTTP Transport >
Sending and Receiving Messages with the EAI HTTP Transport
You can use the EAI HTTP Transport to send and receive messages. The following procedure illustrates how you can use EAI HTTP Transport with the SendReceive method to query employee information from the Siebel Database, send it out, echo it using the Workflow Utilities ECHO service, and send it back to the workflow to write the response back to a file. To create a workflow process to send and receive messages
- Create a named subsystem HTTPsendreceive_conn for subsystem HTTPSubSys using the following lines:
HTTPLoginMethod=GET
HTTPLoginURLTemplate="http://smthpa12.siebel.com:16007/eai_enu/start.swe?SWEExtCmd=ExecuteLogin&SWEExtSource=MyEcho&UserName=SADMIN&Password=db2"
HTTPLogoffMethod=GET
HTTPLogoffURLTemplate="http://smthpa12.siebel.com:16007/eai_enu/start.swe?SWEExtCmd=Logoff"
HTTPRequestMethod=POST
HTTPRequestURLTemplate="http://smthpa12.siebel.com:16007/eai_enu/start.swe"
- Create a named subsystem MyEchoSubsys for subsystem EAITransportDataHandlingSubsys using the following lines:
DispatchService="Workflow Utilities"
DispatchMethod=ECHO
- In your eai.cfg file, add the following line in the [HTTP Services] section:
MyEcho = MyEchoSubsys
- Log in to the Siebel client as an administrator connected to the server.
- From the Site Map choose Administration - Business Process > Workflow Processes.
- Create a new workflow process as shown below.
- Select the Process Properties tab and add the following properties.
|
|
|
|
Employee Message |
Hierarchy |
In/Out |
- |
Employee XML |
Binary |
In/Out |
- |
Error Code |
String |
In/Out |
- |
Error Message |
String |
In/Out |
- |
Object Id |
String |
In/Out |
1-548 |
Response |
Binary |
In/Out |
- |
- Retrieve employee message using the EAI Siebel Adapter with the Query method to query the information from the database using the following input and output arguments.
|
|
|
|
|
Output Integration Object Name |
Literal |
Sample Employee |
- |
- |
Object Id |
Process Property |
- |
Object Id |
Sting |
|
|
|
|
Employee Message |
Output Argument |
- |
Siebel Message |
- Convert the message to XML using the EAI XML Converter with the Integration Object Hierarchy to XML Document method and the following input and output arguments to convert the message.
|
|
|
|
|
Siebel Message |
Process Property |
- |
Employee Message |
Hierarchy |
|
|
|
|
Employee XML |
Output Argument |
- |
XML Document |
- Send and receive the converted XML message using the EAI HTTP Transport with the Send and Receive Response method and the following input and output arguments.
|
|
|
|
|
Message Text |
Process Property |
- |
Employee XML |
String |
Connection Subsystem |
Literal |
HTTPsendreceive_conn |
- |
- |
|
|
|
|
Response |
Output Argument |
- |
Message Text |
- Write the message to the file using the EAI File Transport with the Send method and the following input arguments.
|
|
|
|
|
Message Text |
Process Property |
- |
Response |
Binary |
File Name |
Literal |
C:\SendRec.txt |
- |
- |
- Save your workflow process and test it using the Workflow Simulator.
|