Author: jim.ma
Date: 2010-03-30 12:25:37 -0400 (Tue, 30 Mar 2010)
New Revision: 11905
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/addressing/jaxws/WSAddressingClientHandler.java
Log:
[JBWS-2981]:Add <wsa:MessageID>
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/addressing/jaxws/WSAddressingClientHandler.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/addressing/jaxws/WSAddressingClientHandler.java 2010-03-30
14:27:02 UTC (rev 11904)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/addressing/jaxws/WSAddressingClientHandler.java 2010-03-30
16:25:37 UTC (rev 11905)
@@ -22,6 +22,7 @@
package org.jboss.ws.extensions.addressing.jaxws;
import org.jboss.logging.Logger;
+import org.jboss.ws.extensions.addressing.AddressingClientUtil;
import org.jboss.ws.extensions.addressing.AddressingConstantsImpl;
import org.jboss.ws.extensions.addressing.soap.SOAPAddressingPropertiesImpl;
import org.jboss.ws.metadata.umdm.ClientEndpointMetaData;
@@ -122,6 +123,13 @@
}
}
+ //Add optional messageID
+ if (addrProps.getMessageID() == null)
+ {
+ addrProps.setMessageID(AddressingClientUtil.createMessageID());
+ }
+
+
SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
addrProps.writeHeaders(soapMessage);
Show replies by date