• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Type Hierarchy BindingProvider

 
Allexicus Kernikus
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howcome is it possible to cast a port (aquired from a service) to a BindingProvider? Are they from the same type hierarchy (then I should be able to find an extends some where..?)

Example Code, which works:
APPS103610WebservicesSoap port = service.getPort(APPS103610WebservicesSoap.class);
System.out.println("BindingProvider.getEndpointReference: " + ((BindingProvider)port).getEndpointReference().toString());

Help is appreciated... - many thanks in advance!
 
Hany Shafik
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't have to, When you call service.getPort(), the JAX-WS library will use a technique called dynamic proxy. In short dynamix proxy generates at runtime a class that implements a list of given interfaces (The port interface generated in your stub and the BindingProvider). For more information about Dyanmic proxies please refer to Dynamic Proxy Classes.
I hope this information is helpful to you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic