|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WMB - FileInput Node Question |
« View previous topic :: View next topic » |
Author |
Message
|
achocks |
Posted: Thu May 10, 2012 6:29 pm Post subject: WMB - FileInput Node Question |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
WMB Experts,
Here is what I am trying to accomplish, but I am not sure this is doable in WMB. Can some one please help.
Step 1: One of our website receives a PDF files from users as the first step which upload to a File Upload location (may be a FTP Server location or SFTP).
Step 2: Then the users fills out a form with personal details and what that uploaded file contains and the name of the uploaded file.
The website then wants to create a Webservice call to the WMB 7.0 with the metadata collected in the second step. They want the WMB to make sure all the data is present and if present they want to scan the directiory and see the file mentioned in the web serive request is present in the File Upload location. If the file is present route it to various locations based in the content of the request.
MY QUESTION IS: Can a FileInput and FileOutPut Nodes can be used for this. As far as I know, FileInput node is used to scan a particular node and process/move any files present in that location. Do you think we can use to FileInput Node to look for a particular named file in that location??
And if it is there use the FileOutPut Node to move the files otherwise respond back with failure.
Really appreciate any help on this.
Thanks in advance! |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu May 10, 2012 9:25 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
as the Website has the details of the file location why not get the website (probably a bit of PHP or JS) to pick up the file and send it as part of the WebService call to broker?
It would be very easy for the Website code to check the file existence prior to making the call to broker and NOT let the WebService call go ahead unless all the data items were there.
All this Human interaction 'stuff' is (IMHO etc) much better handled by the WebSite. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri May 11, 2012 2:03 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You would use a FileRead node, not a FileInput node.
Or you would use a FileInput node that read every file, and stuck it into a database with some basic metadata - like the name of the file and the creation time or etc - and then your webservice flow would scan that, rather than the file system.
But otherwise I agree with smdavies - the webservice call should include the file data directly, not a pointer to it. |
|
Back to top |
|
 |
achocks |
Posted: Fri May 11, 2012 5:43 am Post subject: Thanks! |
|
|
Voyager
Joined: 28 Nov 2011 Posts: 82
|
Thanks smdavies99 and mqjeff!! |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|