Hi

I am a Serive Rest and when i invoke the method getCustomer(), i have this
result:

{"n2.Customer":{
    "code":"Code",
    "name":"Toto"}} 

In the Service web rest I call this method:

@GET
@Path("/customers/{id}/")
public Customer getCustomer(@PathParam("id") Integer pID) {
      ....
}

I want to remove the prefix and in web.xml i add the property
"ignoreNamespaces = true) like this:

...
<servlet>
 <servlet-name>CXFServlet</servlet-name>
 <display-name>CXF Servlet</display-name>
 <servlet-class>
   org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
 </servlet-class>
 <init-param>
  <param-name>jaxrs.serviceClasses</param-name>
  <param-value>
    org.newrest.service.customrest
  </param-value>
 </init-param>
....
 <init-param>
  <param-name>jaxrs.properties</param-name>
  <param-value>
    ignoreNamespaces=true
  </param-value>
 </init-param>

</servlet>
......
But it doesn't work! Someone has an idea about this!

Thank you for your help!

Cédric




--
View this message in context: 
http://cxf.547215.n5.nabble.com/property-ignoreNamespaces-in-web-xml-tp5728453.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Reply via email to