Transports and Interfaces: Siebel Enterprise Application Integration > EAI HTTP Transport >
Process of Using the EAI HTTP Transport for Inbound Messages
To use the EAI HTTP Transport for inbound messages, you complete two tasks:
- Setting Up the Business Service
- Creating the Workflow to Receive Messages
Both tasks are explained in this topic. This scenario assumes incoming XML. Your business requirements dictate whether and how you adapt these steps to fit your needs. Setting Up the Business Service
First you set up the business service for use in the workflow. To set up the business service
- Start Siebel Tools, connecting to the server.
- Find the business service named Workflow Process Manager.
- Copy this record and rename the copy EAITEST.
- In the Business Service User Props list, add a new record:
- Enter ProcessName in the Name column.
- Enter EAITEST in the Value column, as shown in the following illustration.
- Compile a new .srf file and copy it to the
SIEBEL_ROOT \Objects\lang_code directory.
NOTE: You can also deploy the business service to the run-time database to make it available. For more information, see Integration Platform Technologies: Siebel Enterprise Application Integration.
- Restart the Siebel Server.
- Verify that the EAI Object Manager has started.
Creating the Workflow to Receive Messages
After you set up the business service, you create a workflow to receive messages. To create the new workflow to receive messages
- In Siebel Tools, set up a new workflow as shown below and give it a unique name, such as EAITEST.
For information on the Business Process Designer, see Siebel Business Process Framework: Workflow Guide.
- Create the following process properties:
|
|
|
|
|
IncomingXML |
Binary |
<Value> |
In/Out |
By creating the IncomingXML process property, anything that is sent as data will be placed in this variable. This allows you to then perform a given action on that data. If the POST method was used, the data sent in the Body will be stored in this property. If the GET method was used, the data sent in the URL will be stored in this property. |
Account Message |
Hierarchy |
Not applicable |
In/Out |
This is hierarchy format of the incoming XML. |
<Value> |
Binary |
Not applicable |
In/Out |
Used to get the XML string that has been read or converted. |
Content-Type |
String |
text/html |
Out |
It indicates the content type of the response body. If you want to see the response in the same Web page then you must set the Default String parameter to text/html. |
- Set up the Incoming XML step to use the EAI XML Converter with the XMLDocToIntObjHier method. This step converts the message, using the following input and output arguments:
|
|
|
|
<Value> |
Process Property |
IncomingXML |
Hierarchy |
|
|
|
Account Message |
Output Argument |
SiebelMessage |
- Set up the UpdateSiebel step to use the EAI Siebel Adapter with the Insert or the Update method and the following input and output arguments to update the Siebel Database.
|
|
|
|
SiebelMessage |
Process Property |
Account Message |
Hierarchy |
|
|
|
|
<Value> |
Literal |
<h1>Update Completed</h1> |
Not applicable |
NOTE: The HTTP response for inbound requests is determined by looking at the <Value> portion of the output property set. HTTP response headers can be set by setting properties on the output property set. If the process properties are set as In/Out (the default), the values will appear as HTTP headers on the HTTP response from the Siebel Server. Set each process property that you do not want as an HTTP header to In or None (the latter if the process property is only for use inside the workflow).
- Save your workflow and test it using the Workflow Simulator.
For information on the Workflow Simulator, see Siebel Business Process Framework: Workflow Guide.
|