• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

doubt with soap NS

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks.
But I came to know that all the immediate child of the header should be qualified.
 
roses are red, violets are blue. Some poems rhyme and some are a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic