Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question: why the soap header must be the first child element of the Envelope element

 
Yang Jiao
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the SOAP specs, it says, "The SOAP Header is encoded as the first immediate child element of the SOAP envelope. "

Why the header must be the first child?

Is it because of SAX parser? So that the header can be processed before body?

Any other concerns?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would guess performance reasons. The body can be quite large, and if an intermediary only needs to process the header, then this convention ensures that it doesn't need to parse the whole request.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic