I ran into a problem while reading nested headers with Spring WS
My header looked like
I do not find a standard way of retrieving the nested header elements using Spring SOAP API's. Well, i can get the source and unmarshal it. But i think i will be going a step back (since the message factory took the XML and converted it into SOAP Objects already and now i choose to go back to using the XML).
<tns:testHeader xmlns:tns="http://mycompany.com/schema/definitions/" >
Is this a limiation of Spring Soap API's that it can't deal with nested headers or am i missing something here? I noticed that XWSSSecurityInterceptor of spring ws takes in nested headers - how does this interceptor handle it? I checked the source code for XWSSSecurityInterceptor but i am unable to find this particular logic for nested headers.
Any inputs from the Spring experts would be nice