synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asan...@apache.org
Subject svn commit: r521116 - in /webservices/synapse/trunk/java/modules: nhttp/src/org/apache/axis2/transport/nhttp/ClientWorker.java samples/src/main/scripts/axis2server.sh
Date Thu, 22 Mar 2007 04:44:23 GMT
Author: asankha
Date: Wed Mar 21 21:44:21 2007
New Revision: 521116

URL: http://svn.apache.org/viewvc?view=rev&rev=521116
Log:
allow sample axis2 server a -xdebug option
fix SYNAPSE-71

Modified:
    webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/ClientWorker.java
    webservices/synapse/trunk/java/modules/samples/src/main/scripts/axis2server.sh

Modified: webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/ClientWorker.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/ClientWorker.java?view=diff&rev=521116&r1=521115&r2=521116
==============================================================================
--- webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/ClientWorker.java
(original)
+++ webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/ClientWorker.java
Wed Mar 21 21:44:21 2007
@@ -30,6 +30,7 @@
 import org.apache.commons.logging.LogFactory;
 import org.apache.http.HttpResponse;
 import org.apache.http.Header;
+import org.apache.http.protocol.HTTP;
 
 import javax.xml.stream.XMLStreamException;
 import java.io.InputStream;
@@ -119,7 +120,7 @@
             envelope = TransportUtils.createSOAPMessage(
                 responseMsgCtx,
                 in,
-                outMsgCtx.getEnvelope().getNamespace().getNamespaceURI());
+                response.getFirstHeader(HTTP.CONTENT_TYPE).getValue());
             responseMsgCtx.setEnvelope(envelope);
 
         } catch (AxisFault af) {

Modified: webservices/synapse/trunk/java/modules/samples/src/main/scripts/axis2server.sh
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/main/scripts/axis2server.sh?view=diff&rev=521116&r1=521115&r2=521116
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/main/scripts/axis2server.sh (original)
+++ webservices/synapse/trunk/java/modules/samples/src/main/scripts/axis2server.sh Wed Mar
21 21:44:21 2007
@@ -107,5 +107,18 @@
   PORT="-Dport=$2"
 fi
 
-java $PORT -Djava.endorsed.dirs=$AXIS2_ENDORSED -classpath $AXIS2_CLASSPATH samples.util.SampleAxis2Server
\
--repo $AXIS2_HOME/repository -conf $AXIS2_HOME/repository/conf/axis2.xml
+if [ "$3" = "-port" ]; then
+  PORT="-Dport=$4"
+fi
+
+if [ "$1" = "-xdebug" ]; then
+  XDEBUG="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000"
+fi
+
+if [ "$3" = "-xdebug" ]; then
+  XDEBUG="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000"
+fi
+
+
+java $PORT $XDEBUG -Djava.endorsed.dirs=$AXIS2_ENDORSED -classpath $AXIS2_CLASSPATH samples.util.SampleAxis2Server
\
+-repo $AXIS2_HOME/repository -conf $AXIS2_HOME/repository/conf/axis2.xml
\ No newline at end of file



---------------------------------------------------------------------
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