Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a proxy web service?

What is a proxy web service ??

like image 410
Azhar Avatar asked May 12 '10 11:05

Azhar


People also ask

What is proxy in web services?

A web service proxy is a gatekeeper between a calling application and target web service. The proxy has the ability to introduce new behaviors within the request sequence. A Web Service proxy can then: Add or remove HTTP headers.

What is an example of a proxy server?

Some proxy servers are a group of applications or servers that block common internet services. For example, an HTTP proxy intercepts web access, and an SMTP proxy intercepts email. A proxy server uses a network addressing scheme to present one organization-wide IP address to the internet.

How does a Web proxy work?

Proxy servers work by facilitating web requests and responses between a user and web server. Typically, a user accesses a website by sending a direct request to its web server from a web browser via their IP address. The web server then sends a response containing the website data directly back to the user.


1 Answers

A client and a Web service can communicate using SOAP messages, which encapsulate the input and output parameters as XML. A proxy class maps parameters to XML elements and then sends the SOAP messages over a network. In this way, the proxy class frees you from having to communicate with the Web service at the SOAP level and allows you to invoke Web service methods in any development environment that supports SOAP and Web service proxies.

Example:

diagram for the following declaration

  1. Client calls the proxy's method, Login(username,password).
  2. The proxy serializes these parameters into a SOAP message, and sends it over HTTP to the Web service.
  3. The Web service returns the result (true or false in this case) of Login() method call serialized in a SOAP message.
  4. The proxy class deserializes the response, and returns the boolean value true to the client application.
like image 135
Prasad Gayan Avatar answered Sep 24 '22 03:09

Prasad Gayan