synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r355981 - in /incubator/synapse/trunk/java/src: org/apache/synapse/axis2/Axis2FlexibleMEPClient.java org/apache/synapse/axis2/Axis2Sender.java samples/userguide/StockQuoteClient.java
Date Sun, 11 Dec 2005 17:21:32 GMT
Author: pzf
Date: Sun Dec 11 09:21:26 2005
New Revision: 355981

URL: http://svn.apache.org/viewcvs?rev=355981&view=rev
Log:
updated javadoc

Modified:
    incubator/synapse/trunk/java/src/org/apache/synapse/axis2/Axis2FlexibleMEPClient.java
    incubator/synapse/trunk/java/src/org/apache/synapse/axis2/Axis2Sender.java
    incubator/synapse/trunk/java/src/samples/userguide/StockQuoteClient.java

Modified: incubator/synapse/trunk/java/src/org/apache/synapse/axis2/Axis2FlexibleMEPClient.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/src/org/apache/synapse/axis2/Axis2FlexibleMEPClient.java?rev=355981&r1=355980&r2=355981&view=diff
==============================================================================
--- incubator/synapse/trunk/java/src/org/apache/synapse/axis2/Axis2FlexibleMEPClient.java
(original)
+++ incubator/synapse/trunk/java/src/org/apache/synapse/axis2/Axis2FlexibleMEPClient.java
Sun Dec 11 09:21:26 2005
@@ -39,6 +39,10 @@
 import javax.xml.namespace.QName;
 
 
+/**
+ * This is a simple client that handles both in only and in out
+ *
+ */
 public class Axis2FlexibleMEPClient {
 
     // wholesale cut and paste from axis2.clientapi.*

Modified: incubator/synapse/trunk/java/src/org/apache/synapse/axis2/Axis2Sender.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/src/org/apache/synapse/axis2/Axis2Sender.java?rev=355981&r1=355980&r2=355981&view=diff
==============================================================================
--- incubator/synapse/trunk/java/src/org/apache/synapse/axis2/Axis2Sender.java (original)
+++ incubator/synapse/trunk/java/src/org/apache/synapse/axis2/Axis2Sender.java Sun Dec 11
09:21:26 2005
@@ -18,13 +18,8 @@
 
 import org.apache.axis2.AxisFault;
 
-import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.context.MessageContext;
 
-import org.apache.axis2.context.OperationContextFactory;
-
-import org.apache.axis2.description.AxisOperation;
-import org.apache.axis2.description.AxisService;
 import org.apache.axis2.engine.AxisEngine;
 import org.apache.axis2.om.OMAbstractFactory;
 import org.apache.axis2.transport.http.HTTPConstants;
@@ -34,6 +29,10 @@
 import org.apache.synapse.SynapseEnvironment;
 
 
+/**
+ * This class helps the Axis2SynapseEnvironment implement the send method
+ *
+ */
 public class Axis2Sender {
 
     public static void sendOn(SynapseMessage smc, SynapseEnvironment se) {
@@ -42,9 +41,6 @@
 
             MessageContext messageContext = ((Axis2SynapseMessage) smc)
                     .getMessageContext();
-            AxisEngine ae = new AxisEngine(messageContext.getConfigurationContext());
-
-            ConfigurationContext sc = messageContext.getConfigurationContext();
 
             MessageContext outMsgContext = Axis2FlexibleMEPClient
                     .send(messageContext);
@@ -54,34 +50,20 @@
             outMsgContext.setServerSide(true);
 
             // deal with the fact that AddressingOutHandler has a bug if
-            // there
-            // is no header at all.
-            if (outMsgContext.getEnvelope().getHeader() == null)
+            // there is no header at all.        
+            // fixed in axis 0.9652 
+            if (outMsgContext.getEnvelope().getHeader() == null) {
                 outMsgContext.getEnvelope().getBody().insertSiblingBefore(
                         OMAbstractFactory.getSOAP11Factory()
                                 .getDefaultEnvelope().getHeader());
+            }
+            
             Object os = messageContext
                     .getProperty(MessageContext.TRANSPORT_OUT);
             outMsgContext.setProperty(MessageContext.TRANSPORT_OUT, os);
             Object ti = messageContext
                     .getProperty(HTTPConstants.HTTPOutTransportInfo);
             outMsgContext.setProperty(HTTPConstants.HTTPOutTransportInfo, ti);
-
-//            SynapseDispatcher sd = new SynapseDispatcher();
-//            sd.initDispatcher();
-//            AxisService synapseService = sd.findService(messageContext);
-//            AxisOperation synapseOperation = sd.findOperation(synapseService,
-//                    messageContext);
-//
-//            outMsgContext.setConfigurationContext(sc);
-//            outMsgContext.setAxisService(synapseService);
-//            outMsgContext.setAxisOperation(synapseOperation);
-//            outMsgContext.setOperationContext(OperationContextFactory
-//                    .createOperationContext(
-//                            OperationContextFactory.MEP_CONSTANT_OUT_ONLY,
-//                            synapseOperation));
-//
-//            ae.receive(outMsgContext);
             se.injectMessage(new Axis2SynapseMessage(outMsgContext));
 
         } catch (Exception e) {

Modified: incubator/synapse/trunk/java/src/samples/userguide/StockQuoteClient.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/src/samples/userguide/StockQuoteClient.java?rev=355981&r1=355980&r2=355981&view=diff
==============================================================================
--- incubator/synapse/trunk/java/src/samples/userguide/StockQuoteClient.java (original)
+++ incubator/synapse/trunk/java/src/samples/userguide/StockQuoteClient.java Sun Dec 11 09:21:26
2005
@@ -2,7 +2,7 @@
 
 import javax.xml.namespace.QName;
 
-import org.apache.axis2.Constants;
+
 import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.client.Call;
 import org.apache.axis2.client.Options;



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message