This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

webservice vs. EJB, and wscompile  RSS feed

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
chaohua wang
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!