| Author |
One more question about SOAP
|
Himal Chuli
Ranch Hand
Joined: Aug 06, 2002
Posts: 118
|
|
hi folk, what are the correct anwere for the following question? Q. Which of the following statements are the true statements about a SOAP message? a. All SOAP messages are encoded using XML. b. A SOAP message must not contain a DTD or processing instructions. c. A SOAP Message can be embedded in HTTP Request. d. SOAP messages are one-way transmissions from a sender to a receiver. Hence cannot be used in request/response type of information exchange. e. A SOAP message is an XML document that consists of a mandatory SOAP envelope, an mandatory SOAP header, and a optional SOAP body. f. A SOAP message is an XML document that consists of a mandatory SOAP envelope, an optional SOAP header, and a mandatory SOAP body. can you also provide reasonable explation to your answer? thank. himal
|
Himal
|
 |
Svetlana Petrova
Ranch Hand
Joined: Sep 26, 2002
Posts: 50
|
|
Hi Himal, Here are my answers: a. All SOAP messages are encoded using XML. - CORRECT; and it's obvious; all excerpts are from W3 TR SOAP (http://www.w3.org/TR/SOAP/); "3. Relation to XML All SOAP messages are encoded using XML."; b. A SOAP message must not contain a DTD or processing instructions. -CORRECT; "A SOAP message MUST NOT contain a Document Type Declaration. A SOAP message MUST NOT contain Processing Instructions. "; c. A SOAP Message can be embedded in HTTP Request. - CORRECT; see "6. Using SOAP in HTTP"; d. SOAP messages are one-way transmissions from a sender to a receiver. Hence cannot be used in request/response type of information exchange. - This one is tricky; the 1st statement is correct; but it doesn't mean that SOAP messages cannot be used to implement request/response opeartions; see excerpt below: "2. The SOAP Message Exchange Model SOAP messages are fundamentally one-way transmissions from a sender to a receiver, but as illustrated above, SOAP messages are often combined to implement patterns such as request/response." So I really don't know what to say: CORRECT or WRONG. What others think about this one? e. A SOAP message is an XML document that consists of a mandatory SOAP envelope, an mandatory SOAP header, and a optional SOAP body. - WRONG; "4. SOAP Envelope A SOAP message is an XML document that consists of a mandatory SOAP envelope, an optional SOAP header, and a mandatory SOAP body. " f. A SOAP message is an XML document that consists of a mandatory SOAP envelope, an optional SOAP header, and a mandatory SOAP body. - CORRECT; see excerpt above; Take care, Svetlana.
|
 |
Himal Chuli
Ranch Hand
Joined: Aug 06, 2002
Posts: 118
|
|
i appreciate your help Svetlana! thanks. himal
|
 |
 |
|
|
subject: One more question about SOAP
|
|
|