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

Creation of WebService

Dishpal Bhaluja
Ranch Hand

Joined: Dec 30, 2007
Posts: 96
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

Joined: Mar 22, 2000
Posts: 12781
    
    5
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

Joined: Dec 30, 2007
Posts: 96
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

Joined: Mar 22, 2000
Posts: 12781
    
    5
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

Joined: Dec 30, 2007
Posts: 96
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

Joined: Mar 22, 2000
Posts: 12781
    
    5
Try a google search for "rad ejb web service tutorial."

Bill
Jeff Boucher
Greenhorn

Joined: Aug 18, 2008
Posts: 14
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creation of WebService