• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

One more question about SOAP

 
Himal Chuli
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Svetlana Petrova
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i appreciate your help Svetlana!
thanks.
himal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic