Hi Alex,
Thank you so much for taking time to help me.
I've test your attached workflows. It work!
Awesome, I never thought of using Beanshell service before.
Thanks again for guiding me.
Regard,
nan
On Tue, Nov 30, 2010 at 6:12 PM, Alexandra Nenadic <[email protected]>
wrote:
>
> Hello,
>
> On 29/11/2010 17:54, Sureerat Kaewkeeree wrote:
>
> On Tue, Nov 30, 2010 at 12:09 AM, Alexandra Nenadic <[email protected]>
wrote:
>>
>> Hello,
>> We are not quite clear what you Web service takes as an input - just the
name of the image file? And then it know which image to process just by
knowing the name of an image?
>
> First of all, sorry for my poor english and the unclear points.
>
> That's OK, not everyone here is a native speaker, me included. But we are
here to help.
>
> I have web service server (for processing image) and taverna run in the
same machine.
> Taverna just send the file name that store in specified directory to the
server as an input. The web service server calls the image from file name
and execute it.
>
>>
>> There are few things that you can do but we need to understand a bit
better how your Web service works before we can answer. Can you send us the
WSDL ULR of your Web service please?
>
>
> Please see the attached WSDL. The server get the name of an image as an
input, process it and return the output in binary. This service work
properly now.
> But I want it to execute more than one image at a time by sending multiple
filenames.
>
> OK, I could not import your wsdl in Taverna but in order to pass the names
of images to it you can use a simple beanshell service in Taverna that will
read the contents of a directory (presumably all images are in the same
directory?) and return the names of the image files which you can them pass
to your Web service. See the attached workflow
get_file_names_from_directory.t2flow for an example of such a beanshell
service.
>
> Alternatively, you can save all image names in a text file by doing:
>
> ls /Directory/with/Images/ > filename_list.txt
>
> and load filename_list.txt file in Taverna as an input to the attached
workflow get_file_names_from_directory2. This workflow reads the file and
splits its content into a list of filenames which you can then pass into
your Web service.
>
>
>>
>> The "Add file(s) location" option when you run a workflow enables you to
load contents of files as inputs and not their paths on your file system.
>
> I tried it. Then, Is there anyway to get the filenames or their paths from
input window?
>
> No - the input window is to load content from files, not file names.
>
> Regards,
> Alex
>
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/