The error is caused by mine client code which uses the wrong path. I deploy JAX-WS and JAX-RS in the same tomcat webapp, and they share the same interface and method. The value of "address" attribute in <jaxws:endpoint> is same with @Path value of Restful interface. In client code, when calling WebClient.create(String path), the path argument missed the address value defined in <jaxrs:server>, which made the Restful path is same with JAX-WS endpoint, so CXF treated the call as SOAP call.
After using correct path, it works well. Thanks -- View this message in context: http://cxf.547215.n5.nabble.com/CXF-Restful-Client-calls-causes-SoapFault-in-server-side-tp4388904p4391765.html Sent from the cxf-user mailing list archive at Nabble.com.
