You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sc...@apache.org on 2009/06/17 20:31:50 UTC
svn commit: r785750 -
/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/util/MessageUtils.java
Author: scheu
Date: Wed Jun 17 18:31:50 2009
New Revision: 785750
URL: http://svn.apache.org/viewvc?rev=785750&view=rev
Log:
JIRA:AXIS2-4392
Contributor:Wendy Rascke
Summary:
Copy the SAAJ MIMEHeader SOAPAction value onto the Axis2 MessageContext
Modified:
webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/util/MessageUtils.java
Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/util/MessageUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/util/MessageUtils.java?rev=785750&r1=785749&r2=785750&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/util/MessageUtils.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/util/MessageUtils.java Wed Jun 17 18:31:50 2009
@@ -207,6 +207,16 @@
msgContext.setProperty(Constants.Configuration.CONTENT_TYPE, HTTPConstants.MEDIA_TYPE_APPLICATION_XML);
}
+ // Detect if a SOAPAction header is set as a Mime header in request message
+ String soapAction = (String) headerMap.get("SOAPAction");
+ if (soapAction != null) {
+ if (log.isDebugEnabled()) {
+ log.debug("Found SOAPAction as Mime header: " + soapAction);
+ }
+ // Set on MessageContext and it will be written out in request
+ msgContext.setSoapAction(soapAction);
+ }
+
// Make sure the the JAX-WS AttachmentAdapter is correctly installed
// So that any user attachments provide are moved to the Axiom Attachments
// Map