Sun Microsystems 5.1.1 manual Https eWay Sample Project Java Collaboration Based

Models: 5.1.1

1 114
Download 114 pages 56.55 Kb
Page 97
Image 97

Chapter 7

Section 7.3

Implementing the HTTPS eWay JCD Sample Projects

Building and Deploying the prjHTTPClient_JCD Sample Project

ƒ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.1Project 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)

In b o u n d F ile

A p p lica tio n

 

H T T P (S )

 

e W a y

F ile In , to

 

H T T P , to F ile

 

O u t

O u tb o u n d F ile

C o lla b o ra tio n

 

A p p lica tio n

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.

HTTPS eWay Adapter User’s Guide

97

Sun Microsystems, Inc.

Page 97
Image 97
Sun Microsystems 5.1.1 manual Https eWay Sample Project Java Collaboration Based