summaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/util/client
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2014-03-03 16:54:37 +0100
committerThomas Lenz <thomas.lenz@egiz.gv.at>2014-03-03 16:54:37 +0100
commit269cee30ed94b35b9c774470e590c03f92186e8a (patch)
treed2a0ab982379626ba8f2c237dde2d8c84a80d554 /src/main/java/at/gv/util/client
parentdefceef8afef538555c13d33e344a89a828a3d97 (diff)
downloadegovutils-269cee30ed94b35b9c774470e590c03f92186e8a.tar.gz
egovutils-269cee30ed94b35b9c774470e590c03f92186e8a.tar.bz2
egovutils-269cee30ed94b35b9c774470e590c03f92186e8a.zip
update SZRGW client
update MIS-STORK client
Diffstat (limited to 'src/main/java/at/gv/util/client')
-rw-r--r--src/main/java/at/gv/util/client/szr/SZRSOAPHandler.java7
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) {