Hi,
I nearly spent a whole day on the behaviour of the method getHeaderByName...
If i put a HeaderElement with an explicit actor (http://login_handler.ct.siemens.com) in the header by an own handler,
the invocation of the method
envelope.getHeaderByName("http://www.siemens.com/smartliving/interactionmanager/authentification","user")
In another handler returns null. Although my Header looks like this:
<soapenv:Header>
<auth:user soapenv:actor="http://login_handler.ct.siemens.com" soapenv:mustUnderstand="0" xsi:type="soapenc:string" xmlns:auth="http://www.siemens.com/smartliving/interactionmanager/authentification" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">andi</auth:user>
…
But if i leave out the setting of the actor-attribute, the header looks like
<soapenv:Header>
<auth:user soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="soapenc:string" xmlns:auth="http://www.siemens.com/smartliving/interactionmanager/authentification" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">andi</auth:user>
…
and now the invocation of the same method
envelope.getHeaderByName("http://www.siemens.com/smartliving/interactionmanager/authentification","user")
doesn´t return null?! So without setting the actor attribute this method works fine, but otherwise it doesn`t.
Anyway, i want to use explicit actor attributes.
Can someone tell me the way i can use both, explict actor attributes and invoking the method getHeaderByName?
Thanks in advance!
Andi
