[teiid-commits] teiid SVN: r1508 - trunk/connectors/connector-xml/src/main/java/com/metamatrix/connector/xml/soap.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Wed Sep 30 14:47:21 EDT 2009


Author: jdoyle
Date: 2009-09-30 14:47:20 -0400 (Wed, 30 Sep 2009)
New Revision: 1508

Modified:
   trunk/connectors/connector-xml/src/main/java/com/metamatrix/connector/xml/soap/SOAPRequest.java
Log:
TEIID-865
Getting SoapAction from model.

Modified: trunk/connectors/connector-xml/src/main/java/com/metamatrix/connector/xml/soap/SOAPRequest.java
===================================================================
--- trunk/connectors/connector-xml/src/main/java/com/metamatrix/connector/xml/soap/SOAPRequest.java	2009-09-30 18:33:01 UTC (rev 1507)
+++ trunk/connectors/connector-xml/src/main/java/com/metamatrix/connector/xml/soap/SOAPRequest.java	2009-09-30 18:47:20 UTC (rev 1508)
@@ -72,6 +72,14 @@
                     Source.class, 
                     Service.Mode.PAYLOAD);
             
+            // I should be able to send no value here, but the dispatch throws an exception
+            // if soapAction == null.  We allow the default "" to get sent in that case.
+            // In SOAP 1.1 we must send a SoapAction.
+            String soapAction = (String)exeInfo.getOtherProperties().get("SOAPAction");
+            if(null != soapAction) {
+            	dispatch.getRequestContext().put(Dispatch.SOAPACTION_URI_PROPERTY, soapAction);
+            }
+            
             String requestDocument = xmlOutputter.outputString(doc);
             attemptConditionalLog(requestDocument);
             StringReader reader = new StringReader(requestDocument);



More information about the teiid-commits mailing list