Yonatan Maman
Yonatan Maman

Reputation: 2498

spring + tomcat + axis2 == jax-ws web service?

I'm looking for a straightforward example / tutorial for implementing a JAX-WS (soap1.1 and soap1.2) web service based on wsdl definition using spring, axis2 and tomcat.

hint anyone ?

-- Yonatan

Upvotes: 5

Views: 4233

Answers (4)

Priya Dandekar
Priya Dandekar

Reputation: 21

Unfortunately, even the latest version of Metro has issues with tomcat and JDK6 I tried running the sample app on my machine and documented few issues I faced and resolved. For others benefit please check here : Running Metro + Tomcat 6 + JDK 6

Upvotes: 2

Jen S.
Jen S.

Reputation: 4234

Axis2 does not support Spring web services when using Jax-WS. See this mailing list post:

http://markmail.org/message/hohdmsupo3r3gltl?q=list:org%2Eapache%2Ews%2Eaxis-user+spring+jax-ws

To do this you will need a custom module to add a BeanFactory into the MessageContext and then retrieve it out in your web service. Or you might write a custom dispatcher.

Upvotes: 1

Sun
Sun

Reputation: 125

The NetBeans IDE is good place to start. Enable the Axis2 Support in NB plug-ins. You can create a JAX-WS based Web Service from the WSDL (assuming you are using contract first) and the JAX-WS based WS client too. If you dont like what NetBeans generates or its deployment strategy, you can still build upon the code that it has generated

Upvotes: 1

Steve McLeod
Steve McLeod

Reputation: 52448

There is no such thing as "straightforward" in the world of SOAP. Any example and tutorial is bound to be complex due to the overengineered nature of this beast.

If you can choose your technologies, I'd recommend putting axis aside, and using Tomcat 6 + Java 6 + Metro. Metro is Sun's latest, greatest Java web services (jax-ws) stack. Coupled with JavaEE annotations, it's a relatively painless way to get a web service off the ground quickly.

Sorry to not answer the question directly.

Upvotes: 3

Related Questions