Register / Login
Is there anyway to dynamically capture the endpoint in WSDL?
posted 1 year ago
I have my webservices in 4 different environment and urls are stored in properties files picked up .
currently I am getting endpoint from properties file and putting into requestcontext in proxy class. requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,endPointURLprop);
Somehow I get Connectionrefused due to this. But when I hard code the endpoint in WSDL, it works.
Hence my question if I can get endpoint dynamically in WSDL or is there some other way to avoid this issue?
Boost this thread!
JAX-WS Client Endpoint as Property?
Generating and using client code from wsdl file with wsimport
how to write java web service client
WS-Security, <wsse:Security> Missing in client request