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 to send and receive messages

  1. Create a named subsystem HTTPsendreceive_conn for subsystem HTTPSubSys using the following lines:

    HTTPLoginMethod=GET

    HTTPLoginURLTemplate="http://websrvr.example.com:16007/myapplication/login.jsp?usr=V1&psw=v2"

    HTTPLogoffMethod=GET

    HTTPLogoffURLTemplate="http://websrvr.example.com:16007/myapplication/logoff.jsp"

    HTTPRequestMethod=POST

    HTTPRequestURLTemplate="http://websrvr.example.com:16007/myapplication/data.jsp"

  2. Create a named subsystem MyEchoSubsys for subsystem EAITransportDataHandlingSubsys using the following lines:

    DispatchService="Workflow Utilities"

    DispatchMethod=ECHO

  3. In your eai.cfg file, add the following line in the [HTTP Services] section:

    MyEcho = MyEchoSubsys

  4. In Siebel Tools, set up a new workflow as follows:

    NOTE:  For details on the Business Process Designer, see Siebel Business Process Framework: Workflow Guide.

  5. Create the following process properties:
    Name
    Data Type
    In/Out

    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

    Response

    Binary

    In/Out

  6. Retrieve the 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.
    Input Argument
    Type
    Value
    Property Name
    Property Data Type

    OutputIntObjectName

    Literal

    Sample Employee

    Not applicable

    Not applicable

    PrimaryRowId

    Process Property

    Not applicable

    Object Id

    String

    Property Name
    Type
    Output Argument

    Employee Message

    Output Argument

    SiebelMessage

  7. 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.
    Input Argument
    Type
    Property Name
    Property Data Type

    SiebelMessage

    Process Property

    Employee Message

    Hierarchy

    Property Name
    Type
    Output Argument

    Employee XML

    Output Argument

    <Value>

  8. 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.
    Input Argument
    Type
    Value
    Property Name
    Property Data Type

    <Value>

    Process Property

    Not applicable

    Employee XML

    String

    ConnectionSubsystem

    Literal

    HTTPsendreceive_conn

    Not applicable

    Not applicable

    Property Name
    Type
    Output Argument

    Response

    Output Argument

    <Value>

  9. Write the message to the file using the EAI File Transport with the Send method and the following input arguments.
    Input Argument
    Type
    Value
    Property Name
    Property Data Type

    <Value>

    Process Property

    Not applicable

    Response

    Binary

    FileName

    Literal

    C:\SendRec.txt

    Not applicable

    Not applicable

  10. Save your workflow and test it using the Workflow Simulator.
Transports and Interfaces: Siebel Enterprise Application Integration Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Legal Notices.