Great!  I checked
https://taverna.incubator.apache.org/documentation/server/3.1/usage
and none of the Server API calls currently support form-data, only
JSON or XML (as well as the t2flow upload).

Do you think support for form-data would be beneficial for Taverna
Server or do the current options suffice?

On 9 April 2018 at 18:26, Vimig Socrates <vsocra...@case.edu> wrote:
> Thank you. That basically worked. I had to post as a binary object as
> opposed to form-data.
>
> --
> Vimig Socrates
> Case Western Reserve University Class of 2018
>
> On Mon, Apr 9, 2018 at 10:33 AM, Stian Soiland-Reyes <st...@apache.org>
> wrote:
>>
>> Hi,
>>
>> POSTing with Content-Type application/vnd.taverna.t2flow+xml is indeed
>> the recommended way to upload the t2flow workflow.
>>
>> Could you try to remove the second Content-Type header of
>> multipart/form-data inserted by Postman? That is probably breaking it.
>>
>>
>>
>>
>> On 6 April 2018 at 00:11, Vimig Socrates <vsocra...@case.edu> wrote:
>> > Hi everyone!
>> >
>> > I just started using Taverna and have Taverna 2.54 Server setup on an
>> > Ubuntu
>> > 16.04 VM but I don't understand how to post a workflow to it. I am using
>> > the
>> > old t2flow format, but I get a 415 Unsupported Media Type server error
>> > when
>> > I POST with the file attached using Postman HTTP Client.
>> >
>> > Am I missing a setting?
>> >
>> > Here is the cURL code snippet produced by Postman.
>> >
>> > curl -X POST \
>> >   http://pqhs-vimig.case.edu:8080/tavernaserver/rest/runs \
>> >   -H 'Authorization: Basic dGF2ZXJuYTp0YXZlcm5h' \
>> >   -H 'Cache-Control: no-cache' \
>> >   -H 'Content-Type: application/vnd.taverna.t2flow+xml' \
>> >   -H 'Postman-Token: 80a0ed49-e86e-5d2b-14cc-1530c5f9e5fd' \
>> >   -H 'content-type: multipart/form-data;
>> > boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
>> >   -F =@/.../conversion_workflow.t2flow
>> >
>> >
>> > Please let me know! Thanks!
>> >
>> > --
>> > Vimig Socrates
>>
>>
>>
>> --
>> Stian Soiland-Reyes
>> http://orcid.org/0000-0001-9842-9718
>
>



-- 
Stian Soiland-Reyes
http://orcid.org/0000-0001-9842-9718

Reply via email to