Hi everybody I would like to check there is an endpoint in the web service before I send data to there. I found an interface IWebServiceEndpoint, but I don't know how to use to get the data by Ivy API. Could someone help me? Thank you so much

asked 02.10.2018 at 23:03

Tu%20Doan%20Quang's gravatar image

Tu Doan Quang
accept rate: 0%

You mean you want to call web service only if there is really an endpoint configured. If no endpoint is configured you don't want to call the web service? Some kind of optional web service call dependending on the configuration?

(03.10.2018 at 02:36) Reto Weiss ♦♦ Reto%20Weiss's gravatar image

What is the use case behind this. Does ivy not throw an exception if an endpoint is missing. Can we improve something in the product for this case?

(03.10.2018 at 07:50) Reto Weiss ♦♦ Reto%20Weiss's gravatar image

Hi Tu You can do the same thing without using our internal API to check the Endpoint. Simple do the ws call and then analyze the error that is thrown. If the root technical cause is a MalformedURLException the endpoint is empty (not set) or a not valid URL. See here:

alt text


Reto Weiss. Axon.ivy Support


answered 04.10.2018 at 03:22

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
accept rate: 74%

Thank you. I will try

(04.10.2018 at 05:32) Tu Doan Quang Tu%20Doan%20Quang's gravatar image

Hello Reto Weiss, yes. I want to throw a error message before call the web service step, if that web service has no end point then don't need send data to the web service. For any web service: Rest, SOAP, so on that has endpoint. Do you have any suggestion for this? Thanks


answered 03.10.2018 at 05:47

Tu%20Doan%20Quang's gravatar image

Tu Doan Quang
accept rate: 0%

edited 03.10.2018 at 05:50

alt text I hope this picture help you to get my idea. I want to check whether the endpoint has value or not in the web service before calling:


answered 03.10.2018 at 22:21

Tu%20Doan%20Quang's gravatar image

Tu Doan Quang
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: 02.10.2018 at 23:03

Seen: 1,046 times

Last updated: 04.10.2018 at 09:54