Web services
A web service offered by an electronic device to another electronic device, communicating with each other via the Internet, or a server running on a computer device, listening for requests at a particular port over a network, serving web documents.
A web service makes software application resources available over networks using standard technologies. Because web services are based on standard interfaces, they can communicate even if they are running on different operating systems and are written in different languages.
TYPES OF WEB SERVICES
SOUP WEB SERVICES
SOAP is the Simple Object Access Protocol, a messaging standard defined by the World Wide Web Consortium and its member editors. SOAP uses an XML data format to declare its request and response messages, relying on XML Schema and other technologies to enforce the structure of its payloads.
SOUP SERVICE WORKS
A SOAP client formulates a request for a service. This involves creating a conforming XML document, either explicitly or using Oracle SOAP client API. A SOAP client sends the XML document to a SOAP server. This SOAP request is posted using HTTP or HTTPS to a SOAP Request Handler running as a servlent on a Web server.
Step-by-step SOAP web services example in Java using Eclipse
Step 1: Create the Eclipse project. ...
Step 2: Code the Score class. ...
Step 3: Add XML annotations. ...
Step 4: Code the Score Service. ...
Step 5: Add SOAP Web Service annotations. ...
Step 6: Enhance the SOAP web service. ...
Step 7: Use the @Web Method annotation
REST FULL WEB SERVICES
Following four HTTP methods are commonly used in REST based architecture.
GET − Provides a read only access to a resource.
POST − Used to create a new resource.
DELETE − Used to remove a resource.
PUT − Used to update a existing resource or create a new resource.
REST FULL WEB SERVICES USES:
A Restful web service exposes a set of resources that identify the targets of the interaction with its clients.
Resources are identified by URIs, which provide a global addressing space for resource and service discovery.
Comments
Post a Comment