This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I am trying to make some mock question while reading. Happy trying. Best Regards, winston.
1. Listing 1.1 shown an XML declaration. Which two are true? (Choose two) A.An XML declaration is mandatory for a SOAP message. B.If an xml declaration is used, the version of XML must be 1.0 and the encoding must be either UTF-8 or UTF-16. C.If encoding is absent, the assumption is that the SOAP message is based on UTF-8. D.Web services will generate fault when accepting message without XML declaration according to BP-conformance rule.
2.Which three are correct about element in a SOAP message? (Choose three) A.All SOAP message must have an Envelope element. B.A SOAP message may carry both application-specific data and a fault at the same time. C.The Envelope element cannot contain any other child other than Header element and exactly one Body element. D.A Header element is optional. E.An XML namespaces can be declared in the header element but not in its header block.
3.Given the following.
To make the above XML document to become a SOAP document,
IThe wrapping of the XML inside of a SOAP body IIThe wrapping of the SOAP body within a SOAP envelope IIIThe optional inclusion of a SOAP header block IVNamespace declarations VEncoding style directives for the serialization of data VIThe binding of the whole thing to a protocol Choose the all correct answer. A.I, II and IV. B.I, II, III, IV and VI. C.II, IV, V and VI. D.II, IV and VI. E.I, II, III, IV and V. F.All the above.
4.Find the correct matching pairs for SOAP fault elements. a.faultcode b.faultstring c.faultactor d.detail 1.A human-readable description of the fault. It must be present in a fault element. 2.A code that indicates the type of the fault. 3.An application-specific field that contains the detail information about the fault. 4.An optional field that indicates the URI of the source of the fault.
Answers : 1. B, C. 2.A, C and D. 3. F. 4. a, 2 and IV. b, 1 and I. c, 4 and II. d, 3 and III.
Hey, those are pretty good moch questions. One thing, there are no "All of the above" options on the test. Also, the question will always indicate how many right answers there are (e.g. like you did in a couple questions (Choose n)) unless there is just one right answer than it will say that be saying something like "Which is true.". Which means which *one* of the answers is true. If there is more than one correct answer, we'll tell you to choose exact number (e.g. Choose two). Make sense?
for your MOCK questions. Make sure you ask what is in, or removed from the various SOAP versions. My beta exam had a bunch This soap header will generate a soap fault/exception (sorry I am now only learning web services) in soap 1.0 or soap 1.1