ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WMB - FileInput Node Question

Post new topic  Reply to topic
 WMB - FileInput Node Question « View previous topic :: View next topic » 
Author Message
achocks
PostPosted: Thu May 10, 2012 6:29 pm    Post subject: WMB - FileInput Node Question Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Thu May 10, 2012 9:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Fri May 11, 2012 2:03 am    Post subject: Reply with quote

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
View user's profile Send private message
achocks
PostPosted: Fri May 11, 2012 5:43 am    Post subject: Thanks! Reply with quote

Voyager

Joined: 28 Nov 2011
Posts: 82

Thanks smdavies99 and mqjeff!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WMB - FileInput Node Question
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.