File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "BindingProvider" Watch "BindingProvider" New topic


Amirtharaj Chinnaraj
Ranch Hand

Joined: Sep 28, 2006
Posts: 241
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

Please advice.

E Armitage

Joined: Mar 17, 2012
Posts: 989
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.

I agree. Here's the link:
subject: BindingProvider
It's not a secret anymore!