axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r639868 - in /webservices/axis2/trunk/java/modules/samples/jaxws-samples: pom.xml src/main/org/apache/axis2/jaxws/samples/servlet/EchoPingSampleServlet.java src/webapp/WEB-INF/axis2.xml
Date Fri, 21 Mar 2008 21:38:41 GMT
Author: dims
Date: Fri Mar 21 14:38:34 2008
New Revision: 639868

URL: http://svn.apache.org/viewvc?rev=639868&view=rev
Log:
add addressing mar, switch port numbers, set the ClientConfigurationFactory - Part of fix
for AXIS2-3647

Modified:
    webservices/axis2/trunk/java/modules/samples/jaxws-samples/pom.xml
    webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/servlet/EchoPingSampleServlet.java
    webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/axis2.xml

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-samples/pom.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/pom.xml?rev=639868&r1=639867&r2=639868&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/pom.xml (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/pom.xml Fri Mar 21 14:38:34
2008
@@ -54,6 +54,12 @@
             <version>SNAPSHOT</version>
         </dependency>
         <dependency>
+            <groupId>org.apache.axis2</groupId>
+            <artifactId>addressing</artifactId>
+            <version>SNAPSHOT</version>
+            <type>mar</type>
+        </dependency>
+        <dependency>
             <groupId>org.apache.ws.commons.axiom</groupId>
             <artifactId>axiom-api</artifactId>
             <version>SNAPSHOT</version>
@@ -223,6 +229,19 @@
                 <configuration>
                     <warName>jaxws-samples</warName>
                     <warSourceDirectory>${basedir}/src/webapp</warSourceDirectory>
+                    <archive>
+                        <addMavenDescriptor>false</addMavenDescriptor>
+                    </archive>
+                    <webResources>
+                        <!-- Need a better war to add the MAR -->
+                        <resource>
+                            <directory>${basedir}/../../addressing/target</directory>
+                            <targetPath>WEB-INF/lib</targetPath>
+                            <includes>
+                                <include>addressing*.mar</include>
+                            </includes>
+                        </resource>
+                    </webResources>
                 </configuration>
             </plugin>
         </plugins>

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/servlet/EchoPingSampleServlet.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/servlet/EchoPingSampleServlet.java?rev=639868&r1=639867&r2=639868&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/servlet/EchoPingSampleServlet.java
(original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/main/org/apache/axis2/jaxws/samples/servlet/EchoPingSampleServlet.java
Fri Mar 21 14:38:34 2008
@@ -19,6 +19,8 @@
 package org.apache.axis2.jaxws.samples.servlet;
 
 import org.apache.axis2.jaxws.samples.client.SampleClient;
+import org.apache.axis2.jaxws.ClientConfigurationFactory;
+import org.apache.axis2.metadata.registry.MetadataFactoryRegistry;
 
 import javax.servlet.Servlet;
 import javax.servlet.ServletContext;
@@ -48,6 +50,7 @@
     private String uriString = "";
     private String soapString = "";
     private int count = 1;
+    private ClientConfigurationFactory factory = null;
 
     public EchoPingSampleServlet() {
         super();
@@ -68,6 +71,12 @@
      */
     private void processRequest(HttpServletRequest req, HttpServletResponse resp)
             throws ServletException, IOException {
+        
+        if(factory == null) {
+            String path = getServletConfig().getServletContext().getRealPath("/WEB-INF/axis2.xml");
+            factory = new ClientConfigurationFactory(null, path);
+            MetadataFactoryRegistry.setFactory(ClientConfigurationFactory.class, factory);
+        }
 
         ServletContext context = getServletContext();
         String msgString = req.getParameter("msgstring");

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/axis2.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/axis2.xml?rev=639868&r1=639867&r2=639868&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/axis2.xml
(original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-samples/src/webapp/WEB-INF/axis2.xml
Fri Mar 21 14:38:34 2008
@@ -187,7 +187,7 @@
     <!-- ================================================= -->
     <transportReceiver name="http"
                        class="org.apache.axis2.transport.http.SimpleHTTPServer">
-        <parameter name="port">8080</parameter>
+        <parameter name="port">6060</parameter>
         <!-- Here is the complete list of supported parameters (see example settings further
below):
             port: the port to listen on (default 6060)
             hostname:  if non-null, url prefix used in reply-to endpoint references     
                           (default null)
@@ -365,7 +365,7 @@
     <!-- Global Modules  -->
     <!-- ================================================= -->
     <!-- Comment this to disable Addressing -->
-    <!--<module ref="addressing"/>-->
+    <module ref="addressing"/>
 
     <!--Configuring module , providing parameters for modules whether they refer or not-->
     <!--<moduleConfig name="addressing">-->



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


Mime
View raw message