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>
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
Joined: Apr 09, 2007
Thanks. But I came to know that all the immediate child of the header should be qualified.