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
<!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,
3
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,
HTTPS eWay Adapter User’s Guide | 61 | Sun Microsystems, Inc. |