2

Using JAX-WS on Java SE 7.

The guides on Soap Handlers seem to assume a Java EE server. Is this essential for SOAP handlers or can they also work in Java SE?

2 Answers 2

4

You can implement web services in Java SE.

You just need to start up an Endpoint and publish it.

This is a simple example.

Java EE and servlet containers handle the publishing part for you. Outside of that, they're pretty much the same thing and handled the same way.

Sign up to request clarification or add additional context in comments.

Comments

-2

A web service gets deployed either on a Servlet container (like Tomcat) or any Java EE application server (like JBoss AS, WebLogic etc).

So Java SE is not enough for deploying your web service.

5 Comments

Implementing a client not a service I would like to know if I may use soap handlers. Thanks
Client implementation you can do in pure Java so J2SE is enough.
Your answer is plain wrong. J2SE provides full support for both web service clients AND web service implementation. See this answer and this answer
@kolossus pls check my answer carefully. I am talking about "web service deployment" and not implementation. In fact i have also mentioned in my comment that J2SE is enough for writing client.
Webs service deployment if I'm not mistaken means that you're running a web service no? So yes, you can deploy a webservice on J2SE using the endpoint API.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.