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).HTML Code:<SOAP-ENV:Header> <tns:testHeader xmlns:tns="http://mycompany.com/schema/definitions/" > <tns:businessTransaction> <tns:Transaction> <tns:TransactionName> </tns:TransactionName> <tns:StartTime> </tns:StartTime> <tns:stopTime> </tns:stopTime> </tns:Transaction> </tns:businessTransaction> </tns:testHeader> </SOAP-ENV:Header>
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


Reply With Quote