<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: SOAP Webservice in Ivy using Java</title><link>https://answers.axonivy.com/questions/2956/soap-webservice-in-ivy-using-java</link><description>&lt;p&gt;I tried to publish a web service similar to the one described in the tutorial below. I did not use the out-of-the-box Ivy WS process as each of the WS have many methods (and decided to build them in Java instead). &lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.journaldev.com/9123/jax-ws-tutorial"&gt;Example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Using Endpoint.publish() I specified the location for the WS. However, this requires me to run the class containing this method in the java console, and then run Ivy. I tried tying Endpoint.publish() to a "Start Process" in Ivy but it did not work. &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;public class SOAPPublisher {

public static void main(String[] args) {
    Endpoint.publish("http://localhost:8888/ws/depotWS99", new WSDepotShopImpl());
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Is there a "best practices" method to building a SOAP WS via Java in Ivy, and how do I get the WS published in Ivy? Thanks!&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2956/soap-webservice-in-ivy-using-java" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 07 Nov 2017 03:32:31 -0500</lastBuildDate><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/2956/soap-webservice-in-ivy-using-java#2960</link><description>&lt;p&gt;You can add further methods to the same WebService by adding another 'WS Start' event to the process. 
&lt;img src="https://answers.axonivy.com/upfiles/wsProcessWithMultipleMethods_t0FUOgW.png" width="600"&gt;
&lt;img src="https://answers.axonivy.com/upfiles/wsdlWithMultipleMethods.png" width="600"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 07 Nov 2017 03:32:31 -0500</pubDate><guid>https://answers.axonivy.com/questions/2956/soap-webservice-in-ivy-using-java#2960</guid></item><item><title>Comment by Walter Weiss on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/2956/soap-webservice-in-ivy-using-java#2959</link><description>&lt;p&gt;Hey Reguel, thank you for your reply. I tried building the WS this way, but I am stuck trying to figure out how to build multiple methods for one Webservice (without building a separate WS for each method). It is a requirement for me to use one WS only. How would you suggest to do this? Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Walter Weiss</dc:creator><pubDate>Tue, 07 Nov 2017 02:48:46 -0500</pubDate><guid>https://answers.axonivy.com/questions/2956/soap-webservice-in-ivy-using-java#2959</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2956/soap-webservice-in-ivy-using-java/2957</link><description>&lt;p&gt;I don't see any value in building a plain JAX-WS service in Ivy without using ivy...&lt;/p&gt;
&lt;p&gt;The Ivy way is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;create a new Process of type '&lt;a href="https://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.processmodeling.html#ivy.wizards.newprocess"&gt;Webservice Process&lt;/a&gt;'&lt;/li&gt;
&lt;li&gt;define a signature (&lt;a href="https://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.processmodeling.html#ivy-processmodels-elements-wsprocessstart"&gt;in/out parameters&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;implement business logic in the process that handles webservice invocations and return a result. You can do this in plain Java, but don't have to. You can use all the rich APIs and ProcessElements that speeds up the development time.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Behind the scenes ivy will generate a normal JAX-WS endpoint with everything you need. And it will provide monitoring, logging, authentication and deployment life-cycle handling out of the box. &lt;/p&gt;
&lt;p&gt;...and if there is really something missing. You still can modify the generated JAX-WS service descriptor and implement it with anything you like in plain Java.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 06 Nov 2017 02:52:21 -0500</pubDate><guid>https://answers.axonivy.com/questions/2956/soap-webservice-in-ivy-using-java/2957</guid></item></channel></rss>