aspose file tools*
The moose likes Web Services and the fly likes POJO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "POJO" Watch "POJO" New topic
Author

POJO

phani bhushan reddy
Greenhorn

Joined: Jul 20, 2007
Posts: 27

Please explain me how can i make a 'POJO' as Web service?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
The Axis 2 toolkit from the Apache Software Foundation supports creating a web service from a Plain Ole Java Object. It depends on your class conforming to certain naming conventions.

Bill
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42635
    
  65
Using JAX-WS, it could be as simple as adding a single @WebService annotation to a POJO. See here for details on how to make it work on Tomcat.


Ping & DNS - my free Android networking tools app
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
and a worked out example at Apache AXIS2 sources


Spritle Software Blogs
phani bhushan reddy
Greenhorn

Joined: Jul 20, 2007
Posts: 27

Please tell me i am using JBoss as my Application server, I was unable to use wscompile because, JBoss has wsconsume as a tool to convert it into mapping files, please any body can tell me the behaviour starting from creating a starting class to the end of the deploying for creating the mapping files

Please tell me now i am in this position .............
phani bhushan reddy
Greenhorn

Joined: Jul 20, 2007
Posts: 27

Originally posted by Ulf Dittmer:
Using JAX-WS, it could be as simple as adding a single @WebService annotation to a POJO. See here for details on how to make it work on Tomcat.


Please tell me i am using JBoss as my Application server, I was unable to use wscompile because, JBoss has wsconsume as a tool to convert it into mapping files, please any body can tell me the behaviour starting from creating a starting class to the end of the deploying for creating the mapping files
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
This may contain some pointers:
Seam - Contextual Components: Chapter 20. Web Services

Seam's /examples directory will probably contains compile and deploy scripts that can tell you what needs to be done.
 
 
subject: POJO