Re: Taverna 2.54 Server POST Request HTTP Error 415

2018-04-17 Thread Stian Soiland-Reyes
Thanks, Vimig, good to know. :)


On 10 April 2018 at 12:41, Vimig Socrates  wrote:
> I think being able to post the objects as a t2flow object or JSON are more
> than enough. I don't see much benefit in making them form-data.
>
> --
> Vimig Socrates
> Case Western Reserve University Class of 2018
>
> On Tue, Apr 10, 2018 at 4:21 AM, Stian Soiland-Reyes 
> wrote:
>>
>> 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  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 
>> > 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  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/-0001-9842-9718
>> >
>> >
>>
>>
>>
>> --
>> Stian Soiland-Reyes
>> http://orcid.org/-0001-9842-9718
>
>



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


Re: Taverna 2.54 Server POST Request HTTP Error 415

2018-04-10 Thread Vimig Socrates
I think being able to post the objects as a t2flow object or JSON are more
than enough. I don't see much benefit in making them form-data.

--
Vimig Socrates
Case Western Reserve University Class of 2018

On Tue, Apr 10, 2018 at 4:21 AM, Stian Soiland-Reyes 
wrote:

> 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  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 
> > 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  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/-0001-9842-9718
> >
> >
>
>
>
> --
> Stian Soiland-Reyes
> http://orcid.org/-0001-9842-9718
>


Re: Taverna 2.54 Server POST Request HTTP Error 415

2018-04-10 Thread Stian Soiland-Reyes
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  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 
> 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  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/-0001-9842-9718
>
>



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


Re: Taverna 2.54 Server POST Request HTTP Error 415

2018-04-09 Thread Vimig Socrates
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 
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  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/-0001-9842-9718
>


Re: Taverna 2.54 Server POST Request HTTP Error 415

2018-04-09 Thread Stian Soiland-Reyes
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  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/-0001-9842-9718