vert-x3 / vertx-examples

Vert.x examples
Apache License 2.0
3.55k stars 2.09k forks source link

SOAP Service with Vert.x #283

Closed MeiyappanKannappa closed 6 years ago

MeiyappanKannappa commented 6 years ago

Hi, We are trying to create a web application with vert.x. We have a requirement to expose a SOAP service. Is it possible to implement/create/produce a SOAP service in vert.x. There is no documentation for the same. Could any one help on the same.

vietj commented 6 years ago

@phiz71 can elaborate, he's been doing research on the topic recently

MeiyappanKannappa commented 6 years ago

THank you, But is there any inbuilt module in vert.x which can do this, or any third party modules?

vietj commented 6 years ago

not yet, but @phiz71 is investigating this

phiz71 commented 6 years ago

Hi, actually I started my research on consuming SOAP WS in vert.x. To do this, you can use either Axis2 or CXF. They both allow you to generate an async client that can be embedded in a Verticle.

I think that producing SOAP Services will be a little bit harder.

MeiyappanKannappa commented 6 years ago

@phiz71 Thank you, Can you suggest or guide me where to start. We need a SOAP service to be created in vert.x. As of now we use Spring boot to create a SOAP service. Which need to go through vert.x

phiz71 commented 6 years ago

For the moment, I think you should use your favorite framework to expose your WSDL and use Vert.x inside your implementation.

MeiyappanKannappa commented 6 years ago

Thanks again, But it would be really helpful if you could share some link. I am relatively new to vert.x.

MeiyappanKannappa commented 6 years ago

@phiz71 could you please let me know can we try with vert.x service discovery. If we implement with jax-ws ... can we use the service discovery in vert.x. pls help to understand. Many thanks

phiz71 commented 6 years ago

@MeiyappanKannappa : Maybe you could have a look at https://github.com/vert-x3/vertx-examples/tree/master/spring-examples and https://github.com/vert-x3/vertx-examples/tree/master/spring-examples/springboot-example. It shows how to embed Vert.X into a Spring App. And since you can easily expose SOAP WS with Spring, IMHO it could be a good starter.

phiz71 commented 6 years ago

I've never tried to implement a custom ServiceDiscovery, so I can't help you, sorry.

mohanceg21 commented 6 years ago

@MeiyappanKannappa - Hi Karthik, are you able to create soap service in vertx. I also have a requirement to create a soap service using vertx.

MeiyappanKannappa commented 6 years ago

@mohanceg21 we cannot create SOAP directly in vertx. You need to split and have a converter in front. That is the approach we use.

mohanceg21 commented 6 years ago

@MeiyappanKannappa Thanks for your response. can you pls tell me how you did that?

tsegismont commented 6 years ago

Closing as this is not related to vertx-examples, and there are threads already on the user forum about SOAP servers.