• Post Reply Bookmark Topic Watch Topic
  • New Topic

Steps to make an API a web service?  RSS feed

 
Payam Fard
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have some already written Java APIs. I would like to expose them as web services. I have also downloaded jwsdp. Could someone let me know what are the steps (including writing the client)?
Thanks,
Payam.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Payam Fard:
Hi all,
I have some already written Java APIs. I would like to expose them as web services. I have also downloaded jwsdp. Could someone let me know what are the steps (including writing the client)?
Thanks,
Payam.

A webservices normally returns some data upon request, it may of datatype like int,string.. or object or some attachments
If you could tell us what exactly you want to give to(return to) the user., it could help further to solve ur problem.
 
Payam Fard
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most of these APIs only used to update database, they are all void. Assuming all the parameters to these APIs are primitive data types, how can I make them web services? Do I need to have an interface and have these new APIs implement that interface?
I am basically looking for the necessary steps to make this happen? I am using sun's jwsdp. From what I have read from Sun's tutorial, I should not be needing any additional packages/software.
I would greatly appreciate any help in this matter.
Regards,
Payam.
 
Cory Wilkerson
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look into Axis (jakarta/apache folk). If you're just looking for a simple way to expose your API, they've made the task rather trivial.
http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/docs/user-guide.html.
Specifically, have a look at JWS (Java Web Service) Files (instant deployment).
Though I use Axis, I've never used the JWS stuff -- if it works out, please let us all know.
Thanks,
Cory
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!