Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
Joined: Sep 28, 2006
Oct 14, 2013 13:25:55
I have see this class
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
. the class SerPorttype is not even implementing the interface
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:
Adding authorization to access webservice
Jax-ws and setting the keystore programmatically
The server sent HTTP status code -1
web of knowledge
problem with jax-ws trying to overide default callback endpoint address
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014