Author: boisvert
Date: Wed May  2 07:03:10 2007
New Revision: 534469

URL: http://svn.apache.org/viewvc?view=rev&rev=534469
Log:
MessageContext options are different than client options

Modified:
    
incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java

Modified: 
incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java?view=diff&rev=534469&r1=534468&r2=534469
==============================================================================
--- 
incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java
 (original)
+++ 
incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java
 Wed May  2 07:03:10 2007
@@ -93,19 +93,19 @@
             // Override options are passed to the axis MessageContext so we can
             // retrieve them in our session out handler.
             MessageContext mctx = new MessageContext();
-            Options options = mctx.getOptions();
-            writeHeader(options, odeMex);
+            writeHeader(mctx.getOptions(), odeMex);
 
             _converter.createSoapRequest(mctx, 
odeMex.getRequest().getMessage(), odeMex.getOperation());
 
             SOAPEnvelope soapEnv = mctx.getEnvelope();
-
             EndpointReference axisEPR = new 
EndpointReference(((MutableEndpoint) odeMex.getEndpointReference())
                     .getUrl());
             if (__log.isDebugEnabled()) {
                 __log.debug("Axis2 sending message to " + axisEPR.getAddress() 
+ " using MEX " + odeMex);
                 __log.debug("Message: " + soapEnv);
             }
+
+            Options options = new Options();
             options.setTo(axisEPR);
             String soapAction = 
_converter.getSoapAction(odeMex.getOperationName());
             options.setAction(soapAction);


Reply via email to