Hi
On 30/07/12 20:24, Sergey Beryozkin wrote:
Hi
On 30/07/12 14:27, Stefan Funk wrote:
Hi there,
finding this thread very interesting, I am wondering...
...where does the<resource base=""> atribute value in the generated WADL
files come from?
WADLGenerator uses JAX-RS UriInfo.getBaseUri() method.
Typically, it's a sum of the host, port, context and
jaxrs:server@address, ex:
CXFServlet uri pattern: "/service"
jaxrs:server@address: "/rest"
gives something like
http://localhost:8080/service/rest
...where can the<jaxrsServerURL> be configured?
...can I set the jaxrs base address (resource base="") anyhow like in the
jaws implementation using the publishedEndpointUrl tag (e.g. in the
beans.xml file)?
...or is the WADL generator involved in some way and can be configured?
Not at the moment, definitely can be done.
The alternative option, available right now, is to link to the existing
WADL document, using jaxrs:server/@docLocation attribute, ex,
"classpath:/wadl/myservice.wadl" which will contain the expected base URI
FYI, the same attribute is also now supported for jaxrs:server, sorry,
just don't remember if I already confirmed that or not :-)
Sergey