• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

POJO

 
Greenhorn
Posts: 27
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please explain me how can i make a 'POJO' as Web service?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic