Author: veithen
Date: Sun Nov 18 12:12:31 2012
New Revision: 1410880

URL: http://svn.apache.org/viewvc?rev=1410880&view=rev
Log:
Added some rudimentary tests to validate that we stay compatible with Spring's 
JAX-RPC remoting support.

Added:
    axis/axis1/java/trunk/tests/spring-compat-tests/   (with props)
    axis/axis1/java/trunk/tests/spring-compat-tests/pom.xml   (with props)
    axis/axis1/java/trunk/tests/spring-compat-tests/src/
    axis/axis1/java/trunk/tests/spring-compat-tests/src/main/
    axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/
    axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/
    axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderEndpoint.java
   (with props)
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManager.java
   (with props)
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManagerBean.java
   (with props)
    axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/
    axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/applicationContext.xml
   (with props)
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/server-config.wsdd
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/web.xml 
  (with props)
    axis/axis1/java/trunk/tests/spring-compat-tests/src/main/wsdl/
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/wsdl/OrderService.wsdl
    axis/axis1/java/trunk/tests/spring-compat-tests/src/test/
    axis/axis1/java/trunk/tests/spring-compat-tests/src/test/java/
    axis/axis1/java/trunk/tests/spring-compat-tests/src/test/java/org/
    axis/axis1/java/trunk/tests/spring-compat-tests/src/test/java/org/apache/
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/java/org/apache/axis/
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/java/org/apache/axis/test/
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/java/org/apache/axis/test/spring/
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/java/org/apache/axis/test/spring/RemotingITCase.java
   (with props)
    axis/axis1/java/trunk/tests/spring-compat-tests/src/test/resources/
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/resources/context.properties
    
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/resources/context.xml  
 (with props)
Modified:
    axis/axis1/java/trunk/tests/pom.xml

Modified: axis/axis1/java/trunk/tests/pom.xml
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/tests/pom.xml?rev=1410880&r1=1410879&r2=1410880&view=diff
==============================================================================
--- axis/axis1/java/trunk/tests/pom.xml (original)
+++ axis/axis1/java/trunk/tests/pom.xml Sun Nov 18 12:12:31 2012
@@ -33,6 +33,7 @@
     </description>
     <modules>
         <module>interop-tests</module>
+        <module>spring-compat-tests</module>
     </modules>
     <build>
         <plugins>

Propchange: axis/axis1/java/trunk/tests/spring-compat-tests/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun Nov 18 12:12:31 2012
@@ -0,0 +1,4 @@
+.classpath
+.project
+target
+.settings

Added: axis/axis1/java/trunk/tests/spring-compat-tests/pom.xml
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/tests/spring-compat-tests/pom.xml?rev=1410880&view=auto
==============================================================================
--- axis/axis1/java/trunk/tests/spring-compat-tests/pom.xml (added)
+++ axis/axis1/java/trunk/tests/spring-compat-tests/pom.xml Sun Nov 18 12:12:31 
2012
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License. You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied. See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.axis</groupId>
+        <artifactId>tests</artifactId>
+        <version>1.4.1-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <artifactId>spring-compat-tests</artifactId>
+    <name>Spring Compatibility Tests</name>
+    <description>
+        Contains a set of tests that check that Axis remains compatible with 
Spring (remoting).
+    </description>
+    <properties>
+        <javaVersion>1.5</javaVersion>
+    </properties>
+    <dependencies>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>axis-rt-core</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-remoting</artifactId>
+            <version>2.0.8</version>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>${project.groupId}</groupId>
+                <artifactId>maven-wsdl2java-plugin</artifactId>
+                <version>${project.version}</version>
+                <executions>
+                    <execution>
+                        <id>samples-addr</id>
+                        <goals>
+                            <goal>generate-sources</goal>
+                        </goals>
+                        <configuration>
+                            <file>src/main/wsdl/OrderService.wsdl</file>
+                            <generate>both</generate>
+                            <deployScope>application</deployScope>
+                            
<implementationClassName>org.apache.axis.test.spring.OrderEndpoint</implementationClassName>
+                            
<writeStubToTestSources>true</writeStubToTestSources>
+                            <!-- TODO: need to merge the output into 
server-config.wsdd -->
+                            
<deployWsdd>${project.build.directory}/wsdd/OrderService.wsdd</deployWsdd>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>reserve-network-port</id>
+                        <goals>
+                            <goal>reserve-network-port</goal>
+                        </goals>
+                        <phase>pre-integration-test</phase>
+                        <configuration>
+                            <portNames>
+                                <portName>jetty.stopPort</portName>
+                                <portName>test.httpPort</portName>
+                            </portNames>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <configuration>
+                    <stopKey>foo</stopKey>
+                    <stopPort>${jetty.stopPort}</stopPort>
+                    <connectors>
+                        <connector 
implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
+                            <port>${test.httpPort}</port>
+                        </connector>
+                    </connectors>
+                </configuration>
+                <executions>
+                    <execution>
+                        <id>start-jetty</id>
+                        <phase>pre-integration-test</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <daemon>true</daemon>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>stop-jetty</id>
+                        <phase>post-integration-test</phase>
+                        <goals>
+                            <goal>stop</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>maven-failsafe-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>integration-test</goal>
+                            <goal>verify</goal>
+                        </goals>
+                        <configuration>
+                            <systemPropertyVariables>
+                                <test.httpPort>${test.httpPort}</test.httpPort>
+                            </systemPropertyVariables>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Propchange: axis/axis1/java/trunk/tests/spring-compat-tests/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderEndpoint.java
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderEndpoint.java?rev=1410880&view=auto
==============================================================================
--- 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderEndpoint.java
 (added)
+++ 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderEndpoint.java
 Sun Nov 18 12:12:31 2012
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.test.spring;
+
+import java.rmi.RemoteException;
+
+import org.springframework.remoting.jaxrpc.ServletEndpointSupport;
+
+public class OrderEndpoint extends ServletEndpointSupport implements 
OrderManagerPortType {
+    private OrderManager orderManager;
+    
+    protected void onInit() {
+        orderManager = 
(OrderManager)getWebApplicationContext().getBean("orderManager");
+    }
+ 
+    public String submitOrder(Order order) throws RemoteException {
+        return orderManager.submitOrder(order);
+    }
+
+    public Order getOrder(String orderID) throws RemoteException {
+        return orderManager.getOrder(orderID);
+    }
+}

Propchange: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderEndpoint.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManager.java
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManager.java?rev=1410880&view=auto
==============================================================================
--- 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManager.java
 (added)
+++ 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManager.java
 Sun Nov 18 12:12:31 2012
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.test.spring;
+
+public interface OrderManager {
+    String submitOrder(Order order);
+    Order getOrder(String orderID);
+}

Propchange: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManagerBean.java
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManagerBean.java?rev=1410880&view=auto
==============================================================================
--- 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManagerBean.java
 (added)
+++ 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManagerBean.java
 Sun Nov 18 12:12:31 2012
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.test.spring;
+
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.concurrent.atomic.AtomicInteger;
+
+public class OrderManagerBean implements OrderManager {
+    private final AtomicInteger orderIDSeq = new AtomicInteger(10000);
+    private final Map<String,Order> orders = Collections.synchronizedMap(new 
HashMap<String,Order>());
+    
+    public String submitOrder(Order order) {
+        String orderID = String.valueOf(orderIDSeq.incrementAndGet());
+        orders.put(orderID, order);
+        return orderID;
+    }
+
+    public Order getOrder(String orderID) {
+        return (Order)orders.get(orderID);
+    }
+}

Propchange: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/java/org/apache/axis/test/spring/OrderManagerBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/applicationContext.xml
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/applicationContext.xml?rev=1410880&view=auto
==============================================================================
--- 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/applicationContext.xml
 (added)
+++ 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/applicationContext.xml
 Sun Nov 18 12:12:31 2012
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License. You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied. See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<beans xmlns="http://www.springframework.org/schema/beans";
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
+    <bean id="orderManager" 
class="org.apache.axis.test.spring.OrderManagerBean"/>
+</beans>
+  
\ No newline at end of file

Propchange: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/applicationContext.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/server-config.wsdd
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/server-config.wsdd?rev=1410880&view=auto
==============================================================================
--- 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/server-config.wsdd
 (added)
+++ 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/server-config.wsdd
 Sun Nov 18 12:12:31 2012
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment name="defaultClientConfig"
+            xmlns="http://xml.apache.org/axis/wsdd/";
+            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";
+            xmlns:handler="http://xml.apache.org/axis/wsdd/providers/handler";>
+
+ <globalConfiguration>
+   <parameter name="disablePrettyXML" value="true"/>
+   <parameter name="dotNetSoapEncFix" value="true"/>
+   <parameter name="enableNamespacePrefixOptimization" value="false"/>
+   <requestFlow>
+     <!-- uncomment this if you want JWS support -->
+     <!--
+     <handler type="java:org.apache.axis.handlers.JWSHandler">
+        <parameter name="scope" value="session"/>
+     </handler>
+     <handler type="java:org.apache.axis.handlers.JWSHandler">
+        <parameter name="scope" value="request"/>
+        <parameter name="extension" value=".jwr"/>
+     </handler>
+     -->
+     <!-- uncomment this if you want the SOAP monitor -->
+     <!--
+     <handler type="java:org.apache.axis.handlers.SOAPMonitorHandler"/>
+     -->
+   </requestFlow>
+   <!-- uncomment this if you want the SOAP monitor -->
+   <!--
+   <responseFlow>
+     <handler type="java:org.apache.axis.handlers.SOAPMonitorHandler"/>
+   </responseFlow>
+   -->
+ </globalConfiguration>
+
+ <handler type="java:org.apache.axis.handlers.http.URLMapper" 
name="URLMapper"/>
+ <handler type="java:org.apache.axis.transport.local.LocalResponder" 
name="LocalResponder"/>
+ <handler type="java:org.apache.axis.handlers.SimpleAuthenticationHandler" 
name="Authenticate"/>
+
+ <service name="AdminService" provider="java:MSG">
+  <namespace>http://xml.apache.org/axis/wsdd/</namespace>
+  <parameter name="allowedMethods" value="AdminService"/>
+  <parameter name="enableRemoteAdmin" value="false"/>
+  <parameter name="className" value="org.apache.axis.utils.Admin"/>
+ </service>
+
+ <service name="Version" provider="java:RPC">
+  <parameter name="allowedMethods" value="getVersion"/>
+  <parameter name="className" value="org.apache.axis.Version"/>
+ </service>
+
+ <transport name="http">
+  <parameter name="qs:list" 
+               value="org.apache.axis.transport.http.QSListHandler"/>
+  <parameter name="qs:method" 
+               value="org.apache.axis.transport.http.QSMethodHandler"/>
+  <parameter name="qs:wsdl" 
+               value="org.apache.axis.transport.http.QSWSDLHandler"/>
+  <requestFlow>
+   <handler type="URLMapper"/>
+   <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
+  </requestFlow>
+ </transport>
+
+ <transport name="local">
+  <responseFlow>
+   <handler type="LocalResponder"/>
+  </responseFlow>
+ </transport>
+
+  <service name="OrderServiceSOAP" provider="java:RPC" style="wrapped" 
use="literal">
+      <parameter name="wsdlTargetNamespace" 
value="http://axis.apache.org/test/spring"/>
+      <parameter name="wsdlServiceElement" value="OrderService"/>
+      <parameter name="schemaUnqualified" 
value="http://axis.apache.org/test/spring"/>
+      <parameter name="wsdlServicePort" value="OrderServiceSOAP"/>
+      <parameter name="className" 
value="org.apache.axis.test.spring.OrderEndpoint"/>
+      <parameter name="wsdlPortType" value="OrderManagerPortType"/>
+      <parameter name="typeMappingVersion" value="1.2"/>
+      <operation name="submitOrder" qname="operNS:SubmitOrder" 
xmlns:operNS="http://axis.apache.org/test/spring"; returnQName="OrderID" 
returnType="rtns:string" xmlns:rtns="http://www.w3.org/2001/XMLSchema"; 
soapAction="http://axis.apache.org/test/spring/SubmitOrder"; >
+        <parameter qname="Order" type="tns:Order" 
xmlns:tns="http://axis.apache.org/test/spring"/>
+      </operation>
+      <operation name="getOrder" qname="operNS:GetOrder" 
xmlns:operNS="http://axis.apache.org/test/spring"; returnQName="Order" 
returnType="rtns:Order" xmlns:rtns="http://axis.apache.org/test/spring"; 
soapAction="http://axis.apache.org/test/spring/GetOrder"; >
+        <parameter qname="OrderID" type="tns:string" 
xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
+      </operation>
+      <parameter name="allowedMethods" value="submitOrder getOrder"/>
+      <parameter name="scope" value="Application"/>
+
+      <typeMapping
+        xmlns:ns="http://axis.apache.org/test/spring";
+        qname="ns:Order"
+        type="java:org.apache.axis.test.spring.Order"
+        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
+        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
+        encodingStyle=""
+      />
+      <typeMapping
+        xmlns:ns="http://axis.apache.org/test/spring";
+        qname="ns:OrderItem"
+        type="java:org.apache.axis.test.spring.OrderItem"
+        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
+        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
+        encodingStyle=""
+      />
+  </service>
+</deployment>

Added: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/web.xml?rev=1410880&view=auto
==============================================================================
--- 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/web.xml 
(added)
+++ 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/web.xml 
Sun Nov 18 12:12:31 2012
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License. You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied. See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
+    <listener>
+        
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
+    </listener>
+    <servlet>
+        <servlet-name>axis</servlet-name>
+        
<servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+    <servlet-mapping>
+        <servlet-name>axis</servlet-name>
+        <url-pattern>/axis/*</url-pattern>
+    </servlet-mapping>
+</web-app>

Propchange: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/wsdl/OrderService.wsdl
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/tests/spring-compat-tests/src/main/wsdl/OrderService.wsdl?rev=1410880&view=auto
==============================================================================
--- 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/wsdl/OrderService.wsdl 
(added)
+++ 
axis/axis1/java/trunk/tests/spring-compat-tests/src/main/wsdl/OrderService.wsdl 
Sun Nov 18 12:12:31 2012
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License. You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied. See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
+                  xmlns:tns="http://axis.apache.org/test/spring";
+                  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
+                  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+                  name="OrderService"
+                  targetNamespace="http://axis.apache.org/test/spring";>
+  <wsdl:types>
+    <xsd:schema targetNamespace="http://axis.apache.org/test/spring";>
+      <xsd:element name="SubmitOrder">
+        <xsd:complexType>
+          <xsd:sequence>
+            <xsd:element name="Order" type="tns:Order"/>
+          </xsd:sequence>
+        </xsd:complexType>
+      </xsd:element>
+      <xsd:element name="SubmitOrderResponse">
+        <xsd:complexType>
+          <xsd:sequence>
+            <xsd:element name="OrderID" type="xsd:string"/>
+          </xsd:sequence>
+        </xsd:complexType>
+      </xsd:element>
+      <xsd:element name="GetOrder">
+        <xsd:complexType>
+          <xsd:sequence>
+            <xsd:element name="OrderID" type="xsd:string"/>
+          </xsd:sequence>
+        </xsd:complexType>
+      </xsd:element>
+      <xsd:element name="GetOrderResponse">
+        <xsd:complexType>
+          <xsd:sequence>
+            <xsd:element name="Order" type="tns:Order"/>
+          </xsd:sequence>
+        </xsd:complexType>
+      </xsd:element>
+      <xsd:complexType name="Order">
+        <xsd:sequence>
+          <xsd:element name="CustomerID" type="xsd:string"/>
+          <xsd:element name="Item" type="tns:OrderItem" minOccurs="0" 
maxOccurs="unbounded"/>
+        </xsd:sequence>
+      </xsd:complexType>
+      <xsd:complexType name="OrderItem">
+        <xsd:sequence>
+          <xsd:element name="ProductID" type="xsd:string"/>
+          <xsd:element name="Quantity" type="xsd:int"/>
+        </xsd:sequence>
+      </xsd:complexType>
+    </xsd:schema>
+  </wsdl:types>
+  <wsdl:message name="SubmitOrderRequest">
+    <wsdl:part element="tns:SubmitOrder" name="parameters"/>
+  </wsdl:message>
+  <wsdl:message name="SubmitOrderResponse">
+    <wsdl:part element="tns:SubmitOrderResponse" name="parameters"/>
+  </wsdl:message>
+  <wsdl:message name="GetOrderRequest">
+    <wsdl:part element="tns:GetOrder" name="parameters"/>
+  </wsdl:message>
+  <wsdl:message name="GetOrderResponse">
+    <wsdl:part element="tns:GetOrderResponse" name="parameters"/>
+  </wsdl:message>
+  <wsdl:portType name="OrderManagerPortType">
+    <wsdl:operation name="SubmitOrder">
+      <wsdl:input message="tns:SubmitOrderRequest"/>
+      <wsdl:output message="tns:SubmitOrderResponse"/>
+    </wsdl:operation>
+    <wsdl:operation name="GetOrder">
+      <wsdl:input message="tns:GetOrderRequest"/>
+      <wsdl:output message="tns:GetOrderResponse"/>
+    </wsdl:operation>
+  </wsdl:portType>
+  <wsdl:binding name="OrderManagerSOAP" type="tns:OrderManagerPortType">
+    <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+    <wsdl:operation name="SubmitOrder">
+      <soap:operation 
soapAction="http://axis.apache.org/test/spring/SubmitOrder"/>
+      <wsdl:input>
+        <soap:body use="literal"/>
+      </wsdl:input>
+      <wsdl:output>
+        <soap:body use="literal"/>
+      </wsdl:output>
+    </wsdl:operation>
+    <wsdl:operation name="GetOrder">
+      <soap:operation 
soapAction="http://axis.apache.org/test/spring/GetOrder"/>
+      <wsdl:input>
+        <soap:body use="literal"/>
+      </wsdl:input>
+      <wsdl:output>
+        <soap:body use="literal"/>
+      </wsdl:output>
+    </wsdl:operation>
+  </wsdl:binding>
+  <wsdl:service name="OrderService">
+    <wsdl:port name="OrderServiceSOAP" binding="tns:OrderManagerSOAP">
+      <soap:address location="http://localhost:8080/axis/OrderServiceSOAP"/>
+    </wsdl:port>
+  </wsdl:service>
+</wsdl:definitions>

Added: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/java/org/apache/axis/test/spring/RemotingITCase.java
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/tests/spring-compat-tests/src/test/java/org/apache/axis/test/spring/RemotingITCase.java?rev=1410880&view=auto
==============================================================================
--- 
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/java/org/apache/axis/test/spring/RemotingITCase.java
 (added)
+++ 
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/java/org/apache/axis/test/spring/RemotingITCase.java
 Sun Nov 18 12:12:31 2012
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axis.test.spring;
+
+import junit.framework.TestCase;
+
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+public class RemotingITCase extends TestCase {
+    public void test() {
+        ClassPathXmlApplicationContext context = new 
ClassPathXmlApplicationContext("context.xml");
+        OrderManager orderManager = 
(OrderManager)context.getBean("orderManager");
+        String orderID = orderManager.submitOrder(new Order("1234", new 
OrderItem[] { new OrderItem("2345", 2) }));
+        System.out.println(orderManager.getOrder(orderID));
+        context.close();
+    }
+}

Propchange: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/java/org/apache/axis/test/spring/RemotingITCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/resources/context.properties
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/tests/spring-compat-tests/src/test/resources/context.properties?rev=1410880&view=auto
==============================================================================
--- 
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/resources/context.properties
 (added)
+++ 
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/resources/context.properties
 Sun Nov 18 12:12:31 2012
@@ -0,0 +1 @@
+test.httpPort=8080

Added: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/resources/context.xml
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/tests/spring-compat-tests/src/test/resources/context.xml?rev=1410880&view=auto
==============================================================================
--- 
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/resources/context.xml 
(added)
+++ 
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/resources/context.xml 
Sun Nov 18 12:12:31 2012
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements. See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership. The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License. You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied. See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<beans xmlns="http://www.springframework.org/schema/beans";
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
+    
+    <bean 
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+        <property name="location" value="context.properties"/>
+        <property name="systemPropertiesModeName" 
value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/>
+    </bean>
+    
+    <bean id="orderManager" 
class="org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean">
+        <property name="jaxRpcServiceInterface" 
value="org.apache.axis.test.spring.OrderService"/>
+        <property name="portName" value="OrderManagerPortType"/>
+        <property name="serviceInterface" 
value="org.apache.axis.test.spring.OrderManager"/>
+        <property name="portInterface" 
value="org.apache.axis.test.spring.OrderManagerPortType"/>
+        <property name="endpointAddress" 
value="http://localhost:${test.httpPort}/axis/OrderServiceSOAP"/>
+    </bean>
+</beans>
\ No newline at end of file

Propchange: 
axis/axis1/java/trunk/tests/spring-compat-tests/src/test/resources/context.xml
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to