Sun Microsystems 5.1.1 Network Cables User Manual


 
Chapter 6 Section 6.5
Implementing the HTTPS eWay BPEL Sample Projects Building and Deploying the prjHTTPClient_BPEL Sample Project
HTTPS eWay Adapter User’s Guide 61 Sun Microsystems, Inc.
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.2 Creating a Project
The first step is to create a new Project in the Enterprise Designer.
1 Start the Enterprise Designer.
2 From the Project Explorer tree, right-click the Repository and select New Project. A
new Project (Project1) appears on the Project Explorer tree.
3 Right-click Project1 and select Rename form the shortcut menu. Rename the Project
(for this sample, prjHTTPClient_BPEL).
6.5.3 Creating 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:
1 In the Enterprise Explorer, right-click prjHTTPClient_BPEL and select New >
Object Type Definition from the pop-up menu.