This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes XML can be used in AJAX on client side. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "XML can be used in AJAX on client side." Watch "XML can be used in AJAX on client side." New topic
Author

XML can be used in AJAX on client side.

Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 724
In EPractice lab, a question:

Mukyono, is a financing company located in London and Tokyo. Mykyono has legancy HP 3000 systems at both the locations, which maintains the customer and account details, and it will be updated by the Mukyono customer agencies with the help of Swing based data entry application and no other system uses these data. To support interoperability with large base of standalone client applications as possible, the services provided by Mukyono back-end application are exposed as XML based RESTful web services. Management just added a new requirement that AJAX-based web application clients be supported, too.
What would you suggest to Mukyono's new development?
Select one.
A. We can use JAX-RS to extend this application.
B. We can use Javascript and AJAX to extend this application.
C. We can use EJB based end web service points to support AJAX-based web application.



The given answer is A. EPractice lab explains :

A RESTFul web service is based on the HTTP methods and the concept of REST. It typically defines the base URI for the services, the MIME types its supports (XML, Text, JSON, user-defined) and the set of operations (POST, GET, PUT,DELETE) which are supported. JAX-RS supports the creation of the XML and JSON via JAXB.


I think the answer can be both A and C. My reason:
The question mentions that the web service is RESTFul and XML based. JAX-WS EBJ based web services can be RESTFul.
And the XML response from the service can be displayed using AJAX on the client's browsers. This reference http://www.w3schools.com/ajax/ajax_xmlfile.asp
shows us that XMLHttpRequest have a method called getElementsByTagName to retrieve XML elements and displayed using AJAX.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML can be used in AJAX on client side.
 
Similar Threads
Please provide me detailed exam topics for SCDJWS certification
authentication is needed for access control
Java EE 6 Web Services Developer Certified Expert Exam - Study Help
Any feedback for SCDJWS Beta?
FREE CERTIFICATION BETA: SCDJWS 5