• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt with soap NS

 
sita raman subra
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I had a doubt regarding the NS applied to SOAP elements.I studied in MH that all the elemnt ,local elemnets & attributes of the SOAP must be fully qualified.But when I went through some other notes they mentioned that application specific element in body may be qualified.

So please confirm me the below things.

1) soap msg with all elements fully qualified
<soap:Envelope xmlns:soap="......../soap/envelope">
<soap:Header xmlns:hi=".........">
<hi:log xmlns:hii=".........">
<hii:logger>.......</hii:logger>
</hi:log>
</soap:Header>
<soap:Body xmlns:bo=".........">
<bo:calc xmlns:boo=".........">
<boo:add>.......</boo:add>
</bo:calc>
</soap:Body>
</soap:Envelope>


2) soap elements with application specific local elements not qualified
<soap:Envelope xmlns:soap="......../soap/envelope">
<soap:Header xmlns:hi=".........">
<hi:log>
<logger>.......</logger>
</hi:log>
</soap:Header>
<soap:Body xmlns:bo=".........">
<bo:calc>
<add>.......</add>
</bo:calc>
</soap:Body>
</soap:Envelope>

3)Only soap elements qualified.
<soap:Envelope xmlns:soap="......../soap/envelope">
<soap:Header >
<log>
<logger>.......</logger>
</log>
</soap:Header>
<soap:Body >
<calc>
<add>.......</add>
</calc>
</soap:Body>
</soap:Envelope>


Could you please let me know which one of he above is must and which is optiona.Also please let me know any other option.

Thanks & Regards,
sitaraman
 
Sundar Murthi
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only SOAP standard element should be qualified elements. Other local element can be optional.

For instance Envelop, Header, Body and fault element must be soap namespcae qualified. namespace for content of Header Body and fault are optional. Element with no namespace prefix are qualified with defaultnamespace.

In your sample all 3 are valid.
 
sita raman subra
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
But I came to know that all the immediate child of the header should be qualified.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic