The moose likes Web Services and the fly likes JWS vs Java-Annotated webservice class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JWS vs Java-Annotated webservice class" Watch "JWS vs Java-Annotated webservice class" New topic

JWS vs Java-Annotated webservice class

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
All these time I've been reading and playing with Java-annotated webservice class. But recently, I've seen something with an extension of .JWS. What's the difference?

I'm having the idea that those with the .jws extension can be changed in production? Is this available/can be done to all servlet containers? Thanks!

SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41182
JWS used to be a simple deployment mechanism for POJOs that was supported by Axis 1.x. (I can't find a mention of it in the Axis 2.x docs, so I'm assuming that it has been dropped. Axis 2 has a better mechanism for deploying POJOs, though.)

Essentially it enabled you to drop a Java source file (with a .jws extension) into the Axis web app directory, and its public methods would be treated as web services. Some more information -and a mention of the significant drawbacks of this method (no WSDL, no handlers, no WS-Security, ...)- can be found here.

Ping & DNS - my free Android networking tools app
Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Thanks for the answer!
It is sorta covered in the JavaRanch Style Guide.
subject: JWS vs Java-Annotated webservice class
Similar Threads
Compiler Error: cannot find symbol
tomcat/axis not compiling jws
Difference between @WebService and @WebServiceProvider annotation?
Difference between @WebService and @WebServiceProvider
Which way to create a web service?