Creating a WSDL Document For Type SOAP
In this section, you add a WSDL document to the BPEL Module project. Later, you can use the Partner view of the WSDL editor to configure the components of the WSDL document.
When creating or editing a WSDL file, you may be prompted to select a binding type and a binding subtype. A binding contains protocol and data format information for the operations and messages of a port type. For more information, see step 6.
To Create a WSDL Document : SOAPWSDL
1 Expand the project node in the Projects window.
For example, BpelModuleSample
This opens the New WSDL Document wizard.
2 Right-click the node or Process Files node. Choose New —> WSDL Document...
For example, BpelModuleSample
3 Enter the filename in the File Name field.
For example, SOAPWSDL.wsdl
4 Select Concrete WSDL Document.
Defines the message format and protocol details for a port type. For JDBC Binding Component, this is always a message containing a database operation defined using the JDBC API.
Indicates which binding to use and how to access the database resource. For Database Binding Component, the address element (jdbc:address) specifies the JNDI name for the database resource.
5 Choose the Binding — SOAP from the drop-down list.
The Binding — SOAP is selected and displayed, by default.
6 Select any one of the following Type.
If you select the SOAP binding type, then you must select any one of the following binding subtypes:
* RPC Literal
The operations are RPC oriented (that is, messages contain parameters and return values). Each message part references a concrete schema definition by using the element or type attribute.
* Document Literal
The operations are document oriented (that is, messages contain one or more documents). Each message part references a concrete schema definition by using the element or type attribute.
* RPC Encoded
The operations are RPC oriented (that is, messages contain parameters and return values). Each message part references an abstract type by using the type attribute.
7 Choose Type — RPC Literal from the drop-down list.
8 Click Next.
This action displays the New WSDL Document dialog box.
9 Choose the Operation Type from the drop-down list.
The WSDL Editor is used to create, edit, and delete port types.
The WSDL Editor supports the following categories of operations:
- Request-Response Operation: The operation receives a message as input, and sends a message as output.
- One-Way Operation: The operation can either receive or send a message as input.
Each message contains one or more logical parts. Specify the name and the type of content for each part.
If you change the name of a port type or operation, then the WSDL Editor renames all occurrences in the same file.
a Right-click the component node to rename all occurrences in associated XSD, WSDL, and BPEL files.
b Choose Refactor —> Rename.
When Operation Type : One-Way Operation. The illustration is as shown.
a Click the ellipses (...) button to select any Element or Type.
b Enter both the Input and Output Message Part Names for Request-Response Operation.
The default value of the Input and Output Message Part Names is xsd:string.
c Click Add to another Message Part Name as the Input.
The checkbox Generate partnerlinktype automatically is selected, by default.
Note - Click Remove to delete the Message Part Name as the Input.
See Steps 11 through 15.
10 Select Operation Type : Request-Response from the drop-down list.
Note - Port Type Name and Operation Name are populated from the previous wizard.
11 Click the ellipses (...) to select the Element or Type.
The Select Element or Type dialog box is displayed.
12 Expand By File.
13 Select the Complex Types for both the Input and Output Message Part Name.
For example, CUSTOMER
14 Click OK.
The New WSDL Document is populated with the Input and Output Element Part Names.
15 Click Next.
Verify the Concrete Configuration.
16 Click Finish.
Creating a BPEL Process
Return to Using the Database Binding Component