cancel
Showing results for 
Search instead for 
Did you mean: 

Web service

Former Member
0 Kudos

Could you please explain me what is a Web Service with an example?

How to develop a very simple Web Service?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

suresh_krishnamoorthy
Active Contributor
0 Kudos

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