This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "BindingProvider" Watch "BindingProvider" New topic
Author

BindingProvider

Amirtharaj Chinnaraj
Ranch Hand

Joined: Sep 28, 2006
Posts: 230
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: 761
    
    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.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: BindingProvider
 
Similar Threads
web of knowledge
Adding authorization to access webservice
Jax-ws and setting the keystore programmatically
problem with jax-ws trying to overide default callback endpoint address
The server sent HTTP status code -1