[jbossws-commits] JBossWS SVN: r6364 - in stack/native/trunk: src/test/java/org/jboss/test/ws/jaxws/wsrm and 14 other directories.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Fri Apr 11 12:35:13 EDT 2008


Author: richard.opalka at jboss.com
Date: 2008-04-11 12:35:13 -0400 (Fri, 11 Apr 2008)
New Revision: 6364

Added:
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/Helper.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractSecuredOneWayTest.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAddressableOneWayTestCase.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAnonymousOneWayTestCase.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAddressableOneWayTestCase.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAnonymousOneWayTestCase.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractSecuredReqResTest.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAddressableReqResTestCase.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAnonymousReqResTestCase.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAddressableReqResTestCase.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAnonymousReqResTestCase.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceImpl.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceImpl.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceImpl.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceImpl.java
   stack/native/trunk/src/test/resources/jaxws/wsrm/
   stack/native/trunk/src/test/resources/jaxws/wsrm/META-INF/
   stack/native/trunk/src/test/resources/jaxws/wsrm/META-INF/wsrm-jaxws-client-config.xml
   stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/
   stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/
   stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/standard-jaxws-endpoint-config.xml
   stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/web.xml
   stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/wsdl/
   stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/wsdl/SecuredOneWayService.wsdl
   stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/wsdl/SecuredReqResService.wsdl
   stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/
   stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/standard-jaxws-endpoint-config.xml
   stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/web.xml
   stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/wsdl/
   stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/wsdl/OneWayService.wsdl
   stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/wsdl/ReqResService.wsdl
   stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/
   stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/META-INF/
   stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/META-INF/jboss-wsse-client.xml
   stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/WEB-INF/
   stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/WEB-INF/jboss-wsse-server.xml
   stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/wsse.keystore
   stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/wsse.truststore
Modified:
   stack/native/trunk/ant-import-tests/build-jars-jaxws.xml
Log:
[JBWS-2097] refactoring - moving native specific wsrm tests back to native

Modified: stack/native/trunk/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/trunk/ant-import-tests/build-jars-jaxws.xml	2008-04-11 16:07:20 UTC (rev 6363)
+++ stack/native/trunk/ant-import-tests/build-jars-jaxws.xml	2008-04-11 16:35:13 UTC (rev 6364)
@@ -433,6 +433,67 @@
       </webinf>
     </war>
     
+    <!-- jaxws-wsrm -->
+    <war warfile="${tests.output.dir}/libs/jaxws-wsrm.war"
+         webxml="${tests.output.dir}/resources/jaxws/wsrm/WEB-INF/unsecure/web.xml">
+      <classes dir="${tests.output.dir}/classes">
+        <include name="org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.class"/>
+        <include name="org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceImpl.class"/>
+        <include name="org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.class"/>
+        <include name="org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceImpl.class"/>
+      </classes>
+      <webinf dir="${tests.output.dir}/resources/jaxws/wsrm/WEB-INF">
+        <include name="wsrm-jaxws-endpoint-config.xml"/>
+      </webinf>
+      <zipfileset
+      	dir="${tests.output.dir}/resources/jaxws/wsrm/WEB-INF/unsecure/wsdl" 
+    	prefix="WEB-INF/wsdl"/>
+      <zipfileset
+        file="${tests.output.dir}/resources/jaxws/wsrm/WEB-INF/unsecure/standard-jaxws-endpoint-config.xml" 
+        prefix="META-INF"/>
+    </war>
+
+    <war warfile="${tests.output.dir}/libs/jaxws-secured-wsrm.war"
+         webxml="${tests.output.dir}/resources/jaxws/wsrm/WEB-INF/secure/web.xml">
+      <classes dir="${tests.output.dir}/classes">
+        <include name="org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.class"/>
+        <include name="org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceImpl.class"/>
+        <include name="org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.class"/>
+        <include name="org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceImpl.class"/>
+      </classes>
+      <webinf dir="${tests.output.dir}/resources/jaxws/wsrm/WEB-INF">
+        <include name="wsrm-jaxws-endpoint-config.xml"/>
+      </webinf>
+      <webinf dir="${tests.output.dir}/resources/jaxws/wsrm/wssecurity/WEB-INF">
+        <include name="jboss-wsse-server.xml"/>
+      </webinf>
+      <webinf dir="${tests.output.dir}/resources/jaxws/wsrm/wssecurity">
+        <include name="wsse.keystore"/>
+        <include name="wsse.truststore"/>
+      </webinf>
+      <zipfileset
+        dir="${tests.output.dir}/resources/jaxws/wsrm/WEB-INF/secure/wsdl" 
+        prefix="WEB-INF/wsdl"/>
+      <zipfileset
+        file="${tests.output.dir}/resources/jaxws/wsrm/WEB-INF/secure/standard-jaxws-endpoint-config.xml" 
+        prefix="META-INF"/>
+    </war>
+
+    <jar jarfile="${tests.output.dir}/libs/jaxws-wsrm-client.jar">
+      <metainf dir="${tests.output.dir}/resources/jaxws/wsrm/META-INF">
+        <include name="wsrm-jaxws-client-config.xml"/>
+      </metainf>
+    </jar>
+
+    <jar jarfile="${tests.output.dir}/libs/jaxws-secured-wsrm-client.jar">
+      <metainf dir="${tests.output.dir}/resources/jaxws/wsrm/META-INF">
+        <include name="wsrm-jaxws-client-config.xml"/>
+      </metainf>
+      <metainf dir="${tests.output.dir}/resources/jaxws/wsrm/wssecurity/META-INF">
+        <include name="jboss-wsse-client.xml"/>
+      </metainf>
+    </jar>
+
     <!-- Please add alphabetically -->
     
   </target>

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/Helper.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/Helper.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/Helper.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,99 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm;
+
+import java.lang.reflect.Method;
+import java.net.URI;
+import java.net.URISyntaxException;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.addressing.AddressingBuilder;
+import javax.xml.ws.addressing.AddressingConstants;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.JAXWSAConstants;
+import org.jboss.wsf.common.utils.UUIDGenerator;
+
+/**
+ * WS-RM Tests helper
+ *
+ * @author richard.opalka at jboss.com
+ */
+public final class Helper
+{
+   
+   private static AddressingBuilder BUILDER;
+   private static AddressingConstants CONSTANTS;
+
+   static
+   {
+      BUILDER = AddressingBuilder.getAddressingBuilder();
+      CONSTANTS = BUILDER.newAddressingConstants();
+   }
+   
+   private Helper()
+   {
+      // no instances
+   }
+
+   /**
+    * Setup addressing SOAP headers for specified proxy
+    * @param proxy
+    * @param wsaAction
+    * @param serviceURL
+    */
+   public static void setAddrProps(Object proxy, String wsaAction, String serviceURL)
+   {
+      BindingProvider bp = (BindingProvider)proxy;
+      AddressingProperties props = createAnonymousProps(wsaAction, serviceURL);
+
+      bp.getRequestContext().put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, props);
+   }
+   
+   public static AddressingProperties createAnonymousProps(String wsaAction, String wsaTo)
+   {
+      try
+      {
+         AddressingProperties addrProps = BUILDER.newAddressingProperties();
+         addrProps.setMessageID(BUILDER.newURI(new URI("urn:uuid:" + UUIDGenerator.generateRandomUUIDString())));
+         addrProps.setAction(BUILDER.newURI(wsaAction));
+         addrProps.setTo(BUILDER.newURI(wsaTo));
+         addrProps.setReplyTo(BUILDER.newEndpointReference(new URI(CONSTANTS.getAnonymousURI())));
+         return addrProps;
+      }
+      catch (URISyntaxException e)
+      {
+         throw new IllegalArgumentException(e.getMessage());
+      }
+   }
+   
+   /**
+    * Invokes method using java reflection api
+    * @throws Exception if some reflection related problem occurs 
+    */
+   public static Object invokeMethodUsingReflection(String ifaceName, Object object, String methodName, Class<?>[] parametersSignature, Object[] parameters)
+   throws Exception
+   {
+      Object castedObject = Class.forName(ifaceName).cast(object);
+      Method castedObjectMethod = castedObject.getClass().getMethod(methodName, parametersSignature);
+      return castedObjectMethod.invoke(castedObject, parameters);
+   }
+   
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/Helper.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.oneway;
+
+import static org.jboss.test.ws.jaxws.wsrm.Helper.invokeMethodUsingReflection;
+import static org.jboss.test.ws.jaxws.wsrm.Helper.setAddrProps;
+
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.test.ws.jaxws.wsrm.services.OneWayServiceIface;
+
+/**
+ * Reliable JBoss WebService client invoking one way methods
+ *
+ * @author richard.opalka at jboss.com
+ */
+public abstract class RMAbstractOneWayTest extends JBossWSTest
+{
+   private final String serviceURL = "http://" + getServerHost() + ":8080//jaxws-wsrm/OneWayService";
+   private OneWayServiceIface proxy;
+   
+   @Override
+   protected void setUp() throws Exception
+   {
+      super.setUp();
+
+      QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "OneWayService");
+      URL wsdlURL = new URL(serviceURL + "?wsdl");
+      Service service = Service.create(wsdlURL, serviceName);
+      proxy = (OneWayServiceIface)service.getPort(OneWayServiceIface.class);
+      if (isIntegrationNative())
+      {
+         // set up client config to be used - uses jbossws specific API via reflection
+         invokeMethodUsingReflection(
+            "org.jboss.ws.core.StubExt",
+            proxy, "setConfigName",
+            new Class[] { String.class, String.class },
+            new Object[] {getConfigName(), "META-INF/wsrm-jaxws-client-config.xml"}
+         );
+      }
+   }
+   
+   public void testOneWayMethods() throws Exception
+   {
+      setAddrProps(proxy, "http://useless/action1", serviceURL);
+      proxy.method1();
+      setAddrProps(proxy, "http://useless/action2", serviceURL);
+      proxy.method2("Hello World");
+      setAddrProps(proxy, "http://useless/action3", serviceURL);
+      proxy.method3(new String[] {"Hello","World"});
+      if (isIntegrationNative())
+      {
+         // force close sequence - uses jbossws specific API via reflection
+         invokeMethodUsingReflection(
+            "org.jboss.ws.extensions.wsrm.api.RMProvider",
+            proxy, "closeSequence",
+            new Class[] {},
+            new Object[] {}
+         );
+      }
+   }
+
+   public static String getClasspath()
+   {
+      return "jaxws-wsrm.war, jaxws-wsrm-client.jar";
+   }
+   
+   protected abstract String getConfigName();
+   
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractSecuredOneWayTest.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractSecuredOneWayTest.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractSecuredOneWayTest.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.oneway;
+
+import static org.jboss.test.ws.jaxws.wsrm.Helper.invokeMethodUsingReflection;
+import static org.jboss.test.ws.jaxws.wsrm.Helper.setAddrProps;
+
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import org.jboss.test.ws.jaxws.wsrm.services.SecuredOneWayServiceIface;
+import org.jboss.wsf.test.JBossWSTest;
+
+/**
+ * Secure Reliable JBoss WebService client invoking one way methods
+ *
+ * @author richard.opalka at jboss.com
+ */
+public abstract class RMAbstractSecuredOneWayTest extends JBossWSTest
+{
+   private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-secured-wsrm/SecuredOneWayService";
+   private SecuredOneWayServiceIface proxy;
+   
+   @Override
+   protected void setUp() throws Exception
+   {
+      super.setUp();
+
+      QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "SecuredOneWayService");
+      URL wsdlURL = new URL(serviceURL + "?wsdl");
+      Service service = Service.create(wsdlURL, serviceName);
+      proxy = (SecuredOneWayServiceIface)service.getPort(SecuredOneWayServiceIface.class);
+      if (isIntegrationNative())
+      {
+         // set up client config to be used - uses jbossws specific API via reflection
+         invokeMethodUsingReflection(
+            "org.jboss.ws.core.StubExt",
+            proxy, "setConfigName",
+            new Class[] { String.class, String.class },
+            new Object[] {getConfigName(), "META-INF/wsrm-jaxws-client-config.xml"}
+         );
+      }
+   }
+   
+   public void testOneWayMethods() throws Exception
+   {
+      setAddrProps(proxy, "http://useless/action1", serviceURL);
+      proxy.method1();
+      setAddrProps(proxy, "http://useless/action2", serviceURL);
+      proxy.method2("Hello World");
+      setAddrProps(proxy, "http://useless/action3", serviceURL);
+      proxy.method3(new String[] {"Hello","World"});
+      if (isIntegrationNative())
+      {
+         // force close sequence - uses jbossws specific API via reflection
+         invokeMethodUsingReflection(
+            "org.jboss.ws.extensions.wsrm.api.RMProvider",
+            proxy, "closeSequence",
+            new Class[] {},
+            new Object[] {}
+         );
+      }
+   }
+
+   public static String getClasspath()
+   {
+      return "jaxws-secured-wsrm.war, jaxws-secured-wsrm-client.jar";
+   }
+   
+   protected abstract String getConfigName();
+   
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractSecuredOneWayTest.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAddressableOneWayTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAddressableOneWayTestCase.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAddressableOneWayTestCase.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.oneway;
+
+import junit.framework.Test;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Addressable version of one way WS-RM message exchange
+ *
+ * @author richard.opalka at jboss.com
+ */
+public final class RMAddressableOneWayTestCase extends RMAbstractOneWayTest
+{
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(RMAddressableOneWayTestCase.class, getClasspath());
+   }
+
+   public final String getConfigName()
+   {
+      return "Standard Addressable WSRM Client";
+   }
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAddressableOneWayTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAnonymousOneWayTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAnonymousOneWayTestCase.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAnonymousOneWayTestCase.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.oneway;
+
+import junit.framework.Test;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Anonymous version of one way WS-RM message exchange
+ *
+ * @author richard.opalka at jboss.com
+ */
+public final class RMAnonymousOneWayTestCase extends RMAbstractOneWayTest
+{
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(RMAnonymousOneWayTestCase.class, getClasspath());
+   }
+
+   public final String getConfigName()
+   {
+      return "Standard Anonymous WSRM Client";
+   }
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAnonymousOneWayTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAddressableOneWayTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAddressableOneWayTestCase.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAddressableOneWayTestCase.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.oneway;
+
+import junit.framework.Test;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Secured addressable version of one way WS-RM message exchange
+ *
+ * @author richard.opalka at jboss.com
+ */
+public class RMSecuredAddressableOneWayTestCase extends RMAbstractSecuredOneWayTest
+{
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(RMSecuredAddressableOneWayTestCase.class, getClasspath());
+   }
+
+   public final String getConfigName()
+   {
+      return "Secured Addressable WSRM Client";
+   }
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAddressableOneWayTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAnonymousOneWayTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAnonymousOneWayTestCase.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAnonymousOneWayTestCase.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.oneway;
+
+import junit.framework.Test;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Secured anonymous version of one way WS-RM message exchange
+ *
+ * @author richard.opalka at jboss.com
+ */
+public class RMSecuredAnonymousOneWayTestCase extends RMAbstractSecuredOneWayTest
+{
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(RMSecuredAnonymousOneWayTestCase.class, getClasspath());
+   }
+
+   public final String getConfigName()
+   {
+      return "Secured Anonymous WSRM Client";
+   }
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMSecuredAnonymousOneWayTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,182 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.reqres;
+
+import static org.jboss.test.ws.jaxws.wsrm.Helper.invokeMethodUsingReflection;
+import static org.jboss.test.ws.jaxws.wsrm.Helper.setAddrProps;
+
+import java.net.URL;
+import java.util.concurrent.Executor;
+import java.util.concurrent.Future;
+import java.util.concurrent.SynchronousQueue;
+import java.util.concurrent.ThreadPoolExecutor;
+import java.util.concurrent.TimeUnit;
+import javax.xml.namespace.QName;
+import javax.xml.ws.AsyncHandler;
+import javax.xml.ws.Response;
+import javax.xml.ws.Service;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.test.ws.jaxws.wsrm.services.ReqResServiceIface;
+
+/**
+ * Reliable JBoss WebService client invoking req/res methods
+ *
+ * @author richard.opalka at jboss.com
+ */
+public abstract class RMAbstractReqResTest extends JBossWSTest
+{
+   private static final String helloWorldMessage = "Hello World";
+   private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-wsrm/ReqResService";
+   private Exception handlerException;
+   private boolean asyncHandlerCalled;
+   private ReqResServiceIface proxy;
+   private static final TimeUnit testTimeUnit = TimeUnit.SECONDS;
+   private static final long testWaitPeriod = 300L;
+   private static final Executor testExecutor = new ThreadPoolExecutor(
+      0, 5, testWaitPeriod, testTimeUnit, new SynchronousQueue<Runnable>()
+   );
+   
+   private enum InvocationType
+   {
+      SYNC, ASYNC, ASYNC_FUTURE
+   }
+
+   @Override
+   protected void setUp() throws Exception
+   {
+      super.setUp();
+
+      if (proxy == null)
+      {
+         QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "ReqResService");
+         URL wsdlURL = new URL(serviceURL + "?wsdl");
+         Service service = Service.create(wsdlURL, serviceName);
+         service.setExecutor(testExecutor);
+         proxy = (ReqResServiceIface)service.getPort(ReqResServiceIface.class);
+         if (isIntegrationNative())
+         {
+            // set up client config to be used - uses jbossws specific API via reflection
+            invokeMethodUsingReflection(
+               "org.jboss.ws.core.StubExt",
+               proxy, "setConfigName",
+               new Class[] { String.class, String.class },
+               new Object[] {getConfigName(), "META-INF/wsrm-jaxws-client-config.xml"}
+            );
+         }
+      }
+   }
+
+   public void testSynchronousInvocation() throws Exception
+   {
+      doReliableMessageExchange(proxy, InvocationType.SYNC);
+   }
+   
+   public void testAsynchronousInvocation() throws Exception
+   {
+      doReliableMessageExchange(proxy, InvocationType.ASYNC);
+   }
+   
+   public void testAsynchronousInvocationUsingFuture() throws Exception
+   {
+      doReliableMessageExchange(proxy, InvocationType.ASYNC_FUTURE);
+   }
+   
+   private void doSynchronousInvocation() throws Exception
+   {
+      assertEquals(proxy.echo(helloWorldMessage), helloWorldMessage);
+   }
+   
+   private void doAsynchronousInvocation() throws Exception
+   {
+      Response<String> response = proxy.echoAsync(helloWorldMessage);
+      assertEquals(response.get(), helloWorldMessage); // hidden future pattern
+   }
+
+   private void doAsynchronousInvocationUsingFuture() throws Exception
+   {
+      AsyncHandler<String> handler = new AsyncHandler<String>()
+      {
+         public void handleResponse(Response<String> response)
+         {
+            try
+            {
+               String retStr = (String) response.get(testWaitPeriod, testTimeUnit);
+               assertEquals(helloWorldMessage, retStr);
+               asyncHandlerCalled = true;
+            }
+            catch (Exception ex)
+            {
+               handlerException = ex;
+            }
+         }
+      };
+      Future<?> future = proxy.echoAsync(helloWorldMessage, handler);
+      future.get(testWaitPeriod, testTimeUnit);
+      ensureAsyncStatus();
+   }
+   
+   private void ensureAsyncStatus() throws Exception
+   {
+      if (handlerException != null) throw handlerException;
+      assertTrue("Async handler called", asyncHandlerCalled);
+      handlerException = null;
+      asyncHandlerCalled = false;
+   }
+   
+   private void invokeWebServiceMethod(InvocationType invocationType) throws Exception
+   {
+      switch (invocationType) {
+         case SYNC: doSynchronousInvocation(); break;
+         case ASYNC: doAsynchronousInvocation(); break;
+         case ASYNC_FUTURE: doAsynchronousInvocationUsingFuture(); break;
+         default : fail("Unknown invocation type");
+      }
+   }
+   
+   private void doReliableMessageExchange(Object proxyObject, InvocationType invocationType) throws Exception
+   {
+      setAddrProps(proxy, "http://useless/action", serviceURL);
+      invokeWebServiceMethod(invocationType);
+      setAddrProps(proxy, "http://useless/action", serviceURL);
+      invokeWebServiceMethod(invocationType);
+      setAddrProps(proxy, "http://useless/action", serviceURL);
+      invokeWebServiceMethod(invocationType);
+      if (isIntegrationNative())
+      {
+         // force close sequence - uses jbossws specific API via reflection
+         invokeMethodUsingReflection(
+            "org.jboss.ws.extensions.wsrm.api.RMProvider",
+            proxyObject, "closeSequence",
+            new Class[] {},
+            new Object[] {}
+         );
+      }
+   }
+   
+   public static String getClasspath()
+   {
+      return "jaxws-wsrm.war, jaxws-wsrm-client.jar";
+   }
+   
+   protected abstract String getConfigName();
+   
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractSecuredReqResTest.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractSecuredReqResTest.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractSecuredReqResTest.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,182 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.reqres;
+
+import static org.jboss.test.ws.jaxws.wsrm.Helper.invokeMethodUsingReflection;
+import static org.jboss.test.ws.jaxws.wsrm.Helper.setAddrProps;
+
+import java.net.URL;
+import java.util.concurrent.Executor;
+import java.util.concurrent.Future;
+import java.util.concurrent.SynchronousQueue;
+import java.util.concurrent.ThreadPoolExecutor;
+import java.util.concurrent.TimeUnit;
+import javax.xml.namespace.QName;
+import javax.xml.ws.AsyncHandler;
+import javax.xml.ws.Response;
+import javax.xml.ws.Service;
+import org.jboss.test.ws.jaxws.wsrm.services.SecuredReqResServiceIface;
+import org.jboss.wsf.test.JBossWSTest;
+
+/**
+ * Secured reliable JBoss WebService client invoking req/res methods
+ *
+ * @author richard.opalka at jboss.com
+ */
+public abstract class RMAbstractSecuredReqResTest extends JBossWSTest
+{
+   private static final String helloWorldMessage = "Hello World";
+   private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-secured-wsrm/SecuredReqResService";
+   private Exception handlerException;
+   private boolean asyncHandlerCalled;
+   private SecuredReqResServiceIface proxy;
+   private static final TimeUnit testTimeUnit = TimeUnit.SECONDS;
+   private static final long testWaitPeriod = 300L;
+   private static final Executor testExecutor = new ThreadPoolExecutor(
+      0, 5, testWaitPeriod, testTimeUnit, new SynchronousQueue<Runnable>()
+   );
+   
+   private enum InvocationType
+   {
+      SYNC, ASYNC, ASYNC_FUTURE
+   }
+
+   @Override
+   protected void setUp() throws Exception
+   {
+      super.setUp();
+
+      if (proxy == null)
+      {
+         QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "SecuredReqResService");
+         URL wsdlURL = new URL(serviceURL + "?wsdl");
+         Service service = Service.create(wsdlURL, serviceName);
+         service.setExecutor(testExecutor);
+         proxy = (SecuredReqResServiceIface)service.getPort(SecuredReqResServiceIface.class);
+         if (isIntegrationNative())
+         {
+            // set up client config to be used - uses jbossws specific API via reflection
+            invokeMethodUsingReflection(
+               "org.jboss.ws.core.StubExt",
+               proxy, "setConfigName",
+               new Class[] { String.class, String.class },
+               new Object[] {getConfigName(), "META-INF/wsrm-jaxws-client-config.xml"}
+            );
+         }
+      }
+   }
+   
+   public void testSynchronousInvocation() throws Exception
+   {
+      doReliableMessageExchange(proxy, InvocationType.SYNC);
+   }
+   
+   public void testAsynchronousInvocation() throws Exception
+   {
+      doReliableMessageExchange(proxy, InvocationType.ASYNC);
+   }
+   
+   public void testAsynchronousInvocationUsingFuture() throws Exception
+   {
+      doReliableMessageExchange(proxy, InvocationType.ASYNC_FUTURE);
+   }
+   
+   private void doSynchronousInvocation() throws Exception
+   {
+      assertEquals(proxy.echo(helloWorldMessage), helloWorldMessage);
+   }
+   
+   private void doAsynchronousInvocation() throws Exception
+   {
+      Response<String> response = proxy.echoAsync(helloWorldMessage);
+      assertEquals(response.get(), helloWorldMessage); // hidden future pattern
+   }
+
+   private void doAsynchronousInvocationUsingFuture() throws Exception
+   {
+      AsyncHandler<String> handler = new AsyncHandler<String>()
+      {
+         public void handleResponse(Response<String> response)
+         {
+            try
+            {
+               String retStr = (String) response.get(testWaitPeriod, testTimeUnit);
+               assertEquals(helloWorldMessage, retStr);
+               asyncHandlerCalled = true;
+            }
+            catch (Exception ex)
+            {
+               handlerException = ex;
+            }
+         }
+      };
+      Future<?> future = proxy.echoAsync(helloWorldMessage, handler);
+      future.get(testWaitPeriod, testTimeUnit);
+      ensureAsyncStatus();
+   }
+   
+   private void ensureAsyncStatus() throws Exception
+   {
+      if (handlerException != null) throw handlerException;
+      assertTrue("Async handler called", asyncHandlerCalled);
+      handlerException = null;
+      asyncHandlerCalled = false;
+   }
+   
+   private void invokeWebServiceMethod(InvocationType invocationType) throws Exception
+   {
+      switch (invocationType) {
+         case SYNC: doSynchronousInvocation(); break;
+         case ASYNC: doAsynchronousInvocation(); break;
+         case ASYNC_FUTURE: doAsynchronousInvocationUsingFuture(); break;
+         default : fail("Unknown invocation type");
+      }
+   }
+   
+   private void doReliableMessageExchange(Object proxyObject, InvocationType invocationType) throws Exception
+   {
+      setAddrProps(proxy, "http://useless/action", serviceURL);
+      invokeWebServiceMethod(invocationType);
+      setAddrProps(proxy, "http://useless/action", serviceURL);
+      invokeWebServiceMethod(invocationType);
+      setAddrProps(proxy, "http://useless/action", serviceURL);
+      invokeWebServiceMethod(invocationType);
+      if (isIntegrationNative())
+      {
+         // force close sequence - uses jbossws specific API via reflection
+         invokeMethodUsingReflection(
+            "org.jboss.ws.extensions.wsrm.api.RMProvider",
+            proxyObject, "closeSequence",
+            new Class[] {},
+            new Object[] {}
+         );
+      }
+   }
+   
+   public static String getClasspath()
+   {
+      return "jaxws-secured-wsrm.war, jaxws-secured-wsrm-client.jar";
+   }
+   
+   protected abstract String getConfigName();
+
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractSecuredReqResTest.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAddressableReqResTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAddressableReqResTestCase.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAddressableReqResTestCase.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.reqres;
+
+import junit.framework.Test;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Addressable version of request reply WS-RM message exchange
+ *
+ * @author richard.opalka at jboss.com
+ */
+public final class RMAddressableReqResTestCase extends RMAbstractReqResTest
+{
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(RMAddressableReqResTestCase.class, getClasspath());
+   }
+
+   public final String getConfigName()
+   {
+      return "Standard Addressable WSRM Client";
+   }
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAddressableReqResTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAnonymousReqResTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAnonymousReqResTestCase.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAnonymousReqResTestCase.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.reqres;
+
+import junit.framework.Test;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Anonymous version of request reply WS-RM message exchange
+ *
+ * @author richard.opalka at jboss.com
+ */
+public final class RMAnonymousReqResTestCase extends RMAbstractReqResTest
+{
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(RMAnonymousReqResTestCase.class, getClasspath());
+   }
+
+   public final String getConfigName()
+   {
+      return "Standard Anonymous WSRM Client";
+   }
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAnonymousReqResTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAddressableReqResTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAddressableReqResTestCase.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAddressableReqResTestCase.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.reqres;
+
+import junit.framework.Test;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Secured addressable version of request reply WS-RM message exchange
+ *
+ * @author richard.opalka at jboss.com
+ */
+public class RMSecuredAddressableReqResTestCase extends RMAbstractSecuredReqResTest
+{
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(RMSecuredAddressableReqResTestCase.class, getClasspath());
+   }
+
+   public final String getConfigName()
+   {
+      return "Secured Addressable WSRM Client";
+   }
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAddressableReqResTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAnonymousReqResTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAnonymousReqResTestCase.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAnonymousReqResTestCase.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.reqres;
+
+import junit.framework.Test;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Secured anonymous version of request reply WS-RM message exchange
+ *
+ * @author richard.opalka at jboss.com
+ */
+public class RMSecuredAnonymousReqResTestCase extends RMAbstractSecuredReqResTest
+{
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(RMSecuredAnonymousReqResTestCase.class, getClasspath());
+   }
+
+   public final String getConfigName()
+   {
+      return "Secured Anonymous WSRM Client";
+   }
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMSecuredAnonymousReqResTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import javax.jws.Oneway;
+import javax.jws.WebService;
+
+ at WebService
+(
+   targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm"
+)
+public interface OneWayServiceIface
+{
+   @Oneway
+   void method1();
+   
+   @Oneway
+   void method2(String s);
+   
+   @Oneway
+   void method3(String[] sa);
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceImpl.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceImpl.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceImpl.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import javax.jws.Oneway;
+import javax.jws.WebService;
+import java.util.Arrays;
+
+ at WebService
+(
+   name = "OneWay",
+   serviceName = "OneWayService",
+   wsdlLocation = "WEB-INF/wsdl/OneWayService.wsdl",
+   targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm",
+   endpointInterface = "org.jboss.test.ws.jaxws.wsrm.services.OneWayServiceIface"
+)
+public class OneWayServiceImpl implements OneWayServiceIface
+{
+   @Oneway
+   public void method1()
+   {
+      System.out.println("method1()");
+   }
+
+   @Oneway
+   public void method2(String s)
+   {
+      System.out.println("method2(" + s + ")");
+   }
+
+   @Oneway
+   public void method3(String[] sa)
+   {
+      System.out.println("method3(" + Arrays.asList(sa) + ")");
+   }
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceImpl.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import java.util.concurrent.Future;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.xml.ws.AsyncHandler;
+import javax.xml.ws.Response;
+
+ at WebService
+(
+   targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm"
+)
+public interface ReqResServiceIface
+{
+   @WebMethod(operationName = "echo")
+   public Response<String> echoAsync(String s);
+
+   @WebMethod(operationName = "echo")
+   public Future<?> echoAsync(String s, AsyncHandler<String> h);
+
+   @WebMethod
+   public String echo(String s);
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceImpl.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceImpl.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceImpl.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+ at WebService
+(
+   name = "ReqRes",
+   serviceName = "ReqResService",
+   wsdlLocation = "WEB-INF/wsdl/ReqResService.wsdl",
+   targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm",
+   endpointInterface = "org.jboss.test.ws.jaxws.wsrm.services.ReqResServiceIface"
+)
+public class ReqResServiceImpl
+{
+   @WebMethod
+   public String echo(String s)
+   {
+      System.out.println("echo(" + s + ")");
+      return s;
+   }
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceImpl.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import javax.jws.Oneway;
+import javax.jws.WebService;
+
+ at WebService
+(
+   targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm"
+)
+public interface SecuredOneWayServiceIface
+{
+   @Oneway
+   void method1();
+   
+   @Oneway
+   void method2(String s);
+   
+   @Oneway
+   void method3(String[] sa);
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceImpl.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceImpl.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceImpl.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import java.util.Arrays;
+import javax.jws.Oneway;
+import javax.jws.WebService;
+
+ at WebService
+(
+   name = "SecuredOneWay",
+   serviceName = "SecuredOneWayService",
+   wsdlLocation = "WEB-INF/wsdl/SecuredOneWayService.wsdl",
+   targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm",
+   endpointInterface = "org.jboss.test.ws.jaxws.wsrm.services.SecuredOneWayServiceIface"
+)
+public class SecuredOneWayServiceImpl implements SecuredOneWayServiceIface
+{
+   @Oneway
+   public void method1()
+   {
+      System.out.println("method1()");
+   }
+
+   @Oneway
+   public void method2(String s)
+   {
+      System.out.println("method2(" + s + ")");
+   }
+
+   @Oneway
+   public void method3(String[] sa)
+   {
+      System.out.println("method3(" + Arrays.asList(sa) + ")");
+   }
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceImpl.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import java.util.concurrent.Future;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.xml.ws.AsyncHandler;
+import javax.xml.ws.Response;
+
+ at WebService
+(
+   targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm"
+)
+public interface SecuredReqResServiceIface
+{
+   @WebMethod(operationName = "echo")
+   public Response<String> echoAsync(String s);
+
+   @WebMethod(operationName = "echo")
+   public Future<?> echoAsync(String s, AsyncHandler<String> h);
+
+   @WebMethod
+   public String echo(String s);
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceImpl.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceImpl.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceImpl.java	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+ at WebService
+(
+   name = "SecuredReqRes",
+   serviceName = "SecuredReqResService",
+   wsdlLocation = "WEB-INF/wsdl/SecuredReqResService.wsdl",
+   targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm",
+   endpointInterface = "org.jboss.test.ws.jaxws.wsrm.services.SecuredReqResServiceIface"
+)
+public class SecuredReqResServiceImpl
+{
+   @WebMethod
+   public String echo(String s)
+   {
+      System.out.println("echo(" + s + ")");
+      return s;
+   }
+}


Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceImpl.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/resources/jaxws/wsrm/META-INF/wsrm-jaxws-client-config.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/wsrm/META-INF/wsrm-jaxws-client-config.xml	                        (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/wsrm/META-INF/wsrm-jaxws-client-config.xml	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jaxws-config
+  xmlns="urn:jboss:jaxws-config:2.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+  xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd">
+
+  <client-config>
+    <config-name>Standard Anonymous WSRM Client</config-name>
+    <reliable-messaging>
+      <message-retransmission attempts="50" interval="10" timeout="10"/>
+    </reliable-messaging>	
+    <post-handler-chains>
+      <javaee:handler-chain>
+        <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
+        <javaee:handler>
+          <javaee:handler-name>WSAddressing Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler</javaee:handler-class>
+        </javaee:handler>
+        <javaee:handler>
+          <javaee:handler-name>WSRM Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.wsrm.jaxws.RMClientHandler</javaee:handler-class>
+        </javaee:handler>
+      </javaee:handler-chain>
+    </post-handler-chains>
+  </client-config>
+
+  <client-config>
+    <config-name>Standard Addressable WSRM Client</config-name>
+    <reliable-messaging>
+      <backports-server port="7777"/>
+      <message-retransmission attempts="50" interval="10" timeout="10"/>
+    </reliable-messaging>	
+    <post-handler-chains>
+      <javaee:handler-chain>
+        <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
+        <javaee:handler>
+          <javaee:handler-name>WSAddressing Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler</javaee:handler-class>
+        </javaee:handler>
+        <javaee:handler>
+          <javaee:handler-name>WSRM Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.wsrm.jaxws.RMClientHandler</javaee:handler-class>
+        </javaee:handler>
+      </javaee:handler-chain>
+    </post-handler-chains>
+  </client-config>
+
+  <client-config>
+    <config-name>Secured Anonymous WSRM Client</config-name>
+    <reliable-messaging>
+      <message-retransmission attempts="50" interval="10" timeout="10"/>
+    </reliable-messaging>	
+    <post-handler-chains>
+      <javaee:handler-chain>
+        <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
+        <javaee:handler>
+          <javaee:handler-name>WSAddressing Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler</javaee:handler-class>
+        </javaee:handler>
+        <javaee:handler>
+          <javaee:handler-name>WSRM Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.wsrm.jaxws.RMClientHandler</javaee:handler-class>
+        </javaee:handler>
+        <javaee:handler>
+          <javaee:handler-name>WSSecurity Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient</javaee:handler-class>
+        </javaee:handler>
+      </javaee:handler-chain>
+    </post-handler-chains>
+  </client-config>
+
+  <client-config>
+    <config-name>Secured Addressable WSRM Client</config-name>
+    <reliable-messaging>
+      <backports-server port="7777"/>
+      <message-retransmission attempts="50" interval="10" timeout="10"/>
+    </reliable-messaging>	
+    <post-handler-chains>
+      <javaee:handler-chain>
+        <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
+        <javaee:handler>
+          <javaee:handler-name>WSAddressing Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler</javaee:handler-class>
+        </javaee:handler>
+        <javaee:handler>
+          <javaee:handler-name>WSRM Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.wsrm.jaxws.RMClientHandler</javaee:handler-class>
+        </javaee:handler>
+        <javaee:handler>
+          <javaee:handler-name>WSSecurity Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient</javaee:handler-class>
+        </javaee:handler>
+      </javaee:handler-chain>
+    </post-handler-chains>
+  </client-config>
+
+</jaxws-config>


Property changes on: stack/native/trunk/src/test/resources/jaxws/wsrm/META-INF/wsrm-jaxws-client-config.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/standard-jaxws-endpoint-config.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/standard-jaxws-endpoint-config.xml	                        (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/standard-jaxws-endpoint-config.xml	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jaxws-config
+  xmlns="urn:jboss:jaxws-config:2.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+  xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd">
+
+  <endpoint-config>
+    <config-name>Standard Endpoint</config-name>
+    <post-handler-chains>
+      <javaee:handler-chain>
+        <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
+        <javaee:handler>
+          <javaee:handler-name>WSAddressing Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingServerHandler</javaee:handler-class>
+        </javaee:handler>
+        <javaee:handler>
+          <javaee:handler-name>WSRM Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.wsrm.jaxws.RMServerHandler</javaee:handler-class>
+        </javaee:handler>
+        <javaee:handler>
+          <javaee:handler-name>WSSecurity Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer</javaee:handler-class>
+        </javaee:handler>
+      </javaee:handler-chain>
+    </post-handler-chains>
+  </endpoint-config>
+
+</jaxws-config>


Property changes on: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/standard-jaxws-endpoint-config.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/web.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/web.xml	                        (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/web.xml	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app 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"
+  version="2.4">
+
+  <servlet>
+    <servlet-name>SecuredOneWayService</servlet-name>
+    <servlet-class>org.jboss.test.ws.jaxws.wsrm.services.SecuredOneWayServiceImpl</servlet-class>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>SecuredOneWayService</servlet-name>
+    <url-pattern>/SecuredOneWayService</url-pattern>
+  </servlet-mapping>
+
+  <servlet>
+    <servlet-name>SecuredReqResService</servlet-name>
+    <servlet-class>org.jboss.test.ws.jaxws.wsrm.services.SecuredReqResServiceImpl</servlet-class>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>SecuredReqResService</servlet-name>
+    <url-pattern>/SecuredReqResService</url-pattern>
+  </servlet-mapping>
+
+</web-app>


Property changes on: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/web.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/wsdl/SecuredOneWayService.wsdl
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/wsdl/SecuredOneWayService.wsdl	                        (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/wsdl/SecuredOneWayService.wsdl	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
+  name="SecuredOneWayService"
+  targetNamespace="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+  xmlns:ns1="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+  xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+  xmlns="http://schemas.xmlsoap.org/wsdl/">
+  <wsp:UsingPolicy/>
+  <wsp:Policy
+    wsu:Id="wsrm11policy"
+    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+    <wsp:All>
+      <wsp:ExactlyOne>
+         <wsp:All>
+            <ns1:RMAssertion xmlns:ns1="http://docs.oasis-open.org/ws-rx/wsrmp/200702"/>
+            <ns2:UsingAddressing xmlns:ns2="http://www.w3.org/2006/05/addressing/wsdl"/>
+         </wsp:All>
+      </wsp:ExactlyOne>
+    </wsp:All>
+  </wsp:Policy>
+  <types>
+    <xs:schema
+      version="1.0"
+      targetNamespace="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+      xmlns:tns="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+      xmlns:xs="http://www.w3.org/2001/XMLSchema">
+      <xs:element name="method1" type="tns:method1"/>
+      <xs:element name="method2" type="tns:method2"/>
+      <xs:element name="method3" type="tns:method3"/>
+      <xs:complexType name="method1">
+        <xs:sequence/>
+      </xs:complexType>
+      <xs:complexType name="method2">
+        <xs:sequence>
+          <xs:element minOccurs="0" name="arg0" type="xs:string"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="method3">
+        <xs:sequence>
+          <xs:element maxOccurs="unbounded" minOccurs="0" name="arg0" type="xs:string"/>
+        </xs:sequence>
+      </xs:complexType>
+    </xs:schema>
+  </types>
+  <message name="SecuredOneWayServiceIface_method2">
+    <part name="method2" element="ns1:method2">
+    </part>
+  </message>
+  <message name="SecuredOneWayServiceIface_method1">
+    <part name="method1" element="ns1:method1">
+    </part>
+  </message>
+  <message name="SecuredOneWayServiceIface_method3">
+    <part name="method3" element="ns1:method3">
+    </part>
+  </message>
+  <portType name="SecuredOneWayServiceIface">
+    <operation name="method1">
+      <input message="ns1:SecuredOneWayServiceIface_method1">
+    </input>
+    </operation>
+    <operation name="method2">
+      <input message="ns1:SecuredOneWayServiceIface_method2">
+    </input>
+    </operation>
+    <operation name="method3">
+      <input message="ns1:SecuredOneWayServiceIface_method3">
+    </input>
+    </operation>
+  </portType>
+  <binding name="SecuredOneWayServiceIfaceBinding" type="ns1:SecuredOneWayServiceIface">
+    <wsp:PolicyReference URI="#wsrm11policy"/>
+    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="method1">
+      <soap:operation soapAction=""/>
+      <input>
+        <soap:body use="literal"/>
+      </input>
+    </operation>
+    <operation name="method2">
+      <soap:operation soapAction=""/>
+      <input>
+        <soap:body use="literal"/>
+      </input>
+    </operation>
+    <operation name="method3">
+      <soap:operation soapAction=""/>
+      <input>
+        <soap:body use="literal"/>
+      </input>
+    </operation>
+  </binding>
+  <service name="SecuredOneWayService">
+    <port name="SecuredOneWayPort" binding="ns1:SecuredOneWayServiceIfaceBinding">
+      <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+    </port>
+  </service>
+</definitions>


Property changes on: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/wsdl/SecuredOneWayService.wsdl
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/wsdl/SecuredReqResService.wsdl
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/wsdl/SecuredReqResService.wsdl	                        (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/wsdl/SecuredReqResService.wsdl	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
+  name="SecuredReqResService"
+  targetNamespace="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+  xmlns:ns1="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+  xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+  xmlns="http://schemas.xmlsoap.org/wsdl/">
+  <wsp:UsingPolicy/>
+  <wsp:Policy
+    wsu:Id="wsrm11policy"
+    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+    <wsp:All>
+      <wsp:ExactlyOne>
+         <wsp:All>
+            <ns1:RMAssertion xmlns:ns1="http://docs.oasis-open.org/ws-rx/wsrmp/200702"/>
+            <ns2:UsingAddressing xmlns:ns2="http://www.w3.org/2006/05/addressing/wsdl"/>
+         </wsp:All>
+      </wsp:ExactlyOne>
+    </wsp:All>
+  </wsp:Policy>
+  <types>
+    <xs:schema
+      version="1.0"
+      targetNamespace="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+      xmlns:tns="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+      xmlns:xs="http://www.w3.org/2001/XMLSchema">
+      <xs:element name="echo" type="tns:echo"/>
+      <xs:element name="echoResponse" type="tns:echoResponse"/>
+      <xs:complexType name="echo">
+        <xs:sequence>
+          <xs:element minOccurs="0" name="arg0" type="xs:string"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="echoResponse">
+        <xs:sequence>
+          <xs:element minOccurs="0" name="return" type="xs:string"/>
+        </xs:sequence>
+      </xs:complexType>
+    </xs:schema>
+  </types>
+  <message name="SecuredReqResServiceIface_echo">
+    <part name="echo" element="ns1:echo">
+    </part>
+  </message>
+  <message name="SecuredReqResServiceIface_echoResponse">
+    <part name="echoResponse" element="ns1:echoResponse">
+    </part>
+  </message>
+  <portType name="SecuredReqResServiceIface">
+    <operation name="echo" parameterOrder="echo">
+      <input message="ns1:SecuredReqResServiceIface_echo">
+    </input>
+      <output message="ns1:SecuredReqResServiceIface_echoResponse">
+    </output>
+    </operation>
+  </portType>
+  <binding name="SecuredReqResServiceIfaceBinding" type="ns1:SecuredReqResServiceIface">
+    <wsp:PolicyReference URI="#wsrm11policy"/>
+    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="echo">
+      <soap:operation soapAction=""/>
+      <input>
+        <soap:body use="literal"/>
+      </input>
+      <output>
+        <soap:body use="literal"/>
+      </output>
+    </operation>
+  </binding>
+  <service name="SecuredReqResService">
+    <port name="SecuredReqResPort" binding="ns1:SecuredReqResServiceIfaceBinding">
+      <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+    </port>
+  </service>
+</definitions>


Property changes on: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/secure/wsdl/SecuredReqResService.wsdl
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/standard-jaxws-endpoint-config.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/standard-jaxws-endpoint-config.xml	                        (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/standard-jaxws-endpoint-config.xml	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jaxws-config
+  xmlns="urn:jboss:jaxws-config:2.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+  xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd">
+
+  <endpoint-config>
+    <config-name>Standard Endpoint</config-name>
+    <post-handler-chains>
+      <javaee:handler-chain>
+        <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
+        <javaee:handler>
+          <javaee:handler-name>WSAddressing Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingServerHandler</javaee:handler-class>
+        </javaee:handler>
+        <javaee:handler>
+          <javaee:handler-name>WSRM Handler</javaee:handler-name>
+          <javaee:handler-class>org.jboss.ws.extensions.wsrm.jaxws.RMServerHandler</javaee:handler-class>
+        </javaee:handler>
+      </javaee:handler-chain>
+    </post-handler-chains>
+  </endpoint-config>
+
+</jaxws-config>


Property changes on: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/standard-jaxws-endpoint-config.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/web.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/web.xml	                        (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/web.xml	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app 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"
+  version="2.4">
+
+  <servlet>
+    <servlet-name>OneWayService</servlet-name>
+    <servlet-class>org.jboss.test.ws.jaxws.wsrm.services.OneWayServiceImpl</servlet-class>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>OneWayService</servlet-name>
+    <url-pattern>/OneWayService</url-pattern>
+  </servlet-mapping>
+
+  <servlet>
+    <servlet-name>ReqResService</servlet-name>
+    <servlet-class>org.jboss.test.ws.jaxws.wsrm.services.ReqResServiceImpl</servlet-class>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>ReqResService</servlet-name>
+    <url-pattern>/ReqResService</url-pattern>
+  </servlet-mapping>
+
+</web-app>


Property changes on: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/web.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/wsdl/OneWayService.wsdl
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/wsdl/OneWayService.wsdl	                        (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/wsdl/OneWayService.wsdl	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
+  name="OneWayService"
+  targetNamespace="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+  xmlns:ns1="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+  xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+  xmlns="http://schemas.xmlsoap.org/wsdl/">
+  <wsp:UsingPolicy/>
+  <wsp:Policy
+    wsu:Id="wsrm11policy"
+    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+    <wsp:All>
+      <wsp:ExactlyOne>
+         <wsp:All>
+            <ns1:RMAssertion xmlns:ns1="http://docs.oasis-open.org/ws-rx/wsrmp/200702"/>
+            <ns2:UsingAddressing xmlns:ns2="http://www.w3.org/2006/05/addressing/wsdl"/>
+         </wsp:All>
+      </wsp:ExactlyOne>
+    </wsp:All>
+  </wsp:Policy>
+  <types>
+    <xs:schema
+      version="1.0"
+      targetNamespace="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+      xmlns:tns="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+      xmlns:xs="http://www.w3.org/2001/XMLSchema">
+      <xs:element name="method1" type="tns:method1"/>
+      <xs:element name="method2" type="tns:method2"/>
+      <xs:element name="method3" type="tns:method3"/>
+      <xs:complexType name="method1">
+        <xs:sequence/>
+      </xs:complexType>
+      <xs:complexType name="method2">
+        <xs:sequence>
+          <xs:element minOccurs="0" name="arg0" type="xs:string"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="method3">
+        <xs:sequence>
+          <xs:element maxOccurs="unbounded" minOccurs="0" name="arg0" type="xs:string"/>
+        </xs:sequence>
+      </xs:complexType>
+    </xs:schema>
+  </types>
+  <message name="OneWayServiceIface_method3">
+    <part name="method3" element="ns1:method3">
+    </part>
+  </message>
+  <message name="OneWayServiceIface_method1">
+    <part name="method1" element="ns1:method1">
+    </part>
+  </message>
+  <message name="OneWayServiceIface_method2">
+    <part name="method2" element="ns1:method2">
+    </part>
+  </message>
+  <portType name="OneWayServiceIface">
+    <operation name="method1">
+      <input message="ns1:OneWayServiceIface_method1">
+    </input>
+    </operation>
+    <operation name="method2">
+      <input message="ns1:OneWayServiceIface_method2">
+    </input>
+    </operation>
+    <operation name="method3">
+      <input message="ns1:OneWayServiceIface_method3">
+    </input>
+    </operation>
+  </portType>
+  <binding name="OneWayServiceIfaceBinding" type="ns1:OneWayServiceIface">
+    <wsp:PolicyReference URI="#wsrm11policy"/>
+    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="method1">
+      <soap:operation soapAction=""/>
+      <input>
+        <soap:body use="literal"/>
+      </input>
+    </operation>
+    <operation name="method2">
+      <soap:operation soapAction=""/>
+      <input>
+        <soap:body use="literal"/>
+      </input>
+    </operation>
+    <operation name="method3">
+      <soap:operation soapAction=""/>
+      <input>
+        <soap:body use="literal"/>
+      </input>
+    </operation>
+  </binding>
+  <service name="OneWayService">
+    <port name="OneWayPort" binding="ns1:OneWayServiceIfaceBinding">
+      <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+    </port>
+  </service>
+</definitions>


Property changes on: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/wsdl/OneWayService.wsdl
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/wsdl/ReqResService.wsdl
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/wsdl/ReqResService.wsdl	                        (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/wsdl/ReqResService.wsdl	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
+  name="ReqResService"
+  targetNamespace="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+  xmlns:ns1="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+  xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+  xmlns="http://schemas.xmlsoap.org/wsdl/">
+  <wsp:UsingPolicy/>
+  <wsp:Policy
+    wsu:Id="wsrm11policy"
+    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+    <wsp:All>
+      <wsp:ExactlyOne>
+         <wsp:All>
+            <ns1:RMAssertion xmlns:ns1="http://docs.oasis-open.org/ws-rx/wsrmp/200702"/>
+            <ns2:UsingAddressing xmlns:ns2="http://www.w3.org/2006/05/addressing/wsdl"/>
+         </wsp:All>
+      </wsp:ExactlyOne>
+    </wsp:All>
+  </wsp:Policy>
+  <types>
+    <xs:schema
+       version="1.0"
+       targetNamespace="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+       xmlns:tns="http://www.jboss.org/jbossws/ws-extensions/wsrm"
+       xmlns:xs="http://www.w3.org/2001/XMLSchema">
+      <xs:element name="echo" type="tns:echo"/>
+      <xs:element name="echoResponse" type="tns:echoResponse"/>
+      <xs:complexType name="echo">
+        <xs:sequence>
+          <xs:element minOccurs="0" name="arg0" type="xs:string"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="echoResponse">
+        <xs:sequence>
+          <xs:element minOccurs="0" name="return" type="xs:string"/>
+        </xs:sequence>
+      </xs:complexType>
+    </xs:schema>
+  </types>
+  <message name="ReqResServiceIface_echo">
+    <part name="echo" element="ns1:echo">
+    </part>
+  </message>
+  <message name="ReqResServiceIface_echoResponse">
+    <part name="echoResponse" element="ns1:echoResponse">
+    </part>
+  </message>
+  <portType name="ReqResServiceIface">
+    <operation name="echo" parameterOrder="echo">
+      <input message="ns1:ReqResServiceIface_echo">
+    </input>
+      <output message="ns1:ReqResServiceIface_echoResponse">
+    </output>
+    </operation>
+  </portType>
+  <binding name="ReqResServiceIfaceBinding" type="ns1:ReqResServiceIface">
+    <wsp:PolicyReference URI="#wsrm11policy"/>
+    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="echo">
+      <soap:operation soapAction=""/>
+      <input>
+        <soap:body use="literal"/>
+      </input>
+      <output>
+        <soap:body use="literal"/>
+      </output>
+    </operation>
+  </binding>
+  <service name="ReqResService">
+    <port name="ReqResPort" binding="ns1:ReqResServiceIfaceBinding">
+      <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+    </port>
+  </service>
+</definitions>


Property changes on: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/wsdl/ReqResService.wsdl
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/META-INF/jboss-wsse-client.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/META-INF/jboss-wsse-client.xml	                        (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/META-INF/jboss-wsse-client.xml	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-ws-security xmlns="http://www.jboss.com/ws-security/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
+  <config>
+    <sign type="x509v3" alias="wsse"/>
+    <requires>
+      <signature/>
+    </requires>
+  </config>
+</jboss-ws-security>
\ No newline at end of file


Property changes on: stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/META-INF/jboss-wsse-client.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/WEB-INF/jboss-wsse-server.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/WEB-INF/jboss-wsse-server.xml	                        (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/WEB-INF/jboss-wsse-server.xml	2008-04-11 16:35:13 UTC (rev 6364)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-ws-security xmlns="http://www.jboss.com/ws-security/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
+  <key-store-file>WEB-INF/wsse.keystore</key-store-file>
+  <key-store-password>jbossws</key-store-password>
+  <trust-store-file>WEB-INF/wsse.truststore</trust-store-file>
+  <trust-store-password>jbossws</trust-store-password>
+  <config>
+    <sign type="x509v3" alias="wsse"/>
+    <requires>
+      <signature/>
+    </requires>
+  </config>
+</jboss-ws-security>
\ No newline at end of file


Property changes on: stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/WEB-INF/jboss-wsse-server.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/wsse.keystore
===================================================================
(Binary files differ)


Property changes on: stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/wsse.keystore
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/wsse.truststore
===================================================================
(Binary files differ)


Property changes on: stack/native/trunk/src/test/resources/jaxws/wsrm/wssecurity/wsse.truststore
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




More information about the jbossws-commits mailing list