Creating a WSDL Document : Using FTP
In this section, you will add a WSDL Document. In this example, you will add ftpTransfer.wsdl to the BPEL Module. Use the Partner view of the WSDL editor to configure the components of the WSDL Document. A WSDL is created to define a web service and is bound to the FTP transportation.
TCWSDLDFTPBC
To Create a WSDL Document : ftpTransfer
1 Expand the BPEL Module project node in the Projects tab.
For example, SendInventory
2 Right-click the project node or Process Files node. Select New —> WSDL Document...
This opens the New WSDL Document wizard.
3 Type the File Name in the File Name field.
For example, ftpTransfer.wsdl
4 Select Concrete WSDL Document.
5 Choose the Binding — FTP from the drop-down list.
6 Choose any one of the following Types from the drop-down list.
*
Poll Request Message: Choose this scenario when the FTP BC polls for request message(s) from a dedicated sub-directory (inbox). In this example, the sub-directory is under the remote FTP directory (message repository) and invokes a JBI service with the message(s).
*
Poll Request Message and Put Response: Choose this scenario when the FTP BC polls for request message(s) from a dedicated sub-directory (inbox). In this example, the sub-directory is under the remote FTP directory (messaging repository) and invokes a JBI service. It puts the response(s) back to a dedicated sub-directory (outbox) under a remote FTP directory (messaging repository).
*
Put Request Message: Choose this scenario when a JBI service invokes FTP BC to put a request message to a dedicated sub-directory (outbox). In this example, the sub-directory is under the remote FTP directory (messaging repository).
*
Put Request Message and Poll Response: Choose this scenario when a JBI service invokes FTP BC to put request message(s) to a dedicated sub-directory (inbox). In this example, the sub-directory is under the remote FTP directory (messaging repository). It polls the response(s) back from a dedicated sub-directory (outbox) under a remote FTP directory (messaging repository).
*
On Demand Get Message: Outbound Get Messaging
*
Receive Request: Choose this scenario when the FTP BC polls (receiving) for request message(s) from a remote FTP target (source) and invokes a JBI service with the message(s).
This option is more customized compared to option "Poll Request Message".
*
Receive Request and Send Response: Choose this scenario when the FTP BC polls (receiving) for a request message(s) from a remote FTP target (source). The FTP target invokes a JBI service and puts (sending) the response(s) back to another remote FTP target (destination).
This option is more customized compared to option "Poll Request Message and Put Response".
*
Send Request: Choose this scenario when a JBI service invokes FTP BC to put (sending) a message to a remote FTP target (destination).
This option is more customized compared to option "Poll Request Message".
*
Send Request and Receive Response: Choose this scenario when a JBI service invokes FTP BC to put (sending) request message(s) to a remote FTP target (destination). It polls (received) the response(s) back from another remote FTP target (source).
This option is more customized compared to option "Put Request Message and Poll Response".
*
On Demand Receive Transfer: Outbound Receiving Transferring.
7 Select Type — Put Request Message from the drop-down list.
8 Click Next.
This opens New WSDL Document — FTP Configuration wizard.
9 Click FTP Connection tab.
10 Enter the following fields:
a Host Name: localhost
b Host Port: 21
c User Id: anonymous
d Password: Enter Password
e Directory List Style: UNIX
f Transfer Mode: BINARY
g Message Repository: Enter text in the Message Repository text box. This is optional.
Note - The option Correlate Request Response is selected, by default.
11 Click Next.
This opens New WSDL Dcoument — Poll Request wizard.
12 Enter the following fields:
a
Message Repository: book_updates
b
Message Name: inventory%d.xml
c
Message Name Prefix: This is optional.
d
Enable Overwrite Protect: This option is selected, by default.
e
Enable Staging When Put Message: This option is selected, by default.
f
Payload Processing: The radio button xml is selected, by default.
13 Click Finish.
This action opens the Project tree structure. In the current example, this action displays the WSDL editor for ftpTransfer along with its properties.
14 Click Save All.
Top
TMMESSPROFTPBC
To Modify ftp:message Properties
1 Double-click ftpTransfer.wsdl.
This action opens the WSDL Editor.
2 Expand Bindings —> OutboundOneWayMessagingBinding —> OutboundOneWayMessagingOperation —> input1 —> ftp:message.
3 Double-click ftp:message.
This action opens the ftp:message Properties window.
Note - Choose Window —> Properties if the Properties window is not visible.
4 Click Message Correlate. Choose the Property — false from the drop-down list.
5 Click Save All.
Top
Previous
Next
Creating a WSDL Document : Using FILE
See Also
Return to Working With the FTP Binding Component