Hi Jia / John, I have checked with Don Cruickshank (one of the myExperiment developers). This is indeed a error in the API documentation and has been corrected.
Regards David Newman On Wed, 2010-08-18 at 16:38 -0500, Jia Zhang wrote: > Hi David: > > > > Thanks for your kind information. However, when we tried to add a > workflow id, like given in the API document: > > http://www.myexperiment.org/comment.xml?id=2 > > > > Then the mashup api gave the following error: > > > > <?xml version="1.0"?> > > <error code="400" message="Bad Request"> > > <reason>Cannot specify an id</reason> > > </error> > > > > Please advice. Thanks. > > > > Best regards, > > Jia > > From: David R Newman [mailto:[email protected]] > Sent: Wednesday, August 18, 2010 4:25 PM > To: 'List for general discussion and hacking of the Taverna project' > Subject: Re: [Taverna-hackers] Difficulties posting comment to > myExperiment > > > > > Hi John, > > > > I have just tested http://www.myexperiment.org/mashup/api with the > XML you specified below (albeit with a different subject resource) and > it seems to work fine. What did you specify in the URI field of the > mashup form? It should be http://www.myexperiment.org/comment.xml. > When you hit “Go” it should prompt you for a username and password if > you are not logged in. > > > > If your application is under development I suggest using > http://sandbox.myexperiment.org rather than the main site. This > deployment is generally kept updated to the same-ish revision as the > main site so if it works on sandbox it should work on the main site. > > > > I am not a myExperiment developer but I do work closely with them. So > if above doesn’t help I can ask them to investigate further tomorrow > morning. > > > > Regards > > > > David Newman > > > > From: John Alexander [mailto:[email protected]] > Sent: 18 August 2010 20:34 > To: [email protected] > Subject: [Taverna-hackers] Difficulties posting comment to > myExperiment > > > > > I am currently working with myExperiment through a java application I > am writing. I have come to a snag in my work as I am unable to > generate the correct code to POST a comment to a workflow through > Java. > > I am building the correct XML that is required as the wiki displays > but I keep getting a http 400 error returned. > > Not only does my code not work, but the example xml code displayed on > the wiki: > > <?xml version="1.0" encoding="UTF-8" ?> > <comment> > <subject > resource="http://www.myexperiment.org/workflows/173"/> > <comment>This is my comment.</comment> > </comment> > > does not work on the http://www.myexperiment.org/mashup/api page > either. > > Does anyone know if myExperiment has updated the XML code required to > post a comment to a workflow successfully? > > Thanks, > John > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ taverna-hackers mailing list > [email protected] Web site: http://www.taverna.org.uk > Mailing lists: http://www.taverna.org.uk/about/contact-us/ Developers Guide: > http://www.taverna.org.uk/developers/ ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ taverna-hackers mailing list [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/about/contact-us/ Developers Guide: http://www.taverna.org.uk/developers/
