June 2017
Beginner
1296 pages
69h 23m
English
... sends its output to a Writer instead of returning a String.
RESTful services returning JSON can be tested in the same way as those returning XML. Follow the procedure outlined in Section 32.7.1, but use the URL
http://localhost:8080/WelcomeRESTJSON/webresources/welcome/Paul
to invoke the web service. In this case, the browser will display the JSON response
{"message":"Welcome to JAX-RS web services with REST and JSON, Paul!"}
We now create a Java application that retrieves the welcome message from the web service and displays it to the user. First, create a Java application with the name WelcomeRESTJSONClient. Then, create a JFrame form called WelcomeRESTXMLClientJFrame and place it in the com.deitel.welcomerestjsonclient ...
Read now
Unlock full access