Two Laptop Bag
The moose likes Web Services and the fly likes Endpoint.Publish clarification Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Endpoint.Publish clarification" Watch "Endpoint.Publish clarification" New topic
Author

Endpoint.Publish clarification

narain ashwin
Ranch Hand

Joined: Dec 27, 2007
Posts: 48
Hi,
I have a query on the Endpoint.publish() method


Whenever I run this class in my eclipse Helios IDE it seems to start a new server. But when I try to run this from command line it gives and exception that


I am not able to understand the cause of this error. Should I include any libraries ?

My second question is how does Endpoint.Publish starts a server in my IDE, since it is a pojo how can it start a server and bind a port in my machine? The only difference I note is that I have included Apache CXF libraries in classpath while running the server from IDE, is Apache CXF responsible for starting a new server. Please help out

I drink two cappuccinos a day.Is that of any help to solve java problems??
JBoss 6 - Admin console Username/pwd: admin/admin
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2193
Hi!
Endpoint publishes a JAX-WS endpoint implementation class. This is mainly suitable for testing web service endpoint implementation classes.
Yes, you can say that it starts a server, albeit a limited server.
Endpoint is part of the JavaSE 6 API and you do not need any additional libraries. If you haven't already, I recommend taking a look at the API documentation for the class in question!
What does your myWSImplementor class look like - is it annotated?
In order for Endpoint to be able to publish it, it must be annotated with @WebService or @WebServiceProvider.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Endpoint.Publish clarification
 
Similar Threads
contract first web service
JAX-WS2 and HTTPS
How to change jetty binding port number in maven.
Service for Asynchronous Client calls (polling, callback)
Role Authorization using apache cxf.