• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

One more question about SOAP

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i appreciate your help Svetlana!
thanks.
himal
 
machines help you to do more, but experience less. Experience this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic