Chapter 7

Section 7.3

Implementing the HTTPS eWay JCD Sample Projects

Building and Deploying the prjHTTPClient_JCD Sample Project

The Sample_In.dtd file defines the following elements:

ƒMethod: Defines whether the file is for a GET or POST command.

ƒURL: Defines the address of the target HTTP server.

ƒData: Stores the data string(s) used in the POST command. You can use a single input string in this case.

If your input comes with a name-and-value pair (for example, user name and password fields), you can use ‘’ as a delimiter between pairs of data and use ‘^’ as a sub- delimiter. For example, if the user name field is myname, and the password field is mypass, then the data element is:

username^myuserpassword^mypass

You can use any number of pairs in this case. When the HTTPS eWay sends out the POST request, the URL becomes:

url?username=myuser&password=mypass

Where url is the URL element in the input file.

7.3.2Creating a Project

The first step is to create a new Project in the Enterprise Designer.

1Start the Enterprise Designer.

2From the Project Explorer tree, right-click the Repository and select New Project. A new Project (Project1) appears on the Project Explorer tree.

3Right-click Project1 and select Rename form the shortcut menu. Rename the Project (for this sample, prjHTTPClient_JCD).

7.3.3Creating the OTD

The next step is to create a Data Type Definition (DTD) OTD as an input file for this HTTPS sample Project.

Follow the steps outlined in “Creating the OTD” on page 61 to convert the Sample_In.dtd file into an eGate OTD. Name the new OTD Sample_In_with_top_website.

7.3.4Creating the Collaboration Definition (Java)

The eGate Enterprise Designer contains a Collaboration Definition wizard (Java) that allows you to create Java-based Collaborations. You must use the wizard to create a Collaboration Definition before implementing the Collaboration.

The Collaboration Editor user interface allows you to create the Business Rules that implement your business logic for a Java-based Collaboration. You can create the desired Business Rules for your Project by dragging and dropping values from a source

HTTPS eWay Adapter User’s Guide

99

Sun Microsystems, Inc.

Page 99
Image 99
Sun Microsystems 5.1.1 manual Creating a Project, Creating the Collaboration Definition Java