Petals Getting started - day 3 - Expose a FTP Service in SOAP

Hi again Petals Padawan. Glad to see you're still on board !
For your 3rd day, you will connect Petals to an FTP server, and expose the created FTP service as a SOAP web-service, outside Petals ESB.

Last tested with
  • Petals ESB 3.1
  • Petals Studio 1.1.0
  • Petals SE RMI 1.1.1
  • Petals BC SOAP 4.0.2
  • Petals Webconsole 2.0.3
  • Tomcat 6.0.29
  • JDK 6 update 20

Added in this tutorial :

  • Petals BC FTP 3.2.1
  • soapUI 3.6

Deploy a FTP Service Unit

Configure and deploy a FTP Service-Unit for [ftp.petalslink.com]

  1. Start Petals ESB.
  2. Launch Petals Studio.
  3. File => New => Service Unit Project: Service Unit - Select the kind of service to create.
  4. Select: Provide / FTP / Current_Version => Next: FTP Service-Unit - Defines the JBI properties of the service to import.
    1. Service Name: FtpTutorial
  5. Next => Next: FTP Service-Unit - Define the specific properties for this version of the component.
    1. Server: ftp.petalslink.com
    2. Port: 21
    3. User: petals
    4. Password: demo
    5. Folder: leave it empty
    6. Transfer Type: auto
    7. Connection Mode: active
  6. Finish.
  7. Give a look at the generated jbi.xml. You see the component configuration.
  8. Give a look at the generated FtpService.wsdl. You see all operations available on the service.
  9. On the left "Petals projects" tree, right click on the Service-Unit Project : "su-FtpTutorial-provide" => Petals => Fast Export for Petals.
    Known bug for Studio v1.1.0 !
    Please check jbi.xml and FtpService !
    "interface-name" attribute in jbi.xml and "portType name" in the WSDL should have the same value. If not, please correct FtpService.wsdl :
    1. SELECT:
      <wsdl:portType name="Ftp">

    REPLACE BY:
    <wsdl:portType name="FtpInterface">

    ALTERNATIVE SOLUTION:
    Open the WSDL file in Studio, go on "general" tab, Clic "Helpers" on the Up-Right => Clic "Update the service end-point in the WSDL".

    This is a known bug in Petals Studio 1.1.0. It should be corrected in version 1.1.1

  10. Copy-Paste the generated sa-FTP-FtpTutorial-provide.zip to Petals ESB ./install/ folder to deploy it.
  11. Check that the SA deployed successfully.

Test and monitor in Webconsole

Test the DIR operation with Webconsole, with different parameters. (15min)

Expose the FTP in SOAP

Proxify the FTP operations with SOAP (15min)

Test with SOAP UI

Download SOAPUI and install it. SOAP UI is a client to send and receive SOAP messages.
Create a SOAPUIproject with the proxified FTP (10min)
Test the FTP with SOAPUI (10min)
Webconsole technical monitoring (5min)

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.