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?
You will get access to parameters just like for other purposes:
ServletContext.getInitParameter(String key)