Sven Groot wrote:
A proxy stub doesn't exist. You probably saw it referred somewhere as proxy/stub, by which they mean proxy or stub.
A proxy is a piece of code that doesn't perform any functions of its own, but instead is responsible for calling the real code. For instance you can use wsdl.exe (or Visual Studio) to generate a proxy class for a webservice. This class doesn't perform the function of the webservice, but it's responsible for calling the webservice.
A stub is a placeholder, usually a class skeleton that you need to fill in yourself with real code. To again use the web service example: on the server you have a class using [WebService] that implements the service. Giving an existing WSDL contract, wsdl.exe can generate a stub for that service: a class that implements the service, but all the methods are empty leaving you to implement the functionality for real.
Both proxy and stub code is most often autogenerated, like in this example with wsdl.exe.
Thank you both.
I understood from your explaination what a proxy is. I am still somewhat unclear exactly what a stub is. Are you saying that a stub is an empty implementation that is code generated based on a service contract (e.g. WSDL contract) and that's it, nothing more to it?
The reason this question first popped up is because someone named a class ....ProxyStub...
Searching on the internet I've found a lot of Proxy/Stub as sven pointed out but no such thing as Proxy Stub.
James