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

Cheers, Sergey


Thanks a lot for all the answers!
Stefan.



--
View this message in context: 
http://cxf.547215.n5.nabble.com/WADL-generation-URL-tp4957178p5711714.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to