Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

POJO

 
phani bhushan reddy
Greenhorn
Posts: 27
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please explain me how can i make a 'POJO' as Web service?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and a worked out example at Apache AXIS2 sources
 
phani bhushan reddy
Greenhorn
Posts: 27
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic