Can't get elements from SOAPHeader correctly
So I have this SOAP message:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<pid:pid xmlns:pid="pt:ulisboa:tecnico:sdis:store:ws">carla</pid:pid> </SOAP-ENV:Header> <S:Body><ns2:
loadResponse xmlns:ns2="urn:pt:ulisboa:tecnico:sdis:store:ws"/></S:Body>
</S:Envelope>
So you see pid = "carla"
But when I get all the attributes:
Iterator iter = hd.extractAllHeaderElements();
while(iter.hasNext()){
System.out.println(iter.next());
}
All it prints is:
[pid:pid: null]
Any ideas why this isn't "carla"?
I do all this processing in handlers.
+3
source to share
No one has answered this question yet
Check out similar questions: