taverna-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Dunlop <Ian.Dun...@manchester.ac.uk>
Subject RE: GSOC Taverna Mobile: Uploading workflows to the Taverna player
Date Fri, 03 Jul 2015 14:50:51 GMT
Hello,

Have you tried sending the workflow using curl by putting the request ie {"workflow" : { 
"document":"data:application/octet-stream;base64,BASE64 ENCODE WORKFLOW GOES HERE"}} in a
file eg wf.json and send using 
curl --verbose -u your_taverna_player_email_address -X POST -H "Content-Type: application/json"
-d@wf.json http://heater .cs.man.ac.uk:3000/workflows.json

If that works then it must be something in the code causing issues with the request. I'm going
to have a look at the code but it is unlikely I will be able to properly debug today.

Cheers,

Ian

-----Original Message-----
From: Larry Akah [mailto:larryakah@gmail.com] 
Sent: 03 July 2015 15:38
To: dev@taverna.incubator.apache.org
Subject: Re: GSOC Taverna Mobile: Uploading workflows to the Taverna player

The string data validates well with the online validator.

2015-07-03 15:24 GMT+01:00 Ian Dunlop <Ian.Dunlop@manchester.ac.uk>:

> Hello,
>
> Here is the output from my curl request which shows all the request 
> and response headers. There aren't really many headers needed. Check 
> your Authorization one....
>
> curl --verbose -u ian.dunlop@manchester.ac.uk -X POST -H "Content-Type:
> application/json" -d@wf_enc2.json http://heater 
> .cs.man.ac.uk:3000/workflows.json Enter host password for user 
> 'ian.dunlop@manchester.ac.uk':
> * Hostname was NOT found in DNS cache
> *   Trying 130.88.193.100...
> * Connected to heater.cs.man.ac.uk (130.88.193.100) port 3000 (#0)
> * Server auth using Basic with user 'ian.dunlop@manchester.ac.uk'
> > POST /workflows.json HTTP/1.1
> > Authorization: <removed :) >
> > User-Agent: curl/7.37.1
> > Host: heater.cs.man.ac.uk:3000
> > Accept: */*
> > Content-Type: application/json
> > Content-Length: 39759
> > Expect: 100-continue
> >
> * Done waiting for 100-continue
> < HTTP/1.1 201 Created
> < X-Frame-Options: ALLOWALL
> < X-Xss-Protection: 1; mode=block
> < X-Content-Type-Options: nosniff
> < X-Ua-Compatible: chrome=1
> < Location: http://heater.cs.man.ac.uk:3000/workflows/2
> < Content-Type: application/json; charset=utf-8 < Etag: 
> "61640e9efd5cbb04b9735c09dd228077"
> < Cache-Control: max-age=0, private, must-revalidate < X-Request-Id: 
> d1dd1043-c78b-447d-9533-ee18ad581608
> < X-Runtime: 0.902580
> * Server WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08) is not blacklisted < 
> Server: WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08) < Date: Fri, 03 Jul 2015 
> 12:36:34 GMT < Content-Length: 386 < Connection: Keep-Alive <
> * Connection #0 to host heater.cs.man.ac.uk left intact 
> {"id":2,"title":"Fetch today's xkcd comic","description":"Use the 
> local java plugins and some filtering operations to f etch the comic 
> strip image from http://xkcd.com/\n\nBased on the FetchDailyDilbert 
> workflow.","url":"http://heater.cs.m
> an.ac.uk:3000/workflows/2.json","user":{"id":2,"name":"Ian
> Dunlop"},"created_at":"2015-07-03T12:36:34.020Z","updated_at
> ":"2015-07-03T12:36:34.020Z"}
>
>
> Cheers,
>
> Ian
>
> -----Original Message-----
> From: alaninmcr [mailto:alaninmcr@googlemail.com]
> Sent: 03 July 2015 14:58
> To: dev@taverna.incubator.apache.org
> Subject: Re: GSOC Taverna Mobile: Uploading workflows to the Taverna 
> player
>
> Larry,
>
> It is worth using a tool like http://jsonlint.com/ to validate the 
> format of the JSON you are sending.
>
> Alan
>
>


--
*Akah Larry N.H*

*Lead Software Engineer @ GiftedMom*
*Founder IceTeck Inc*
*www.iceteck.com*

Developing technologies for emergence and sustainable development.
Mime
View raw message