Hi everyone,

I am trying to access a REST webservice with the REST plugin. I want
to do a simple POST. With curl, I do 

curl --data-urlencode -X POST 
http://opentox.informatik.tu-muenchen.de:8080/OpenTox-dev/algorithm/kNNregression?dataset_uri=http://apps.ideaconsult.net:8080/Fambit/Fdataset/91010

or

curl -X POST 
http://opentox.informatik.tu-muenchen.de:8080/OpenTox-dev/algorithm/kNNregression
 -d "dataset_uri=http://apps.ideaconsult.net:8080/ambit2/dataset/91010";

And it works as expected.

When I try to do the same with the REST plugin in Taverna, using

http://opentox.informatik.tu-muenchen.de:8080/OpenTox-dev/algorithm/kNNregression?dataset_uri={dataset}

as URL template, I get a 500 response from the server. (I would expect
a 400 as another parameter is still missing in the call). Looking through
the logs, I can see that the dataset_uri parameter is not send to the
server correctly. It occurs in the logs but is not interpreted as a
parameter. I get the same results when using curl without the
"--data-urlencode" option. 

Can I send the parameters like this in a POST in Taverna? Or is there
another way to send them?

Thanks for any help,

Joerg

--
Dipl.-Bioinf.  Joerg Wicker               room: MI 01.09.043
Technische Universitaet Muenchen         phone: +49-89-289-19440
Institut fuer Informatik/I12               fax: +49-89-289-19414
Boltzmannstr. 3                          email: [email protected]
D-85748 Garching b. Muenchen, Germany   
http://wwwkramer.in.tum.de/wicker/   


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
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/

Reply via email to