diff options
Diffstat (limited to 'src/main/java/at/gv/util/client')
-rw-r--r-- | src/main/java/at/gv/util/client/szr/SZRSOAPHandler.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/at/gv/util/client/szr/SZRSOAPHandler.java b/src/main/java/at/gv/util/client/szr/SZRSOAPHandler.java index 05e5004..9ee672c 100644 --- a/src/main/java/at/gv/util/client/szr/SZRSOAPHandler.java +++ b/src/main/java/at/gv/util/client/szr/SZRSOAPHandler.java @@ -86,8 +86,11 @@ public class SZRSOAPHandler implements SOAPHandler<SOAPMessageContext> { // adding elements wsSecHeaderElm.addChildElement(pvpToken); - SOAPHeader header = envelope.addHeader(); - header.addChildElement(wsSecHeaderElm); + SOAPHeader header = envelope.getHeader(); + if (header == null) + header = envelope.addHeader(); + + header.addChildElement(wsSecHeaderElm); return true; } catch(SOAPException e) { |