You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by sa...@apache.org on 2005/12/28 11:13:11 UTC

svn commit: r359466 - in /incubator/synapse/trunk/java: maven.xml project.properties project.xml scripts/ scripts/userguide/ scripts/userguide/README.txt scripts/userguide/build.xml src/org/apache/synapse/axis2/Axis2Sender.java

Author: saminda
Date: Wed Dec 28 02:12:56 2005
New Revision: 359466

URL: http://svn.apache.org/viewcvs?rev=359466&view=rev
Log:
Added "sample" folder to binary distribution and put all the userguide samples there. build.xml is given for the user 
to run the userguide samples. README.txt is there for instruction. 

Updated Axis2Sender. 


Added:
    incubator/synapse/trunk/java/scripts/
    incubator/synapse/trunk/java/scripts/userguide/
    incubator/synapse/trunk/java/scripts/userguide/README.txt
    incubator/synapse/trunk/java/scripts/userguide/build.xml
Modified:
    incubator/synapse/trunk/java/maven.xml
    incubator/synapse/trunk/java/project.properties
    incubator/synapse/trunk/java/project.xml
    incubator/synapse/trunk/java/src/org/apache/synapse/axis2/Axis2Sender.java

Modified: incubator/synapse/trunk/java/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/maven.xml?rev=359466&r1=359465&r2=359466&view=diff
==============================================================================
--- incubator/synapse/trunk/java/maven.xml (original)
+++ incubator/synapse/trunk/java/maven.xml Wed Dec 28 02:12:56 2005
@@ -184,7 +184,7 @@
         </jar>
 
         <copy file="target/DeprecationMediator.aar"
-              tofile="target/samples/DeprecationMediator.aar"/>
+              tofile="target/samples/sampleMediators/DeprecationMediator.aar"/>
 
         <!-- Deleteing helper stuff-->
 
@@ -286,6 +286,11 @@
                 <include name="**"/>
             </ant:fileset>
         </ant:copy>
+
+        <ant:copy file="scripts/userguide/build.xml"
+                  tofile="${bin.dist.dir}/samples/userguide/build.xml"/>
+        <ant:copy file="scripts/userguide/README.txt"
+                  tofile="${bin.dist.dir}/samples/userguide/README.txt"/>
 
         <ant:copy todir="${bin.dist.dir}/samples">
             <ant:fileset dir="target/samples/">

Modified: incubator/synapse/trunk/java/project.properties
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/project.properties?rev=359466&r1=359465&r2=359466&view=diff
==============================================================================
--- incubator/synapse/trunk/java/project.properties (original)
+++ incubator/synapse/trunk/java/project.properties Wed Dec 28 02:12:56 2005
@@ -64,4 +64,5 @@
 xmlunit.version=1.0
 annogen.version=0.1.0
 ws_policy.version=SNAPSHOT
+geronimo.spec.jms.version=1.1-rc4
 

Modified: incubator/synapse/trunk/java/project.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/project.xml?rev=359466&r1=359465&r2=359466&view=diff
==============================================================================
--- incubator/synapse/trunk/java/project.xml (original)
+++ incubator/synapse/trunk/java/project.xml Wed Dec 28 02:12:56 2005
@@ -193,6 +193,14 @@
             </properties>
         </dependency>
         <dependency>
+            <groupId>geronimo-spec</groupId>
+            <artifactId>geronimo-spec-jms</artifactId>
+            <version>${geronimo.spec.jms.version}</version>
+            <properties>
+                <module>true</module>
+            </properties>
+        </dependency>
+        <dependency>
             <groupId>xmlbeans</groupId>
             <artifactId>xbean</artifactId>
             <version>${xbean.version}</version>
@@ -304,14 +312,14 @@
                 <!--<exclude>**/AddressingInProcessorTest.java</exclude>-->
             <!--</excludes>-->
         </unitTest>
-        <resources>
-            <resource>
-                <directory>config</directory>
-                <includes>
-                    <include>*.xml</include>
-                </includes>
-            </resource>
-        </resources>
+        <!--<resources>-->
+            <!--<resource>-->
+                <!--<directory>config</directory>-->
+                <!--<includes>-->
+                    <!--<include>*.xml</include>-->
+                <!--</includes>-->
+            <!--</resource>-->
+        <!--</resources>-->
 
     </build>
 

Added: incubator/synapse/trunk/java/scripts/userguide/README.txt
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/scripts/userguide/README.txt?rev=359466&view=auto
==============================================================================
--- incubator/synapse/trunk/java/scripts/userguide/README.txt (added)
+++ incubator/synapse/trunk/java/scripts/userguide/README.txt Wed Dec 28 02:12:56 2005
@@ -0,0 +1,17 @@
+Running StockQuoteClient
+
+This README contains the details on running the prior sample with Ant. Following lines exactly map with the User guide instructions of running Samples. 
+
+First the user has to start the Simple Synapse Server. User has to type the following commond on-line
+
+ant synapse
+
+The above will start Synapse as a server on port 8080.
+
+Using the following combinations, User will be able to run the prior sample as stated in User guide. 
+
+1.ant -Darg1=IBM -Darg2=http://64.124.140.30:9090/soap -Darg3=http://localhost:8080
+2.ant -Darg1=IBM -Darg2=http://64.124.140.30:9090/soap -Darg3=http://64.124.140.30:9090/soap
+3.ant 
+4.ant -Darg1=IBM -Darg2=urn:xmethods-delayed-quotes
+5.ant -Darg1=MSFT 

Added: incubator/synapse/trunk/java/scripts/userguide/build.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/scripts/userguide/build.xml?rev=359466&view=auto
==============================================================================
--- incubator/synapse/trunk/java/scripts/userguide/build.xml (added)
+++ incubator/synapse/trunk/java/scripts/userguide/build.xml Wed Dec 28 02:12:56 2005
@@ -0,0 +1,29 @@
+<project name="samples" default="StockQuoteClient">
+    <property name="arg1" value="IBM"/>
+    <property name="arg2" value="http://64.124.140.30:9090/soap"/>
+    <property name="arg3" value="http://localhost:8080"/>
+
+    <path id="axis.classpath">
+        <fileset dir="../../lib">
+            <include name="*.jar"/>
+        </fileset>
+        <pathelement location="sample_userguide.jar"/>
+    </path>
+
+    <target name="StockQuoteClient">
+        <java classname="samples.userguide.StockQuoteClient"
+              classpathref="axis.classpath" fork="true">
+            <arg value="${arg1}"/>
+            <arg value="${arg2}"/>
+            <arg value="${arg3}"/>
+        </java>
+    </target>
+
+    <target name="synapse">
+        <java classname="org.apache.axis2.transport.http.SimpleHTTPServer"
+              classpathref="axis.classpath" fork="true">
+            <arg value="../../synapse_repository"/>
+            <arg value="8080"/>
+        </java>
+    </target>
+</project>

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=359466&r1=359465&r2=359466&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 Wed Dec 28 02:12:56 2005
@@ -20,6 +20,7 @@
 import org.apache.axis2.soap.SOAPEnvelope;
 import org.apache.axis2.soap.SOAP12Constants;
 import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.soap.SOAP11Constants;
 
 import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.context.ConfigurationContext;
@@ -97,6 +98,13 @@
                 Iterator iterator = envelope.getAllDeclaredNamespaces();
                 while (iterator.hasNext()) {
                     OMNamespace namespace = (OMNamespace) iterator.next();
+                    if (namespace.getName()
+                            .equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI) ||
+                            namespace.getName()
+                                    .equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI))
+                    {
+                        continue;
+                    }
                     newEnvelope.declareNamespace(namespace);
                 }
                 newEnvelope.getBody()



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