Cosuming web service with JAX-WS

I need to be able to read the hostname and port from the web.xml file before every ws call. So how can I do this in JAX-WS or is it not possible?

0


source to share


1 answer


You will get access to parameters just like for other purposes:



ServletContext.getInitParameter(String key)

+2


source







All Articles