Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WebServices - Dynamic proxy versus Stubs created by wconsume

Demetrio Carvalho
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ( 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?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic