I have a CXF web service something like this:
@Service("MyWebService") public class MyWebService implements IMyWebService { @Autowired private IMyService MyService; public ResponseObject doSomething(RequestObject requestObject) { ResponseObject responseObject = new ResponseObject; .
which is expecting JSON input, say something like this:
{ "requestObject" : { "amount" : 12.50, "userName" : "abcd123" } }
and outputs the output JSON like this:
{ "responseObject" : { "success" : "true", "errorCode" : 0 } }
Is there a way to configure CXF so that it accepts input JSON in the following format:
{ "amount" : 12.50, "userName" : "abcd123" }
I need to cross out the object type name 'requestObject' / 'responseObject' in the input and output JSON. Is it possible?
Your help was appreciated!
source share