Previous Section  < Day Day Up >  Next Section

Quiz

To see whether you can deliver information upon request across great distances, answer the following questions about XML-RPC in Java.

Questions

1:

What does XML-RPC stand for?

  1. XML Remote Procedure Call

  2. XML Rapid Paramilitary Commandos

  3. XML Resists Programmer Comprehension

2:

If a public method in an XML-RPC handler class returns an int, what form will it take when returned by a client's execute() method?

  1. int

  2. Integer

  3. It won't—XML-RPC doesn't support integers.

3:

An applet making an XML-RPC call can connect to how many different computers?

  1. 0

  2. 1

  3. As many as desired

Answers

A1:

a. Other techniques to make remote procedure calls include the Common Object Request Broker Architecture (CORBA), Open Network Computing RPC, and the web services protocol, SOAP.

A2:

b. The execute() method always returns an object that must be cast to the proper class. An int value is returned as an Integer object representing the same value.

A3:

b. For security reasons, the applet only may call an XML-RPC server on the same computer that served the applet to a browser.

    Previous Section  < Day Day Up >  Next Section