soap calls to a Web Service from vert.x

2,338 views
Skip to first unread message

Ajay Lenson

unread,
Sep 29, 2012, 7:41:19 PM9/29/12
to ve...@googlegroups.com
Hi, Can any one suggest the best way to make a call to a traditional soap based Web Service from vert.x? I need to call a WS to call an Apache Axis based WS and get some data as part of my project.

Thanks for any advice on the best way to do this!

Ajay Lenson

unread,
Oct 1, 2012, 9:10:42 AM10/1/12
to ve...@googlegroups.com
Bump!

I wonder if I'm missing something here? I know node.js has a module called node-soap, that can do this. Can anyone advise how I could call a 'traditional' soap based web service from vert.x

thanks... 

Daryl Teo

unread,
Oct 1, 2012, 9:38:55 AM10/1/12
to ve...@googlegroups.com
Vertx doesn't have a module that does this (afaik) as of yet. Being a young platform, the modules it has are generally works-in-progress, or started by the people who needed it in the first place.

In other words, you'll have to build one yourself. 

It is possible to hook in node-soap module into vertx with a little hacking (I have successfully inserted handlebars.js into my vertx app).

Daryl

Ajay Lenson

unread,
Oct 1, 2012, 11:17:19 AM10/1/12
to ve...@googlegroups.com
Daryl... thank you so much for sharing your experience with Vert.x! Now I know where I need to start from... which is the most important thing if you want to get somewhere :-)

Karol Brejna

unread,
Oct 24, 2012, 2:51:12 AM10/24/12
to ve...@googlegroups.com
Hi, Can any one suggest the best way to make a call to a traditional soap based Web Service from vert.x? I need to call a WS to call an Apache Axis based WS and get some data as part of my project.

Thanks for any advice on the best way to do this!
I'd imagine you do this kind of call from vert.x exactly the same way you would do this from any Java app?
First, you generate stub for the Axis(1/2?) service you wish to call (http://axis.apache.org/axis2/java/core/docs/userguide-creatingclients.html).
Then you use the stub to call the web servie (http://axis.apache.org/axis2/java/core/docs/userguide-codelisting7.html).

Is is this you asking about? 

Maybe you already succeeded? If not, let me know. I think I am going to give it a try...

Regards,
Karol

Brian Lalor

unread,
Oct 24, 2012, 6:53:12 AM10/24/12
to ve...@googlegroups.com
On Oct 24, 2012, at 2:51 AM, Karol Brejna <karol....@gmail.com> wrote:

First, you generate stub for the Axis(1/2?) service you wish to call

This isn't vert.x-specific, but I can't recommend strongly enough against doing that.  Use Spring-WS' WebServiceTemplate to invoke the service and JAXB to generate the beans from the schema you're consuming.  Axis is awful awful awful.

To do this with vert.x you'll need a worker verticle, because the SOAP calls are blocking on network I/O, but otherwise it'll work fine.

Karol Brejna

unread,
Oct 24, 2012, 1:18:00 PM10/24/12
to ve...@googlegroups.com
On Oct 24, 2012, at 2:51 AM, Karol Brejna <karol....@gmail.com> wrote:

First, you generate stub for the Axis(1/2?) service you wish to call

This isn't vert.x-specific, but I can't recommend strongly enough against doing that.  Use Spring-WS' WebServiceTemplate to invoke the service and JAXB to generate the beans from the schema you're consuming.  Axis is awful awful awful.
Nothing beats the "awful, awful, awful" argument... :-) 
 
To do this with vert.x you'll need a worker verticle, because the SOAP calls are blocking on network I/O, but otherwise it'll work fine.
I know Axis2 is awful, but it supports asynchronous Web services and asynchronous Web services invocation using non-blocking clients and transports. 
I was going to test it with vert.x, but it seems the prognosis is awful. 

Regards,
Karol

Mumney Abdlquadri

unread,
Mar 12, 2014, 12:37:47 PM3/12/14
to ve...@googlegroups.com
Hey guys...

How did this story end?

What path / paths were successful.

Regards.

Tanmoy Saha

unread,
Oct 6, 2017, 5:45:46 PM10/6/17
to vert.x
Hi Guys,

Any information that you are having on how to invoke web service calls with vertx as the base framework. I am planning to generate from wsdl and JAXB. My downstream team understands soap services only. The plan is to apprehend rest api from my consumer and convert to soap and send downstream. Once the  response is received, we follow the same process in reverse. 

Do you think this wait (soap response) has to happen in worker verticle instead of blocking of event loop...

Thanks in advance!!!!

Tanmoy.

javadevmtl

unread,
Oct 8, 2017, 3:16:42 PM10/8/17
to vert.x
If they are http web services and fairly simple soap/xml... You can build the xml yourself and you can use the vertx http/web clients as standard vertx operation.
Reply all
Reply to author
Forward
0 new messages