Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3458

Re: How to pass an Array of Objects from SAP UI5 Controller to Jersey Web Service?

$
0
0

Hi Nagishetty,

 

You're not "forced" to use JSON.stringify to send to Jersey.. - I'm not too sure why you marked the question as answered, because that's not the answer you need.

 

JSON.stringify is a "noob" answer, someone that has no idea how JAX-RS or Jersey implementation works or how many different ways you can read the request payload in the Java side... you still can use that approach, but it's nothing else than an approach.

 

About your last question, you can just return your object instance with a build(), for instance:

 

public Response method() {  return Response.status(__STATUS_CODE__).entity([your_instance]).build();
}

 

 

Hope it helps,
Dan.


Viewing all articles
Browse latest Browse all 3458

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>