Showing posts with label FTP adapter. Show all posts
Showing posts with label FTP adapter. Show all posts

Friday, April 15, 2016

#488 ICS 16.2.1. FTP Adapter and Scheduler

Simple example leveraging the above -

Here are my in / out directories in my ftp server -








Here is the simple test -















File is picked up and written to out directory -













Here is the configuration of my ftp adapter - thanks Angelo for the
ftp server access.





















Here is the Integration -


Here is the Read Configuration -




























Here is the Write configuration -

























Scheduling

Here I can define a schedule -







































I can Pause the Schedule at any time -


Schedule is now active.
Pause the schedule when you need to temporarily prevent this integration from running.
























Tracking













Note, we see only the run - 1620394, actually processed a file.
I now click on the Run Id icon or the Message icon on the right.


I click on the File Name to see the actual instance.









Simple, yet very effective...







Tuesday, January 6, 2015

#366 SFTP (Put/Get) with the Oracle FTP adapter

Simple scenario here -







All the composite does is accept in an order and then PUTs the order to the FTP server.

As FTP server I am using Cerberus FTP.

I configured a new user niall




















Note: the root folder for user niall is D:\Work\envs\CerberusFTP\NcFolder

Here are the Constraints -
niall can only use sftp






























So user niall will use the above public key to authenticate.

So where did this key come from?

I used PuttyGEN to create public/private keys on the machine, hosting SOA Suite.
























These keys are stored here on my machine - in D:\Work\keys








Now back to the composite -

Here is the configuration of the FTP adapter -











Note the JNDI Name eis/Ftp/ncSFTPAdapter.

I now go to the Weblogic console and configure this resource -






































Properties 1 - 10: no changes.

Properties 11 - 20: change Host value to FTP Server host



Here is the ip address from the FTP Server console -

























Properties 21 - 30: no changes.

Properties 31 - 40: change ListParserKey = WIN


















Properties 41 - 50: set PrivateKeyFile to point to the SOA Host
private key.

change port to 22.



















Properties 51 - 60: no changes.

Properties 61 - 70: Set
ServerType=win
Username=niall

(niall is, of course, our ftp user)




















Properties 71 -74:
Set UseSftp to true















Save and update the ftpAdapter deployment






































Deploy the composite and test -














--- GET ---

Here is my composite -










Adapter config as follows -
























I drop a file into NcFolder














It is picked up and an instance of the composite is instantiated.








Friday, December 19, 2014

#361 SOA 12c FTP adapter example

Here is a very simple example of using the ftp adapter.

I begin by downloading FileZilla Server and Client.

I then create 2 groups of the ftp server - admins and users













Then come 2 users - niall and admin
Passwords: welcome1















I also set up the shared folders -














Here is my file structure - I added the folder SharedFolder with its two sub-directories.










Configure the FTP Adapter via the WLS console.

I create a new outbound connection eis/Ftp/ncFTPAdapter

Here I added/changed the following -


























Here I set Password to welcome1 (The ftp user password)
Regarding ListParserKey - default in UNIX, I changed this to win.















Note: Port defaults to 21







Here I set
ServerType to win
Username to niall
















I then update the FTP Adapter -

























Now I create the composite in JDeveloper -









This will be a simple BPEL process that "puts" an input order to the ftp server.

The xsd -

















I now add the ftp adapter -






































Now Invoke from the BPEL process -





















Deploy and Test

























Check the ftp Server directory /SOAFTPOut






















Next level - FTP in and FTP Out

I will read from the /SOAFTPIn directory and write to the /SOAFTPOut directory on my FTP Server.












I created the ftpService on the left and a new BPEL process ProcessFTPOrder.


The service is configured as follows -

































All the BPEL process does is read in the file and then put it to the out directory on the FTP Server

















I test by copying one of the output files from the /SOAFTPOut directory to the
/SOAFTPIn directory.



















Kudos to whoever wrote the following - it was a great start.