This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes JAX-WS Client Programming model Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS Client Programming model" Watch "JAX-WS Client Programming model" New topic
Author

JAX-WS Client Programming model

Lingan Rajan
Ranch Hand

Joined: Jan 26, 2011
Posts: 30
Hello All
Could anybody explain me what does the "dynamic" mean or represent in the below contexts.

JAX-WS Client Programming Model :
1) Dispatch Client => Dynamic Client Model
My understanding here is that the Client classes are generated on the fly and hence called the dynamic client model . Is that right ?

2) Dynamic Proxy Client
Since the Proxy is generated through some sort of tool what does "dynamic" refers to ?

Thanks.

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
When using Dispatch, no client artifacts are generated. Instead the request messages are assembled dynamically at runtime.
It is possible to use JAXB bean classes generated from an XML schema when using Dispatch. This may not be as dynamic as other methods.

The "dynamic proxy client" programming model is the static client programming model according to this article: http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.express.doc/info/exp/ae/twbs_devwbsjaxwsclient_dyn.html
"Dynamic proxy" seems to refer to the proxy mechanism in the Java runtime. Look at the API documentation of java.lang.reflect.Proxy for details!
Best wishes!

My free books and tutorials: http://www.slideshare.net/krizsan
Lingan Rajan
Ranch Hand

Joined: Jan 26, 2011
Posts: 30
Ivan Krizsan
Thanks for your explanation.That Helps.

Lingan.
Lingan Rajan
Ranch Hand

Joined: Jan 26, 2011
Posts: 30
Ivan

Thanks for the response. That helps.

Lingan.
 
jQuery in Action, 2nd edition
 
subject: JAX-WS Client Programming model