java - Multiple RequestBody in spring framework -


service calls below mvc controller following responses payload using post based on result or error:

when valid result:

<document>     <merchant>......</merchant> </document> 

and error:

<response>     <error>some error...</error> </response> 

java code:

@requestmapping(value = "card/payment-response", method = requestmethod.post) public int responsepayment(@requestbody responsecontext responsecontext) {     system.out.println(responsecontext);     return 0; } 

how read both using same @requestbody?


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -