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).

Example

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.

public class SOAPPublisher {

public static void main(String[] args) {
    Endpoint.publish("http://localhost:8888/ws/depotWS99", new WSDepotShopImpl());
}

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!

asked 03.11.2017 at 11:36

Walter%20Weiss's gravatar image

Walter Weiss
(suspended)
accept rate: 0%


I don't see any value in building a plain JAX-WS service in Ivy without using ivy...

The Ivy way is:

  • create a new Process of type 'Webservice Process'
  • define a signature (in/out parameters)
  • 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.

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.

...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.

link

answered 06.11.2017 at 02:52

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

edited 06.11.2017 at 02:57

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!

(07.11.2017 at 02:48) Walter Weiss Walter%20Weiss's gravatar image
1

You can add further methods to the same WebService by adding another 'WS Start' event to the process.

(07.11.2017 at 03:32) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

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:

×147
×52
×48
×8

Asked: 03.11.2017 at 11:36

Seen: 3,007 times

Last updated: 07.11.2017 at 03:34