WebServices - Dynamic proxy versus Stubs created by wconsume
posted 5 years ago
I created a Web Service using JaxWs. I belive that exist two ways to consume a web service in the client.
Option 1: using wconsume e putting the generated classes as stubs in the client.
Option 2: using Dynamic Proxy, whitch means, there wil be no files to be send to client as stubs. I imagine that the only advantage of this approach is that if the wsdl changed, there will be not need to generat stubs files. However it doesn't look too practical, as I will probably need to change something in the client code and recompiled anyway. I didn't use this tecnichy yet. I found this option (http://download.oracle.com/javaee/1.4/tutorial/doc/JAXRPC5.html) when I was reaserching the reason why I need to generate proxy file when developping Java client but I didn't when I using .Net.
Then, I have two question:
1- What's the difference between stubs and Dynamic Proxy tecnich?
2-Why .Net client doesn't need proxies files? Or is there the files automaticlly generated and I don't know where to find? Am I loosing performance or security when using stubs versus dynamic proxy?