I’m using GWT as web development framework. I need to access some REST services from my GWT client code. Also I need to parse JSON (or maybe XML) which is response format of these services. Which is the best way for this problem?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can call REST services using the standard GWT
RequestBuilder(orJsonpRequestBuilderif you need to call services on another domain).With the JSON response string, you can call
JSONParser.parseStrict(jsonString)to get aJSONValue, which can be aJSONObject,JSONArray, etc. This is all available in this package.