Chapter 6

Section 6.5

Implementing the HTTPS eWay BPEL Sample Projects

Building and Deploying the prjHTTPClient_BPEL Sample Project

POST Command: Post_Sample.xml

The input data file for the POST command is:

<website>

<method>POST</method>

<url>http://<rep host>:<rep port>/examples/servlet/ RequestParamExample</url>

<data><name>firstname</name><value>MyFirstName</value></data>

<data><name>lastname</name><value>MyLastName</value></data>

</website>

Sample DTD: MultipleData_In.dtd

The eGate OTD wizard is used to create a DTD-based OTD. The input data file specifies an URL for HTTP commands. The XML DTD code for this sample input data file is:

<!ELEMENT website (method, url, data*)> <!ELEMENT method (#PCDATA)> <!ELEMENT url (#PCDATA)>

<!ELEMENT data (name?, value?)> <!ELEMENT name (#PCDATA)> <!ELEMENT value (#PCDATA)>

The MultipleData_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 name/value pair used in the POST command; you can use as many name/value pairs as you need.

Instead of getting and posting relative to an external Internet site, this Business Process sample uses the eGate Integration Server and does these operations internally. If external Internet access is available, you can use that URL in the URL tag.

6.5.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_BPEL).

6.5.3Creating the OTD

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

Steps required to create new DTD:

1In the Enterprise Explorer, right-clickprjHTTPClient_BPEL and select New > Object Type Definition from the pop-up menu.

HTTPS eWay Adapter User’s Guide

61

Sun Microsystems, Inc.

Page 61
Image 61
Sun Microsystems 5.1.1 Creating a Project, Creating the OTD, Post Command PostSample.xml, Sample DTD MultipleDataIn.dtd