aspose file tools*
The moose likes Web Services and the fly likes webservice vs. EJB, and wscompile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "webservice vs. EJB, and wscompile" Watch "webservice vs. EJB, and wscompile" New topic
Author

webservice vs. EJB, and wscompile

chaohua wang
Ranch Hand

Joined: Dec 22, 2002
Posts: 62
Hi, Folks, I am new for webservice.

I have couple of questions.
1.)From what I have learned, the web service is like EJB session bean. I know web services communicate by XML message, and not tied to any one operating system and languages. For our pdsstudio application, I wonder what are advantages to use web service comparing with EJB.


2.) I need to use wscompile to generate mapping and wsdl files.
For example, wscompile -cp output/classes -gen:server -f:rpcliteral -mapping jaxrpc-mapping.xml config.xml
But I can�t find wscompile task name in ANT. Is there any another task to replace it?

Thank you very much in advance.

Chaohua
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39577
    
  27
EJBs and web services are not competitive technologies. In fact, they can be complementary. A web service might be used to access an EJB. Grossly over-simplifying, web services are a way of accessing functionality (like a communication channel), while EJBs are used to implement the functionality.

As to wscompile, I have no idea. Is that a proprietary tool?


Ping & DNS - updated with new look and Ping home screen widget
chaohua wang
Ranch Hand

Joined: Dec 22, 2002
Posts: 62
Thank you veru mcuh!
Yes wscompile is tool, devloped by SUN.
it can sue to generate wsdl and mapping files.
I am using this tool. please visit the site
http://wiki.jboss.org/wiki/Wiki.jsp?page=WSRPCServiceStepByStep
Thank you again!

Chaohua
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
Originally posted by chaohua wang:
But I can�t find wscompile task name in ANT.


Sun's samples use asant so it probably has it.

You may also want to look at Understanding your JAX-RPC SI Environment, Part 1: 2.1 Ant task


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: webservice vs. EJB, and wscompile
 
Similar Threads
Blueprints Doubt-Page 116 Chapter 3
wscompile task
Webservice & EJB
Looking up a webservice
POJO