• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Creation of WebService

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using RSA 7.0 and Db2 using jsf
I am having a db2 database.

Requirements:

Its storing a persons firstname,and lastname and ssn(a number)
I want to deploy db2 data as a webservice

And my jsf page requests for client data by inputting an ssn.

So request should get data from webservice and return firstname and lastname.

What should I do to achieve this?
 
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
What code do you have working? Do you have code that can make the db2 request and locate the names?

Bill
 
Dishpal Bhaluja
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have no code in hand,only ideas.I want a path.

My need is to create a webservice from an ejb which connects and retrieves to me the details based on ssn.

I wanna deploy that as a webservice and in my jsf page ,I wanna connect to webservice(input:ssn number and output:should be (say) first name,last name)

What all I need:
Guide to creation of Webservice from an ejb.
Guide to invoke and get response from webservice through javabean class.

I searched through and got stuck in some ibm rad tutorials,too complex ones.
One using XForms and all.I need a simple tutorial based on these things.

Can anyone help.
 
William Brogden
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
Since your requirements are so simple, a REST style approach is what you need. The open source Jersey project could easily handle this. From the discussions I have seen Jersey cooperates well with EJB.

Here is my short survey article on what it takes to deploy a Jersey based web service.

Bill
 
Dishpal Bhaluja
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You know RAD has inbuilt support to convert my EJB to webservice.Do you people have the tutorial.Help me please
 
William Brogden
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
Try a google search for "rad ejb web service tutorial."

Bill
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might want to check out this link:

"Exposing a Database as a Web Service"

http://www.developer.com/db/article.php/10920_3735771_1
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic