The moose likes XML and Related Technologies and the fly likes doubt in  mock question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "doubt in  mock question" Watch "doubt in  mock question" New topic

doubt in mock question

Sandy Singh
Ranch Hand

Joined: Oct 19, 2004
Posts: 38
Q) What will a SOAP receiver do upon receiving SOAP message containing DTD

1)The SOAP receiver will process the DTD and will validate SOAP message against it.

2)The SOAP receiver will generate a fault with faultcode of "Client.DTD".

3)The SOAP receiver will ignore the DTD declaration and will process the SOAP message normally.

4)The SOAP receiver will do nothing.

I think answer is 2.What will be the answer if SOAP message contains PI instead of DTD.

while googing I can find only this text.But I am not able to find about this in specifications.
(i) SOAP messages MUST NOT include DTDs, and SOAP receivers
MUST fault if they encounter a DTD
(ii) SOAP messages SHOULD NOT include PIs, and SOAP
receivers MUST ignore any PIs they encounter
WG agreed without dissent to this proposal and to close issue 4
using it
Marc action to produce resolution text.

IBM 141- XML& related technologies<br />IBM 486-OOAD with UML<br />SCJP 1.4
subject: doubt in mock question
It's not a secret anymore!