[seam-commits] Seam SVN: r15515 - branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/webservice.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Jun 3 09:20:50 EDT 2013
Author: manaRH
Date: 2013-06-03 09:20:49 -0400 (Mon, 03 Jun 2013)
New Revision: 15515
Modified:
branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/webservice/SOAPRequestHandler.java
Log:
JBSEAM-5104 added correct SOAP handling by adding missing header
Modified: branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/webservice/SOAPRequestHandler.java
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/webservice/SOAPRequestHandler.java 2013-06-03 13:20:40 UTC (rev 15514)
+++ branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/webservice/SOAPRequestHandler.java 2013-06-03 13:20:49 UTC (rev 15515)
@@ -106,20 +106,16 @@
SOAPMessageContext smc = (SOAPMessageContext) messageContext;
SOAPHeader header = smc.getMessage().getSOAPHeader();
- if (header != null)
+ if (header == null)
{
- SOAPElement element = header.addChildElement(CIDQN);
- element.addTextNode(conversationId);
- smc.getMessage().saveChanges();
- }
- else
- {
SOAPEnvelope envelope = smc.getMessage().getSOAPPart().getEnvelope();
- header = envelope.addHeader();
- SOAPElement element = header.addChildElement(CIDQN);
- element.addTextNode(conversationId);
- smc.getMessage().saveChanges();
+ header = envelope.addHeader();
}
+
+ SOAPElement element = header.addChildElement(CIDQN);
+ element.addTextNode(conversationId);
+ smc.getMessage().saveChanges();
+
}
Manager.instance().endRequest( new ServletRequestSessionMap(request) );
More information about the seam-commits
mailing list