A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Sep 28, 2006
Oct 14, 2013 13:25:55
I have see this class BindingProvider in so may web service client as show below
Service service = Service.create(wsdlURL, qname); port = (SerPorttype)service.getPort(SerPorttype.class); BindingProvider bp = (BindingProvider)port; bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "kermit"); bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "thefrog");
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
Joined: Mar 17, 2012
Oct 14, 2013 23:57:45
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
(there are three types) to find out more about this use case.
I agree. Here's the link:
The server sent HTTP status code -1
problem with jax-ws trying to overide default callback endpoint address
Jax-ws and setting the keystore programmatically
Adding authorization to access webservice
web of knowledge
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015