my dog learned polymorphism*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Mock Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Mock Question" Watch "Mock Question" New topic
Author

Mock Question

winston lim
Greenhorn

Joined: Feb 18, 2003
Posts: 26
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.
Richard Monson-Haefel
author
Ranch Hand

Joined: Oct 31, 2003
Posts: 92
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?


-- <br />Richard Monson-Haefel<br /><a href="http://www.Monson-Haefel.com" target="_blank" rel="nofollow">http://www.Monson-Haefel.com</a>
Shoaib Khanzada
Ranch Hand

Joined: Jan 24, 2004
Posts: 34
Well done good work, carry on waiting for some other good questions,
Michael Zhao
Ranch Hand

Joined: Sep 19, 2000
Posts: 77
good one


SCJP,SCWCD,SCMAD,OCP9I, SCEA
Thang Tran Vinh
Greenhorn

Joined: Jan 24, 2003
Posts: 6
The question number 4 should appear in DnD style, I had to read it two times to understand the question .
Andy Smith
Ranch Hand

Joined: Sep 28, 2003
Posts: 239
Wow, thats nothing less then Ultimate.


Share Knowledge to gain it.
SCJP 2, SCWCD 2, SCDJWS, IBM 141 (In Progress), IBM 486 (Next)
peter cooke
Ranch Hand

Joined: Mar 16, 2004
Posts: 314
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


CIAO Peter M. Cooke
 
Consider Paul's rocket mass heater.
 
subject: Mock Question
 
Similar Threads
soap & soapenv
My SCDJWS Notes available now!
Programatically identifying iterating nodes...
namespace doubt
Could not recognize the SOAP XML Namespace while invoking MessageRouterServlet