View Source

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.
{panel:title=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
{panel}

h2. Deploy a FTP Service Unit

*Configure and deploy a FTP Service-Unit for* *[ftp.petalslink.com]*
# Start Petals ESB.
# Launch Petals Studio.
# File => New => Service Unit Project: Service Unit - Select the kind of service to create.
# Select: Provide / FTP / Current_Version => Next: FTP Service-Unit - Defines the JBI properties of the service to import.
## Service Name: *FtpTutorial*
# Next => Next: FTP Service-Unit - Define the specific properties for this version of the component.
## Server: *ftp.petalslink.com*
## Port: *21*
## User: *petals*
## Password: *demo*
## Folder: _leave it empty_
## Transfer Type: *auto*
## Connection Mode: *active*
# Finish.
# Give a look at the generated _jbi.xml._ You see the component configuration.
# Give a look at the generated _FtpService.wsdl_. You see all operations available on the service.
# On the left "Petals projects" tree, right click on the Service-Unit Project : "_su-FtpTutorial-provide_" => Petals => Fast Export for Petals.
{note:title=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_ :
# 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{note}
# Copy-Paste the generated _sa-FTP-FtpTutorial-provide.zip_ to Petals ESB _./install/_ folder to deploy it.
# Check that the SA deployed successfully.


h2. Test and monitor in Webconsole

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

h2. Expose the FTP in SOAP

Proxify the FTP operations with SOAP (15min)

h2. Test with SOAP UI

[Download SOAPUI|http://sourceforge.net/projects/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)