Whats is a proxy class?

Posted on 2011-05-13
Last Modified: 2012-05-11
what is a proxy class? what is it used for?what is the point in having one and why would you have one?
Question by:culminIT
    LVL 83

    Expert Comment

    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.

    LVL 8

    Accepted Solution

    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

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now