tags:

views:

1707

answers:

5

I'm hoping to create a Java SOAP server which I can deploy in Tomcat, or in JBoss, or in Geronimo, or in XYZ, etc. etc. etc.

Bottom line, it should have the least dependencies possible. I'm trying to avoid libraries outside of what's included in a standard java distro because of licensing/packaging/reusability issues.

Can any provide a link to where I should start looking, or some example code?

+1  A: 

Apache Axis2 (http://ws.apache.org/axis2/) should provide what you're looking for, or JAX-WS (https://jax-ws.dev.java.net/) if you want more lightweight.

Martin
Right, except them I'm depending on Axis. Is there a way to do this *without* other dependencies/packages?
Keith Palmer
Are you saying you want a SOAP server from JBoss, Tomcat, or Geronimo? Or are you asking if there's one that could be used in ALL of JBoss, Tomcat, Geronimo?Your options are (a) implement it yourself, (b) use an implementation from one of those containers, or (c) use a standalone implementation.
Martin
I am asking if there is one that can be used in ALL of JBoss, Tomcat, and Geronimo, *and* is part of the standard java libs/distro. I would prefer *not* to depend on anything JBoss, Tomcat, Geronimo, or anything else that isn't part of the standard Java package.
Keith Palmer
+1  A: 

Wow.

http://www.w3.org/TR/soap/

There's the standard. You will be spending a lot of time on this project. You'll need to also check out the HTTP and XML specs to build those components.

Ignoring XFire and Axis2 is an very very expensive choice...

sam
A: 

I recently used Metro 1.4 for this (an open source glassfish component) which implements the standard approach for web services.

Drop in the jars in a Java 5 web container, annotate your class and method with standard @tags, and let Metro do the rest.

I have been very pleased with performance in a Jetty container.

Thorbjørn Ravn Andersen
+2  A: 

Java 1.6 introduced the possibility to create standard SOAP webservices with the standard JDK. There are many examples on the web, I just found this one: http://www.vogella.de/articles/JavaWebservice/article.html

mjustin
Thanks, this is helpful!
Keith Palmer
A: 

If you use Spring web service module you don't need Axis or XFire. I think it's a good way to go if you're already using Spring.

duffymo