Hi
On 02/09/14 23:08, Aaron Titus wrote:
Hello I am using Apache CXF 2.7.6, and building a restful service. I have
defined the servlet using the cxf.xml configuration file. I need the
schemaLocation to appear in the XML response. I have read the cxf docs
here ==> http://cxf.apache.org/docs/jax-rs-data-bindings.html and I have
defined followed the instructions there in the section "configuring the
provider" but it seems to have no effect.
Has anyone done this, and if so, how did you do it?
Those schemaLocation elements in the configuration are used to enable
the server-side in and/or out payload validation.
Looks like you need to use @XSISchemaLocation annotations, see
http://cxf.apache.org/docs/jax-rs-advanced-xml.html#JAX-RSAdvancedXML-XSISchemaLocation
HTH, Sergey