Bookshelf Home | Contents | Index | PDF |
Transports and Interfaces: Siebel eBusiness Application Integration Volume III > EAI HTTP Transport > Examples Using HTTP RequestThis section provides you with a couple of examples of using the EAI HTTP Transport in two modes—Session and Sessionless. This is to help in understanding how to use the EAI HTTP Transport in your business. Controlling Login Sessions with Session ModeThe session mode allows control over login sessions. In this mode you log in first and open a session. Any message can be exchanged without having to log in again until you explicitly log off. The following example shows parameters for Login, Request, and Logoff in a session mode HTTP request. Session cookies are required in a case such as this. NOTE: You enter each of the following URLs as a continuous line of code.
In the preceding example, the ServerPath variable value of siebel1/eai is substituted for the token Any XML document represented by the entry for SWEExtData can be put into the body. This would change the sample code so that the HTTPRequestURLTemplate would read as:
Sending Requests in Sessionless ModeThe following example includes a Request Method, a Request, and a Login for a sessionless mode request. In this example, the request is simply passed to the secure server using the POST command. Unlike the Session Mode example, this request sends data in the body of the request. This request does not require cookies.
Accessing a URL Protected by Basic AuthenticationYou can use basic authentication with the EAI HTTP Transport to send messages. The format to use in the URL to be able to access a URL protected by basic authentication with HTTP Outbound is: http:// For example, NOTE: For outbound HTTP requests only server-side authentication is supported. |
Transports and Interfaces: Siebel eBusiness Application Integration Volume III |