on 07-05-2006 4:51 AM
Could you please explain me what is a Web Service with an example?
How to develop a very simple Web Service?
Thanks
Hi Rohini,
>> what is a Web Service
A Web service is any piece of software that makes itself available over the Internet and uses a standardized XML messaging system. There should be some simple mechanism for interested parties to locate the service and locate its public interface. The most prominent directory of Web services is currently available via UDDI, or Universal Description, Discovery, and Integration.
Refer Chapter 8 of this doc http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
There is a simple example for Creating a Simple Web Service and Client with JAX-RPC
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohini,
How to create Web Service:
1. Create EJB Project(Stateless session bean is recommended).
2. Create interface according to your requirements
3. Signature(Parameters, data type) should be same in Remote,Bean and Local interface
4. Create EAR Project and corresponding add the EJB Project
5. Expose EJB as Web service. Right click on EJB Project->other->web services->web service(new VI and VSD).
6. Deploy to Application Server.
7. Goto http://localhost:50100/index.html. click on Web service navigator you can find web service
8. Test the web service.
Let me know if want more details
Regards
Suresh
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.