java - Best way for handle Read HTTPRequst post data on Restful api -
what best way of save data using restful web service without using ajax? example need add new customer database using submit button. best way of transfer data format (text,json,xml) ? how read post or data httprequest object?
if can please give me example in java .
thank
i think need separate concepts bit. "restful web service" web service designed using rest principals, whereas ajax set of technologies used on client side asynchronous requests multiple resources (without reloading page). web service shouldn't care how http request generated, contents of http request.
now if you're concerned writing rest service in java, highly recommend looking jax-rs , reference implementation jersey. there lots of examples of how , running. can use messagebodyreader implementations convert data http request entity java objects.
obviously not way started writing restful web service in java, 1 way.
Comments
Post a Comment