Thursday 19 January 2017

Ways to access web service

Ways to access web service:
There are two ways to access web service.
  • SOAP: - If Service provider knows client: If service provider knows its client then it will provide it’s wsdl to client and client will be able to access web service.

  • REST: - Service provider register its WSDL to UDDI and client can access it from UDDI: Web services can register with a UDDI and make themselves available through it for discovery
1.Service provider registers with UDDI.
2.Client searches for service in UDDI.
3.UDDI returns all service providers offering that service.
4.Client chooses service provider
5.UDDI returns WSDL of chosen service provider.
6.Using WSDL of service provider, client accesses web service.



In the web services terms, Representational State Transfer (REST) is a stateless client-server architecture in which the web services are viewed as resources and can be identified by their URIs.
It consists of two components REST server which provides access to the resources and a REST client which accesses and modifies the REST resources.

In the REST architecture style, clients and servers exchange representations of resources by using a standardized interface and protocol. REST isn't protocol specific, but when people talk about REST they usually mean REST over HTTP.

No comments:

Post a Comment