Questions Tagged With resthttps://answers.axonivy.com/tags/rest/?type=rss&user=SupportIvyTeamquestions tagged <span class="tag">rest</span>enThu, 18 Apr 2019 04:05:19 -0400How to upload a File to a REST apihttps://answers.axonivy.com/questions/3777/how-to-upload-a-file-to-a-rest-api<p>I am building a document management service with a RESTful API. </p> <pre><code>@Path("fileUpload") public class FileUploadService { @PUT @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.MULTIPART_FORM_DATA) public Response uploadFile(@FormDataParam("file") InputStream fileStream, @FormDataParam("file") FormDataContentDisposition fileDetail) throws IOException { .... } } </code></pre> <p>It seems to work as expected if I use a third party client such as Postman. However, when using the REST activity of ivy I am unable to call this service. I always get errors stating the the header <code>X-Requested-By</code> is missing. Whats the issue? How can I send files using a REST Client Call activity?</p>SupportIvyTeamThu, 18 Apr 2019 04:05:19 -0400https://answers.axonivy.com/questions/3777/how-to-upload-a-file-to-a-rest-apifileuploadrestfileHow to call a NTLM protected REST Servicehttps://answers.axonivy.com/questions/2904/how-to-call-a-ntlm-protected-rest-service<p>Can you explain how to call a REST Service which is secured by NTLM?</p>SupportIvyTeamMon, 09 Oct 2017 06:03:09 -0400https://answers.axonivy.com/questions/2904/how-to-call-a-ntlm-protected-rest-servicentlmrestCan I accept self signed certificates in REST requests?https://answers.axonivy.com/questions/2833/can-i-accept-self-signed-certificates-in-rest-requests<p>In my project I am forced to use a third party REST service which is only accessible over HTTPS. Unfortunately the certificate is self signed. What can I do to accept untrusted certifticates?</p>SupportIvyTeamTue, 29 Aug 2017 07:54:28 -0400https://answers.axonivy.com/questions/2833/can-i-accept-self-signed-certificates-in-rest-requestssslrestHow can I analyze or log the root cause of my failing REST webservice call?https://answers.axonivy.com/questions/2033/how-can-i-analyze-or-log-the-root-cause-of-my-failing-rest-webservice-call<p>I'm calling a REST service which is provided by my client. While I'm able to call the development service, I get weird error status codes when I call the productive service on customer site. </p> <p>How can I analyse the REST service invocation and get detailed information how my request is processed? </p>SupportIvyTeamMon, 19 Sep 2016 08:57:04 -0400https://answers.axonivy.com/questions/2033/how-can-i-analyze-or-log-the-root-cause-of-my-failing-rest-webservice-callrestParse complex JSON response from REST callhttps://answers.axonivy.com/questions/1468/parse-complex-json-response-from-rest-call<p>I use the REST api of google to trigger a search on their search engine. This works as expected. The result of the call is a complex JSON string. </p> <p>See <a href="http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;q=ivyTeam">http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;q=ivyTeam</a> <img alt="sampleJson" src="http://answers.axonivy.com/upfiles/sampleJsonFromGoogle.PNG"></p> <p>How can I comfortably access this complex result in ivy. With Java or ivyScript?</p>SupportIvyTeamTue, 08 Sep 2015 16:23:26 -0400https://answers.axonivy.com/questions/1468/parse-complex-json-response-from-rest-callrestCan I expose api as REST service?https://answers.axonivy.com/questions/1453/can-i-expose-api-as-rest-service<p>Is it possible to implement a REST service so that third party system can access ivy core API or any other custom data in JSON format?</p>SupportIvyTeamMon, 31 Aug 2015 11:25:58 -0400https://answers.axonivy.com/questions/1453/can-i-expose-api-as-rest-servicerest