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

Creation of WebService

 
Dishpal Bhaluja
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • 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?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • 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
  • 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
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • 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
  • 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
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try a google search for "rad ejb web service tutorial."

Bill
 
Jeff Boucher
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic