Deano
Deano

Reputation: 1760

Cosuming web-service with JAX-WS

I need to be able to read the host name and port from the web.xml file before every call to the ws. So how can I do this in JAX-WS or isn't it possible?

Upvotes: 0

Views: 611

Answers (1)

matt b
matt b

Reputation: 139931

You would access the parameters as you would for any other purpose:

ServletContext.getInitParameter(String key)

Upvotes: 2

Related Questions