<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Checking whether there is an endpoint in the web service or not</title><link>https://answers.axonivy.com/questions/3469/checking-whether-there-is-an-endpoint-in-the-web-service-or-not</link><description>&lt;p&gt;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&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3469/checking-whether-there-is-an-endpoint-in-the-web-service-or-not" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 04 Oct 2018 03:22:13 -0400</lastBuildDate><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/3469/checking-whether-there-is-an-endpoint-in-the-web-service-or-not/3474</link><description>&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/wserror.png"&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Reto Weiss. Axon.ivy Support&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Thu, 04 Oct 2018 03:22:13 -0400</pubDate><guid>https://answers.axonivy.com/questions/3469/checking-whether-there-is-an-endpoint-in-the-web-service-or-not/3474</guid></item><item><title>Answer by Tu Doan Quang</title><link>https://answers.axonivy.com/questions/3469/checking-whether-there-is-an-endpoint-in-the-web-service-or-not/3473</link><description>&lt;p&gt;&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/check_endpoint.png"&gt;
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:&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tu Doan Quang</dc:creator><pubDate>Wed, 03 Oct 2018 22:21:51 -0400</pubDate><guid>https://answers.axonivy.com/questions/3469/checking-whether-there-is-an-endpoint-in-the-web-service-or-not/3473</guid></item><item><title>Answer by Tu Doan Quang</title><link>https://answers.axonivy.com/questions/3469/checking-whether-there-is-an-endpoint-in-the-web-service-or-not/3471</link><description>&lt;p&gt;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&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tu Doan Quang</dc:creator><pubDate>Wed, 03 Oct 2018 05:47:55 -0400</pubDate><guid>https://answers.axonivy.com/questions/3469/checking-whether-there-is-an-endpoint-in-the-web-service-or-not/3471</guid></item></channel></rss>