Index Changes
This is version 31. It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

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...

Image shows ...


      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.

Note - 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. If you select the FTP binding type, then you must select one of the following binding subtypes. Both subtypes provide basic FTP functionality, such as a directory from which to read or write files, filename pattern matching, and message correlation.
  • FTP Message. Select this binding subtype if you plan to rely on default values.
  • FTP Transport. Select this binding subtype if you want to add customization such as specifying custom directories on the FTP server and specifying pre-transfer and post-transfer operations.
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.

Image shows ...


8    Click Next.
       This opens New WSDL Document — FTP Configuration wizard.

Image shows ...


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.

Image shows ...


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.

Image shows ...


14    Click Save All.

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.

Image shows ...


5    Click Save All.



See Also



Return to Working With the FTP Binding Component

JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This particular version was published on 27-Dec-08 11:11 AM, -0800 by PRABHAMS