• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 502
  • Last Modified:

Whats is a proxy class?

what is a proxy class? what is it used for?what is the point in having one and why would you have one?
1 Solution
A proxy class is usually used in Remoting and WCF to allow you to use the objects of a class on server on the client machine. In WCF for example, you can call a method which returns a List(of Person). But the client does not know what a Person is because its a class on Server. So to help the client deal with Person, a proxy Person class is created on the client.

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.

Again It could be a SOAP or any protocol.
like take a scenario where  x team is working on a webseriive  in remote location which they have not hosted. this team can send you a proxy class  which can be used by you to understand the data  structures  and functions used by them and can help you in the implementation of your required wrapper around it.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now