Exercises

1. 

Which is the best answer?

  1. SOAP is used to wash in the shower.

  2. SOAP is used to apply schema structure to tables in a database.

  3. SOAP is used to send messages.

  4. SOAP is used to send context-rich messages between computers.

  5. None of the above.

image from book

2. 

Which elements are allowed in a SOAP XML document?

  1. A body section

  2. A tail section

  3. A header section

  4. An envelope section

  5. A letter section

image from book

3. 

What does XSD stand for?

  1. XML Standard Definition

  2. XML Surrogate Definition

  3. XML Story Definition

  4. eXtra Stovetop Derailer

  5. None of the above

image from book

4. 

Which of these is the best answer?

  1. SOAP sends messages and a Web Service provides information.

  2. SOAP is used to send text messages and a Web Service can provide answers to functional expressions.

  3. SOAP wraps XML documents into specialized XML tags and a Web Service can provide answers to functional expressions.

  4. All of the above.

  5. None of the above.

image from book

5. 

Which of the following statements best describes what will cause an error with this SOAP message?

   <?xml version="1.0"?> <SOAP:Envelope xmlns:SOAP="http://www.w3.org/2003/05/soap-envelope"> <Body>    <region name="  Europe  ">       <country name="  England  ">          <city>  London  </city>          <city>  Manchester  </city>       </country>       <country name="  Germany  ">          <city>  Hamburg  </city>          <city>Frankfurt</city>       </country>    </region> <Body> </SOAP:Envelope>   
  1. It has no header section.

  2. The envelope tag is incorrect and the body tag is correct.

  3. It has no header section, the body tag is incorrect, and the envelope tag is incorrect.

  4. The body tag is incorrect and the envelope tag is incorrect.

  5. All of the above.

image from book

Answers

1.  

Exercise 1 solution

d. SOAP is used to send context-rich messages between computers. SOAP is used as a universally understood set of XML tags to send context-rich messages between computers, even in heterogeneous environments.

2.  

Exercise 2 solution

a. A body section, containing the XML document to be sent, c. A header section, containing specifics of the body section, and d. An envelope section, constituting the root node of a SOAP XML document.

3.  

Exercise 3 solution

e. None of the above. XSD stands for XML Schema Definition allowing for specification of a table, fields, and inter-table relationships definition.

4.  

Exercise 4 solution

c. SOAP wraps XML documents into specialized XML tags and a Web Service can provide answers to functional expressions. Option a. is incorrect because SOAP is rather used to send messages. A server process or web server will send those messages. b. is correct but c. is a better answer.

5.  

Exercise 5 solution

d. is the appropriate answer because the body tag closing element is incorrect and there is nothing wrong with the envelope tag. a. and c. are incorrect answers because the header section is optional. b. is a poor answer because there is nothing wrong with the envelope tag, but the namespace is missing from the body tag.



Beginning XML Databases
Beginning XML Databases (Wrox Beginning Guides)
ISBN: 0471791202
EAN: 2147483647
Year: 2006
Pages: 183
Authors: Gavin Powell

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net