It's not a secret anymore!*
The moose likes Web Services and the fly likes BindingProvider Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "BindingProvider" Watch "BindingProvider" New topic
Author

BindingProvider

Amirtharaj Chinnaraj
Ranch Hand

Joined: Sep 28, 2006
Posts: 236
Hi All,

I have see this class BindingProvider in so may web service client as show below



what my question is How the object port is been cast to BindingProvider. the class SerPorttype is not even implementing the interface javax.xml.ws.BindingProvider

Please advice.

E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 873
    
    9
Your SerPorttype is just an interface whose implementation is generated at runtime so the generated class could be implementing all sorts of interfaces.
Look up the proxy pattern (there are three types) to find out more about this use case.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: BindingProvider
 
Similar Threads
The server sent HTTP status code -1
web of knowledge
problem with jax-ws trying to overide default callback endpoint address
Adding authorization to access webservice
Jax-ws and setting the keystore programmatically