beautypg.com

1 project overview, Project overview – Sun Microsystems 5.1.1 User Manual

Page 97

background image

Chapter 7

Section 7.3

Implementing the HTTPS eWay JCD Sample Projects

Building and Deploying the prjHTTPClient_JCD Sample Project

HTTPS eWay Adapter User’s Guide

97

Sun Microsystems, Inc.

ƒ

Creating an Environment

on page 103

ƒ

Configuring the eWays

on page 103

ƒ

Creating and Activating the Deployment Profile

on page 104

ƒ

Creating and Starting the Domain

on page 104

ƒ

Building and Deploying the Project

on page 104

ƒ

Running the Sample

on page 104

7.3.1

Project Overview

The HTTPS eWay Java Collaboration-based sample Project demonstrates how the
HTTPS eWay uses the GET and POST commands to request and receive data from a
specific web site. The data result is received from the Web site and is sent to the
following locations:

ƒ

A log file to confirm that the HTTPS eWay correctly requests and receives the result

from the desired Web site

ƒ

An text file written to an external system via an outbound File eWay, to show the

returned data and to confirm that the Project is operating correctly.

The Project has the following outputs:

ƒ

GET Operations

: Returns the retrieved data in an .html file.

ƒ

POST Operations

: Posts a name/value pair to a form and writes the same

information to an .html file, to confirm the posting.

Figure 46 shows the flow of the sample HTTPS eWay Project.

Figure 46 HTTPS eWay Sample Project (Java Collaboration Based)

The location of input and output files are defined by the File eWay properties. By
default, the inbound File eWay reads from c:\temp\input*.txt. The default is changed
for the Project’s outbound File eWay, which sends the resulting data to
c:\temp\output%d.html

(%d represents the serial index starting with integer 0).

The HTTPS eWay sample Project demonstrates how the HTTPS eWay processes
information from an HTTPS system. Resulting or confirming information is then
written to a text file. This scenario is illustrated in Figure 46.

In b o u n d F ile

A p p lic a tio n

O u tb o u n d F ile

A p p lic a tio n

F ile In , to

H T T P , to F ile

O u t

C o lla b o ra tio n

H T T P (S )

e W a y