We try to call an IVY process start link (/ivy/myprocess.ivp?id=213214) by an external application. As response we expect a JSON object.

But it seems that the IVY Tomcat redirect our request (error 302), so we do not get the response back. Does anybody know to solve this problem?

Thanks!

asked 11.05.2016 at 12:02

peter_muc's gravatar image

peter_muc
29111115
accept rate: 0%


Let the process flow end on a Script activity. This activity is responsible to end the Request and write the serialized JSON directly to the HTTP response.

For further information, have a look at "Can I expose api as REST service?" Q&A entry. It might help you.

link

answered 11.05.2016 at 12:21

Dominik%20Regli's gravatar image

Dominik Regli ♦
9013518
accept rate: 85%

For info:

....at the end we were able to identifiy the problem in general: if IVY does make a redirect (e.g. to a process end page), the Tomact blocks somehow the final response. We guess this problem is caused by Tomcat CORS (link).

Anyways, with the help of the suggested approach link we were able to set a response to the external call.

(12.05.2016 at 13:36) peter_muc peter_muc's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×31
×18

Asked: 11.05.2016 at 12:02

Seen: 2,150 times

Last updated: 19.05.2016 at 11:24