Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BindingProvider

 
Amirtharaj Chinnaraj
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic