JBossWS SVN: r6364 - in stack/native/trunk: src/test/java/org/jboss/test/ws/jaxws/wsrm and 14 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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(a)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;
+
+@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;
+
+@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;
+
+@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;
+
+@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;
+
+@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;
+
+@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;
+
+@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;
+
+@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-utilit...">
+ <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-utilit...">
+ <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-utilit...">
+ <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-utilit...">
+ <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
16 years, 9 months
JBossWS SVN: r6363 - spi/trunk.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-11 12:07:20 -0400 (Fri, 11 Apr 2008)
New Revision: 6363
Removed:
spi/trunk/version.properties
Modified:
spi/trunk/build.xml
spi/trunk/pom.xml
Log:
Use jboss parent. Remove version.properties
Modified: spi/trunk/build.xml
===================================================================
--- spi/trunk/build.xml 2008-04-11 15:42:49 UTC (rev 6362)
+++ spi/trunk/build.xml 2008-04-11 16:07:20 UTC (rev 6363)
@@ -21,6 +21,8 @@
<property name="spi.etc.dir" value="${spi.dir}/src/main/etc"/>
<property name="spi.target.dir" value="${spi.dir}/target"/>
+ <property name="repository.id" value="3.0-snapshot"/>
+
<!-- ================================================================== -->
<!-- Initialization -->
<!-- ================================================================== -->
@@ -32,8 +34,12 @@
<fail message="Cannot find ant.properties. Did you copy/edit ant.properties.example?" unless="ant.properties.available"/>
<property file="${spi.dir}/ant.properties"/>
- <property file="${spi.dir}/version.properties"/>
+ <xmlproperty file="${spi.dir}/pom.xml"/>
+ <property name="version.id" value="${project.version}"/>
+
+ <echo message="version.id=${version.id}"/>
+ <echo message="repository.id=${repository.id}"/>
</target>
<!-- ================================================================== -->
Modified: spi/trunk/pom.xml
===================================================================
--- spi/trunk/pom.xml 2008-04-11 15:42:49 UTC (rev 6362)
+++ spi/trunk/pom.xml 2008-04-11 16:07:20 UTC (rev 6363)
@@ -63,6 +63,13 @@
</dependency>
</dependencies>
+ <!-- Parent -->
+ <parent>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-parent</artifactId>
+ <version>3</version>
+ </parent>
+
<!-- Plugins -->
<build>
<plugins>
Deleted: spi/trunk/version.properties
===================================================================
--- spi/trunk/version.properties 2008-04-11 15:42:49 UTC (rev 6362)
+++ spi/trunk/version.properties 2008-04-11 16:07:20 UTC (rev 6363)
@@ -1,5 +0,0 @@
-
-# $Id: version.properties 3956 2007-07-19 18:03:54Z thomas.diesler(a)jboss.com $
-
-version.id=3.0.0-SNAPSHOT
-repository.id=3.0-snapshot
16 years, 9 months
JBossWS SVN: r6362 - spi/trunk.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-11 11:42:49 -0400 (Fri, 11 Apr 2008)
New Revision: 6362
Modified:
spi/trunk/version.properties
Log:
repository.id=3.0-snapshot
Modified: spi/trunk/version.properties
===================================================================
--- spi/trunk/version.properties 2008-04-11 15:32:47 UTC (rev 6361)
+++ spi/trunk/version.properties 2008-04-11 15:42:49 UTC (rev 6362)
@@ -2,4 +2,4 @@
# $Id: version.properties 3956 2007-07-19 18:03:54Z thomas.diesler(a)jboss.com $
version.id=3.0.0-SNAPSHOT
-repository.id=snapshot
+repository.id=3.0-snapshot
16 years, 9 months
JBossWS SVN: r6361 - spi/trunk.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-11 11:32:47 -0400 (Fri, 11 Apr 2008)
New Revision: 6361
Modified:
spi/trunk/build.xml
Log:
Install sources
Modified: spi/trunk/build.xml
===================================================================
--- spi/trunk/build.xml 2008-04-11 15:19:29 UTC (rev 6360)
+++ spi/trunk/build.xml 2008-04-11 15:32:47 UTC (rev 6361)
@@ -40,17 +40,22 @@
<!-- Installation -->
<!-- ================================================================== -->
- <!-- Release to jboss.local.repository -->
+ <!-- Install to jboss.local.repository -->
<target name="install" depends="init" description="Install to jboss.local.repository">
- <!-- Check if ant.properties is available -->
+ <!-- Check if the target jar is available -->
<available property="jbossws.spi.jar.available" file="${spi.target.dir}/jbossws-spi-${version.id}.jar"/>
<fail message="Cannot find jbossws-spi-${version.id}.jar. Did you run 'mvn package'?" unless="jbossws.spi.jar.available"/>
+ <!-- Check if the source jar is available -->
+ <available property="jbossws.spi.sources.jar.available" file="${spi.target.dir}/jbossws-spi-${version.id}-sources.jar"/>
+ <fail message="Cannot find jbossws-spi-${version.id}-sources.jar. Did you run 'mvn source:jar'?" unless="jbossws.spi.sources.jar.available"/>
+
<!-- jboss/jbossws-spi -->
<property name="jboss.repository.dir" value="${jboss.local.repository}/jboss"/>
<mkdir dir="${jboss.repository.dir}/jbossws-spi/${repository.id}/lib"/>
<copy file="${spi.target.dir}/jbossws-spi-${version.id}.jar" tofile="${jboss.repository.dir}/jbossws-spi/${repository.id}/lib/jbossws-spi.jar" overwrite="true"/>
+ <copy file="${spi.target.dir}/jbossws-spi-${version.id}-sources.jar" tofile="${jboss.repository.dir}/jbossws-spi/${repository.id}/lib/jbossws-spi-src.jar" overwrite="true"/>
<copy tofile="${jboss.repository.dir}/jbossws-spi/${repository.id}/component-info.xml" file="${spi.etc.dir}/component-info.xml" filtering="true" overwrite="true">
<filterset>
<filtersfile file="${spi.dir}/version.properties"/>
16 years, 9 months
JBossWS SVN: r6360 - spi/trunk.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-11 11:19:29 -0400 (Fri, 11 Apr 2008)
New Revision: 6360
Modified:
spi/trunk/build.xml
Log:
Fix taget jar name
Modified: spi/trunk/build.xml
===================================================================
--- spi/trunk/build.xml 2008-04-11 15:12:57 UTC (rev 6359)
+++ spi/trunk/build.xml 2008-04-11 15:19:29 UTC (rev 6360)
@@ -45,12 +45,12 @@
<!-- Check if ant.properties is available -->
<available property="jbossws.spi.jar.available" file="${spi.target.dir}/jbossws-spi-${version.id}.jar"/>
- <fail message="Cannot find jbossws-spi-${version.id}.jar. Did you run 'mvn package'?" unless="ant.properties.available"/>
+ <fail message="Cannot find jbossws-spi-${version.id}.jar. Did you run 'mvn package'?" unless="jbossws.spi.jar.available"/>
<!-- jboss/jbossws-spi -->
<property name="jboss.repository.dir" value="${jboss.local.repository}/jboss"/>
<mkdir dir="${jboss.repository.dir}/jbossws-spi/${repository.id}/lib"/>
- <copy file="${spi.target.dir}/jbossws-spi-${version.id}.jar" todir="${jboss.repository.dir}/jbossws-spi/${repository.id}/lib" overwrite="true"/>
+ <copy file="${spi.target.dir}/jbossws-spi-${version.id}.jar" tofile="${jboss.repository.dir}/jbossws-spi/${repository.id}/lib/jbossws-spi.jar" overwrite="true"/>
<copy tofile="${jboss.repository.dir}/jbossws-spi/${repository.id}/component-info.xml" file="${spi.etc.dir}/component-info.xml" filtering="true" overwrite="true">
<filterset>
<filtersfile file="${spi.dir}/version.properties"/>
@@ -58,6 +58,14 @@
</copy>
</target>
- <target name="main" description="Executes the default target (most)." depends="install"/>
+ <!-- ================================================================== -->
+ <!-- Miscellaneous -->
+ <!-- ================================================================== -->
+ <target name="clean" depends="init" description="Cleans up most generated files.">
+ <delete dir="${spi.target.dir}"/>
+ </target>
+
+ <target name="main" description="Executes the default target (install)." depends="install"/>
+
</project>
16 years, 9 months
JBossWS SVN: r6359 - in spi/trunk: src/main/etc and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-11 11:12:57 -0400 (Fri, 11 Apr 2008)
New Revision: 6359
Added:
spi/trunk/pom.xml
Removed:
spi/trunk/ant-import/
spi/trunk/src/main/etc/default.mf
spi/trunk/src/main/etc/pom.xml
spi/trunk/tools/
Modified:
spi/trunk/
spi/trunk/.classpath
spi/trunk/ant.properties.example
spi/trunk/build.xml
spi/trunk/src/test/java/org/jboss/test/wsf/spi/tools/AntConsumeTestCase.java
spi/trunk/src/test/java/org/jboss/test/wsf/spi/tools/AntProvideTestCase.java
spi/trunk/src/test/java/org/jboss/test/wsf/spi/tools/CmdConsumeTracker.java
spi/trunk/version.properties
Log:
Migrate to maven build
Property changes on: spi/trunk
___________________________________________________________________
Name: svn:ignore
- ant.properties
version.properties.md5
output*
thirdparty
+ ant.properties
version.properties.md5
output*
thirdparty
target
Modified: spi/trunk/.classpath
===================================================================
--- spi/trunk/.classpath 2008-04-11 14:57:24 UTC (rev 6358)
+++ spi/trunk/.classpath 2008-04-11 15:12:57 UTC (rev 6359)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3.8.1"/>
<classpathentry kind="lib" path="thirdparty/activation.jar"/>
@@ -19,5 +20,5 @@
<classpathentry kind="lib" path="thirdparty/jboss-dependency.jar"/>
<classpathentry kind="lib" path="thirdparty/jboss-javaee.jar"/>
<classpathentry kind="lib" path="thirdparty/ant.jar"/>
- <classpathentry kind="output" path="output/eclipse"/>
+ <classpathentry kind="output" path="target/eclipse"/>
</classpath>
Modified: spi/trunk/ant.properties.example
===================================================================
--- spi/trunk/ant.properties.example 2008-04-11 14:57:24 UTC (rev 6358)
+++ spi/trunk/ant.properties.example 2008-04-11 15:12:57 UTC (rev 6359)
@@ -3,21 +3,5 @@
#
# $Id: ant.properties.example 3995 2007-07-26 08:52:45Z thomas.diesler(a)jboss.com $
-# JBoss Repository
-#jboss.repository=file:/home/tdiesler/svn/jboss.local.repository
-jboss.repository=http://repository.jboss.org
-
-# JBossWS Release
-jboss.local.repository=/home/tdiesler/svn/jboss.local.repository
-
-# See http://wiki.jboss.org/wiki/Wiki.jsp?page=MavenReleaseRepository
-jboss.local.maven.repository=/home/hbraun/dev/prj/repository.jboss.org/maven2
-
-# Force thirdparty HTTP get
-#force.thirdparty.get=true
-
-# Java Compiler options
-javac.debug=yes
-javac.deprecation=no
-javac.fail.onerror=yes
-javac.verbose=no
+# JBossWS local repository
+jboss.local.repository=/home/tdiesler/svn/jboss.local.repository
\ No newline at end of file
Modified: spi/trunk/build.xml
===================================================================
--- spi/trunk/build.xml 2008-04-11 14:57:24 UTC (rev 6358)
+++ spi/trunk/build.xml 2008-04-11 15:12:57 UTC (rev 6359)
@@ -11,174 +11,53 @@
<!-- $Id$ -->
-<project name="JBossWS-SPI" default="main" basedir="." xmlns:artifact="urn:maven-artifact-ant">
+<project name="JBossWS-SPI" default="main" basedir=".">
- <import file="${basedir}/ant-import/build-setup.xml"/>
- <import file="${basedir}/ant-import/build-release.xml"/>
- <import file="${basedir}/ant-import/build-thirdparty.xml"/>
- <import file="${basedir}/ant-import/build-testsuite.xml"/>
-
<!-- ================================================================== -->
<!-- Setup -->
<!-- ================================================================== -->
- <path id="maven-ant-tasks.classpath" path="tools/mvn/maven-ant-tasks-2.0.8.jar" />
- <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
- uri="urn:maven-artifact-ant"
- classpathref="maven-ant-tasks.classpath" />
+ <property name="spi.dir" value="${basedir}"/>
+ <property name="spi.etc.dir" value="${spi.dir}/src/main/etc"/>
+ <property name="spi.target.dir" value="${spi.dir}/target"/>
- <property name="spi.src.dir" value="${spi.dir}/src/main"/>
- <property name="spi.etc.dir" value="${spi.src.dir}/etc"/>
- <property name="spi.java.dir" value="${spi.src.dir}/java"/>
- <property name="spi.resources.dir" value="${spi.src.dir}/resources"/>
- <property name="spi.java.dir" value="${spi.src.dir}/java"/>
- <property name="spi.output.dir" value="${spi.dir}/output"/>
-
- <property name="spi.test.dir" value="${spi.dir}/src/test"/>
- <property name="spi.test.java.dir" value="${spi.test.dir}/java"/>
- <property name="spi.test.resources.dir" value="${spi.test.dir}/resources"/>
- <property name="spi.test.output.dir" value="${spi.output.dir}/test"/>
-
- <property name="spi.output.apidocs.dir" value="${spi.output.dir}/apidocs"/>
- <property name="spi.output.etc.dir" value="${spi.output.dir}/etc"/>
- <property name="spi.output.classes.dir" value="${spi.output.dir}/classes"/>
- <property name="spi.output.lib.dir" value="${spi.output.dir}/lib"/>
-
<!-- ================================================================== -->
<!-- Initialization -->
<!-- ================================================================== -->
- <target name="init" depends="prepare,thirdparty-classpath">
- </target>
+ <target name="init">
+
+ <!-- Check if ant.properties is available -->
+ <available property="ant.properties.available" file="${basedir}/ant.properties"/>
+ <fail message="Cannot find ant.properties. Did you copy/edit ant.properties.example?" unless="ant.properties.available"/>
+
+ <property file="${spi.dir}/ant.properties"/>
+ <property file="${spi.dir}/version.properties"/>
+
+ </target>
<!-- ================================================================== -->
- <!-- Compile -->
+ <!-- Installation -->
<!-- ================================================================== -->
+
+ <!-- Release to jboss.local.repository -->
+ <target name="install" depends="init" description="Install to jboss.local.repository">
- <!--
- | Compile everything.
- |
- | This target should depend on other compile-* targets for each
- | different type of compile that needs to be performed, short of
- | documentation compiles.
- -->
-
- <target name="compile" depends="init,compile-classes,compile-etc"
- description="Compile all source files."/>
-
- <!-- Compile java sources -->
- <target name="compile-classes" depends="init">
-
- <!-- Compile spi classes with jdk1.5 -->
- <mkdir dir="${spi.output.classes.dir}"/>
- <javac srcdir="${spi.java.dir}" sourcepath="" destdir="${spi.output.classes.dir}" encoding="utf-8" debug="${javac.debug}" verbose="${javac.verbose}"
- deprecation="${javac.deprecation}" failonerror="${javac.fail.onerror}" source="1.5" target="1.5">
- <include name="org/jboss/wsf/**"/>
- <include name="org/jboss/integration/**"/>
- <classpath refid="spi.thirdparty.classpath"/>
- </javac>
+ <!-- Check if ant.properties is available -->
+ <available property="jbossws.spi.jar.available" file="${spi.target.dir}/jbossws-spi-${version.id}.jar"/>
+ <fail message="Cannot find jbossws-spi-${version.id}.jar. Did you run 'mvn package'?" unless="ant.properties.available"/>
+
+ <!-- jboss/jbossws-spi -->
+ <property name="jboss.repository.dir" value="${jboss.local.repository}/jboss"/>
+ <mkdir dir="${jboss.repository.dir}/jbossws-spi/${repository.id}/lib"/>
+ <copy file="${spi.target.dir}/jbossws-spi-${version.id}.jar" todir="${jboss.repository.dir}/jbossws-spi/${repository.id}/lib" overwrite="true"/>
+ <copy tofile="${jboss.repository.dir}/jbossws-spi/${repository.id}/component-info.xml" file="${spi.etc.dir}/component-info.xml" filtering="true" overwrite="true">
+ <filterset>
+ <filtersfile file="${spi.dir}/version.properties"/>
+ </filterset>
+ </copy>
</target>
+
+ <target name="main" description="Executes the default target (most)." depends="install"/>
- <!-- Compile etc files (manifests and such) -->
- <target name="compile-etc" depends="init">
- <mkdir dir="${spi.output.etc.dir}"/>
- <copy todir="${spi.output.etc.dir}" filtering="yes" overwrite="true">
- <fileset dir="${spi.etc.dir}">
- <include name="default.mf"/>
- <include name="pom.xml"/>
- </fileset>
- <filterset>
- <filter token="java.vm.version" value="${java.vm.version}"/>
- <filter token="java.vm.vendor" value="${java.vm.vendor}"/>
- <filter token="build.id" value="${build.id}"/>
- <filter token="implementation.version" value="jbossws-${version.id}"/>
- <filtersfile file="${spi.dir}/version.properties"/>
- </filterset>
- </copy>
- </target>
-
- <!-- ================================================================== -->
- <!-- Archives -->
- <!-- ================================================================== -->
-
- <!--
- | Build all jar files.
- -->
- <target name="jars" depends="compile,module-jars" description="Builds all jar files.">
- </target>
-
- <!--
- | Build all jar files.
- -->
- <target name="module-jars">
-
- <!-- Build jbossws-spi.jar -->
- <mkdir dir="${spi.output.lib.dir}"/>
- <jar jarfile="${spi.output.lib.dir}/jbossws-spi.jar" manifest="${spi.output.etc.dir}/default.mf">
- <fileset dir="${spi.output.classes.dir}">
- <include name="org/jboss/wsf/**"/>
- <include name="org/jboss/integration/**"/>
- </fileset>
- </jar>
-
- <!-- Build jbossws-spi-src.zip -->
- <zip zipfile="${spi.output.lib.dir}/jbossws-spi-src.zip" >
- <fileset dir="${spi.java.dir}"/>
- </zip>
-
- </target>
-
- <!-- ================================================================== -->
- <!-- Documentation -->
- <!-- ================================================================== -->
-
- <!-- Generate the JavaDoc -->
- <target name="javadoc" depends="init" description="Generate the Javadoc">
-
- <mkdir dir="${spi.output.apidocs.dir}"/>
- <javadoc destdir="${spi.output.apidocs.dir}" author="true" version="true" use="true" windowtitle="JBossWS API">
- <classpath refid="spi.thirdparty.classpath"/>
- <packageset dir="${spi.java.dir}" defaultexcludes="yes">
- <include name="org/jboss/ws/**"/>
- <include name="org/jboss/wsf/**"/>
- </packageset>
- <doctitle><![CDATA[<h1>JBoss Web Service Framework - SPI</h1>]]></doctitle>
- <tag name="todo" scope="all" description="To do:"/>
- </javadoc>
- </target>
-
- <target name="clean" depends="prepare" description="Cleans up most generated files.">
- <delete dir="${spi.output.dir}"/>
- </target>
-
- <target name="clobber" depends="clean" description="Cleans up all generated files.">
- <delete dir="${spi.dir}/thirdparty"/>
- </target>
-
- <target name="main" description="Executes the default target (most)." depends="most"/>
-
- <target name="most" description="Builds almost everything." depends="jars"/>
-
- <target name="all" description="Create a distribution zip file" depends="main">
- </target>
-
- <!-- ================================================================== -->
- <!-- Publish maven artifacts -->
- <!-- ================================================================== -->
-
- <target name="mvn.install.local" depends="compile-etc" description="Publish jbossws-spi.jar to ~/m2/ (local maven repo)">
- <artifact:pom id="maven.project" file="${spi.output.etc.dir}/pom.xml" />
- <artifact:install file="${spi.output.lib.dir}/jbossws-spi.jar">
- <pom refid="maven.project"/>
- </artifact:install>
- </target>
-
- <target name="mvn.install.remote" depends="compile-etc" description="Publish jbossws-spi.jar to a svn checkout of repository.jboss.org/maven2">
- <artifact:pom id="maven.project" file="${spi.output.etc.dir}/pom.xml" />
- <artifact:deploy file="${spi.output.lib.dir}/jbossws-spi.jar">
- <remoteRepository url="file://${jboss.local.maven.repository}"/>
- <pom refid="maven.project"/>
- </artifact:deploy>
- </target>
-
</project>
Added: spi/trunk/pom.xml
===================================================================
--- spi/trunk/pom.xml (rev 0)
+++ spi/trunk/pom.xml 2008-04-11 15:12:57 UTC (rev 6359)
@@ -0,0 +1,121 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.wsf</groupId>
+ <artifactId>jbossws-spi</artifactId>
+ <packaging>jar</packaging>
+ <version>3.0.0-SNAPSHOT</version>
+ <name>JBoss Web Services - SPI</name>
+ <organization>
+ <name>JBoss, a division of Red Hat</name>
+ <url>http://www.jboss.org</url>
+ </organization>
+ <url>http://maven.apache.org</url>
+
+ <!-- Dependencies -->
+ <dependencies>
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ </dependency>
+ <dependency>
+ <groupId>gnu-getopt</groupId>
+ <artifactId>getopt</artifactId>
+ <version>1.0.13</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.ejb</groupId>
+ <artifactId>ejb-api</artifactId>
+ <version>3.0</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <version>2.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant</artifactId>
+ <version>1.7.0</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.microcontainer</groupId>
+ <artifactId>jboss-kernel</artifactId>
+ <version>2.0.0.Beta4</version>
+ </dependency>
+ <dependency>
+ <groupId>sun-jaxws</groupId>
+ <artifactId>jaxws-api</artifactId>
+ <version>2.1.1</version>
+ </dependency>
+ </dependencies>
+
+ <!-- Plugins -->
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <!-- Repositories -->
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Releases Repository</name>
+ <url>http://repository.jboss.org/maven2</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshots Repository</name>
+ <url>http://snapshots.jboss.org/maven2</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>java.net</id>
+ <url>http://download.java.net/maven/1</url>
+ <layout>legacy</layout>
+ </repository>
+ </repositories>
+</project>
Property changes on: spi/trunk/pom.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Deleted: spi/trunk/src/main/etc/default.mf
===================================================================
--- spi/trunk/src/main/etc/default.mf 2008-04-11 14:57:24 UTC (rev 6358)
+++ spi/trunk/src/main/etc/default.mf 2008-04-11 15:12:57 UTC (rev 6359)
@@ -1,11 +0,0 @@
-Manifest-Version: 1.2
-Created-By: @java.vm.version@ (@java.vm.vendor@)
-Specification-Title: @specification.title@
-Specification-Version: @specification.version@
-Specification-Vendor: @specification.vendor@
-Implementation-Title: @implementation.title@
-Implementation-URL: @implementation.url@
-Implementation-Version: @implementation.version@ (build=(a)build.id@)
-Implementation-Vendor: @implementation.vendor@
-Implementation-Vendor-Id: @implementation.vendor.id@
-Class-Path: getopt.jar
\ No newline at end of file
Deleted: spi/trunk/src/main/etc/pom.xml
===================================================================
--- spi/trunk/src/main/etc/pom.xml 2008-04-11 14:57:24 UTC (rev 6358)
+++ spi/trunk/src/main/etc/pom.xml 2008-04-11 15:12:57 UTC (rev 6359)
@@ -1,6 +0,0 @@
-<project>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.jboss.ws</groupId>
- <artifactId>jbossws-spi</artifactId>
- <version>@repository.id@</version>
-</project>
Modified: spi/trunk/src/test/java/org/jboss/test/wsf/spi/tools/AntConsumeTestCase.java
===================================================================
--- spi/trunk/src/test/java/org/jboss/test/wsf/spi/tools/AntConsumeTestCase.java 2008-04-11 14:57:24 UTC (rev 6358)
+++ spi/trunk/src/test/java/org/jboss/test/wsf/spi/tools/AntConsumeTestCase.java 2008-04-11 15:12:57 UTC (rev 6359)
@@ -21,6 +21,8 @@
*/
package org.jboss.test.wsf.spi.tools;
+import java.io.File;
+
/**
* Test the WSConsumeTask.
* This test needs to be executed in 'SPI_HOME/output/tests',
@@ -44,7 +46,13 @@
"org.jboss.test.wsf.spi.tools.CmdConsumeTrackerFactory"
);
- configureProject("resources/smoke/tools/consume-test.xml");
+ // maven style
+ if (new File("src/test/resources/smoke/tools/consume-test.xml").exists())
+ configureProject("src/test/resources/smoke/tools/consume-test.xml");
+
+ // ant style
+ else if (new File("resources/smoke/tools/consume-test.xml").exists())
+ configureProject("resources/smoke/tools/consume-test.xml");
}
public void testPlainInvocation()
Modified: spi/trunk/src/test/java/org/jboss/test/wsf/spi/tools/AntProvideTestCase.java
===================================================================
--- spi/trunk/src/test/java/org/jboss/test/wsf/spi/tools/AntProvideTestCase.java 2008-04-11 14:57:24 UTC (rev 6358)
+++ spi/trunk/src/test/java/org/jboss/test/wsf/spi/tools/AntProvideTestCase.java 2008-04-11 15:12:57 UTC (rev 6359)
@@ -21,6 +21,8 @@
*/
package org.jboss.test.wsf.spi.tools;
+import java.io.File;
+
/**
* @author Heiko.Braun(a)jboss.com
* @version $Revision$
@@ -40,7 +42,13 @@
"org.jboss.test.wsf.spi.tools.CmdProvideTrackerFactory"
);
- configureProject("resources/smoke/tools/provide-test.xml");
+ // maven style
+ if (new File("src/test/resources/smoke/tools/provide-test.xml").exists())
+ configureProject("src/test/resources/smoke/tools/provide-test.xml");
+
+ // ant style
+ else if (new File("resources/smoke/tools/provide-test.xml").exists())
+ configureProject("resources/smoke/tools/provide-test.xml");
}
public void testPlainInvocation()
Modified: spi/trunk/src/test/java/org/jboss/test/wsf/spi/tools/CmdConsumeTracker.java
===================================================================
--- spi/trunk/src/test/java/org/jboss/test/wsf/spi/tools/CmdConsumeTracker.java 2008-04-11 14:57:24 UTC (rev 6358)
+++ spi/trunk/src/test/java/org/jboss/test/wsf/spi/tools/CmdConsumeTracker.java 2008-04-11 15:12:57 UTC (rev 6359)
@@ -36,58 +36,75 @@
{
public static String LAST_EVENT = "";
+ @Override
public void setBindingFiles(List<File> bindingFiles)
{
LAST_EVENT += "setBindingFiles";
}
+ @Override
public void setCatalog(File catalog)
{
LAST_EVENT += "setCatalog";
}
+ @Override
public void setOutputDirectory(File directory)
{
LAST_EVENT += "setOutputDirectory";
}
+ @Override
public void setSourceDirectory(File directory)
{
LAST_EVENT += "setSourceDirectory";
}
+ @Override
public void setGenerateSource(boolean generateSource)
{
LAST_EVENT += "setGenerateSource";
}
+ @Override
public void setTargetPackage(String targetPackage)
{
LAST_EVENT += "setTargetPackage";
}
+ @Override
public void setWsdlLocation(String wsdlLocation)
{
LAST_EVENT += "setWsdlLocation";
}
+ @Override
public void setMessageStream(PrintStream messageStream)
{
LAST_EVENT += "setMessageStream";
}
+ @Override
public void setAdditionalCompilerClassPath(List<String> classPath)
{
LAST_EVENT += "setAdditionalCompilerClassPath";
}
+ @Override
public void setTarget(String target)
{
LAST_EVENT += "setTarget";
}
+ @Override
public void consume(URL wsdl)
{
LAST_EVENT += "consume";
}
+
+ @Override
+ public void setExtension(boolean extension)
+ {
+ LAST_EVENT += "setExtension";
+ }
}
Modified: spi/trunk/version.properties
===================================================================
--- spi/trunk/version.properties 2008-04-11 14:57:24 UTC (rev 6358)
+++ spi/trunk/version.properties 2008-04-11 15:12:57 UTC (rev 6359)
@@ -1,31 +1,5 @@
# $Id: version.properties 3956 2007-07-19 18:03:54Z thomas.diesler(a)jboss.com $
-specification.title=JBossWS
-specification.vendor=JBoss (http://www.jboss.org)
-specification.version=jbossws-3.0
-
-version.id=1.0.3.DEV
+version.id=3.0.0-SNAPSHOT
repository.id=snapshot
-
-implementation.title=JBoss Web Services - SPI
-implementation.url=http://www.jboss.org/products/jbossws
-implementation.vendor=JBoss Inc.
-implementation.vendor.id=http://www.jboss.org
-
-# Thirdparty library versions
-apache-ant=1.6.5
-dom4j=1.6.1
-gnu-getopt=1.0.10
-jboss-common-core=2.0.2.GA
-jboss-common-logging-log4j=2.0.2.GA
-jboss-common-logging-spi=2.0.2.GA
-jboss-javaee=5.0.0.Beta3Update1
-jboss-jbossxb=1.0.0.GA
-jboss-microcontainer=2.0.0.Beta3
-sun-jaf=1.1
-sun-jaxb=2.1.4
-sun-jaxrpc=1.1
-sun-jaxws=2.1.1
-sun-servlet=2.5
-junit=3.8.1
16 years, 9 months
JBossWS SVN: r6358 - stack/native/branches/dlofthouse.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-04-11 10:57:24 -0400 (Fri, 11 Apr 2008)
New Revision: 6358
Added:
stack/native/branches/dlofthouse/JBWS-1316/
Log:
Branch for development.
Copied: stack/native/branches/dlofthouse/JBWS-1316 (from rev 6357, stack/native/trunk)
16 years, 9 months
JBossWS SVN: r6357 - in stack/metro/trunk: src/test/java/org/jboss/test/ws/jaxws and 11 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2008-04-11 09:21:03 -0400 (Fri, 11 Apr 2008)
New Revision: 6357
Added:
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/client/
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/client/SimpleServiceTestCase.java
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/Echo.java
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/EchoResponse.java
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/ObjectFactory.java
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/Ping.java
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/SimpleService.java
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/SimpleService_Service.java
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/package-info.java
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/SimpleServiceImpl.java
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/Echo.java
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/EchoResponse.java
stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/Ping.java
stack/metro/trunk/src/test/resources/jaxws/samples/
stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/
stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/
stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/web.xml
stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/wsdl/
stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/wsdl/SimpleService.wsdl
stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/wsdl/SimpleService_schema1.xsd
Modified:
stack/metro/trunk/ant-import-tests/build-jars-jaxws.xml
Log:
[JBWS-2138] [JBWS-2139] adding WS-RM Metro example based on prepared tutorial
Modified: stack/metro/trunk/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/metro/trunk/ant-import-tests/build-jars-jaxws.xml 2008-04-11 12:50:55 UTC (rev 6356)
+++ stack/metro/trunk/ant-import-tests/build-jars-jaxws.xml 2008-04-11 13:21:03 UTC (rev 6357)
@@ -57,6 +57,21 @@
</webinf>
</war>
+ <!-- jaxws-samples-wsrm -->
+ <war
+ warfile="${tests.output.dir}/libs/jaxws-samples-wsrm.war"
+ webxml="${tests.output.dir}/resources/jaxws/samples/wsrm/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/classes">
+ <include name="org/jboss/test/ws/jaxws/samples/wsrm/service/**"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/resources/jaxws/samples/wsrm/WEB-INF">
+ <include name="wsrm-jaxws-endpoint-config.xml"/>
+ </webinf>
+ <zipfileset
+ dir="${tests.output.dir}/resources/jaxws/samples/wsrm/WEB-INF/wsdl"
+ prefix="WEB-INF/wsdl"/>
+ </war>
+
</target>
</project>
Added: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/client/SimpleServiceTestCase.java
===================================================================
--- stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/client/SimpleServiceTestCase.java (rev 0)
+++ stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/client/SimpleServiceTestCase.java 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,71 @@
+/*
+ * 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.samples.wsrm.client;
+
+import java.lang.reflect.Method;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+import org.jboss.test.ws.jaxws.samples.wsrm.generated.SimpleService;
+
+import com.sun.xml.ws.Closeable;
+
+/**
+ * Reliable JBoss WebService client invoking one way methods
+ *
+ * @author richard.opalka(a)jboss.com
+ */
+public final class SimpleServiceTestCase extends JBossWSTest
+{
+ private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-samples-wsrm/SimpleService";
+ private SimpleService proxy;
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(SimpleServiceTestCase.class, "jaxws-samples-wsrm.war");
+ }
+
+ @Override
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+
+ QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "SimpleService");
+ URL wsdlURL = new URL(serviceURL + "?wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ proxy = (SimpleService)service.getPort(SimpleService.class);
+ }
+
+ public void test() throws Exception
+ {
+ proxy.ping(); // one way call
+ assertEquals("Hello World!", proxy.echo("Hello World!")); // request responce call
+ System.out.println("FIXME: [JBWS-2097] Unlock WS-ReliableMessaging in all stacks");
+ //((Closeable)proxy).close(); // TODO: uncomment this
+ }
+
+}
Property changes on: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/client/SimpleServiceTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/Echo.java
===================================================================
--- stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/Echo.java (rev 0)
+++ stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/Echo.java 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,60 @@
+
+package org.jboss.test.ws.jaxws.samples.wsrm.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for echo complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="echo">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "echo", propOrder = {
+ "arg0"
+})
+public class Echo {
+
+ protected String arg0;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setArg0(String value) {
+ this.arg0 = value;
+ }
+
+}
Property changes on: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/Echo.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/EchoResponse.java
===================================================================
--- stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/EchoResponse.java (rev 0)
+++ stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/EchoResponse.java 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,62 @@
+
+package org.jboss.test.ws.jaxws.samples.wsrm.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for echoResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="echoResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "echoResponse", propOrder = {
+ "_return"
+})
+public class EchoResponse {
+
+ @XmlElement(name = "return")
+ protected String _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setReturn(String value) {
+ this._return = value;
+ }
+
+}
Property changes on: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/EchoResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/ObjectFactory.java
===================================================================
--- stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/ObjectFactory.java (rev 0)
+++ stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/ObjectFactory.java 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,89 @@
+
+package org.jboss.test.ws.jaxws.samples.wsrm.generated;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.samples.wsrm.generated package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _EchoResponse_QNAME = new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "echoResponse");
+ private final static QName _Echo_QNAME = new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "echo");
+ private final static QName _Ping_QNAME = new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "ping");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.samples.wsrm.generated
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link Ping }
+ *
+ */
+ public Ping createPing() {
+ return new Ping();
+ }
+
+ /**
+ * Create an instance of {@link EchoResponse }
+ *
+ */
+ public EchoResponse createEchoResponse() {
+ return new EchoResponse();
+ }
+
+ /**
+ * Create an instance of {@link Echo }
+ *
+ */
+ public Echo createEcho() {
+ return new Echo();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link EchoResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm", name = "echoResponse")
+ public JAXBElement<EchoResponse> createEchoResponse(EchoResponse value) {
+ return new JAXBElement<EchoResponse>(_EchoResponse_QNAME, EchoResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Echo }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm", name = "echo")
+ public JAXBElement<Echo> createEcho(Echo value) {
+ return new JAXBElement<Echo>(_Echo_QNAME, Echo.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Ping }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm", name = "ping")
+ public JAXBElement<Ping> createPing(Ping value) {
+ return new JAXBElement<Ping>(_Ping_QNAME, Ping.class, null, value);
+ }
+
+}
Property changes on: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/ObjectFactory.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/Ping.java
===================================================================
--- stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/Ping.java (rev 0)
+++ stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/Ping.java 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,32 @@
+
+package org.jboss.test.ws.jaxws.samples.wsrm.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for ping complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="ping">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ping")
+public class Ping {
+
+
+}
Property changes on: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/Ping.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/SimpleService.java
===================================================================
--- stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/SimpleService.java (rev 0)
+++ stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/SimpleService.java 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,45 @@
+
+package org.jboss.test.ws.jaxws.samples.wsrm.generated;
+
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.3-b02-
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "SimpleService", targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm")
+public interface SimpleService {
+
+
+ /**
+ *
+ */
+ @WebMethod
+ @Oneway
+ @RequestWrapper(localName = "ping", targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm", className = "org.jboss.test.ws.jaxws.samples.wsrm.generated.Ping")
+ public void ping();
+
+ /**
+ *
+ * @param arg0
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "echo", targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm", className = "org.jboss.test.ws.jaxws.samples.wsrm.generated.Echo")
+ @ResponseWrapper(localName = "echoResponse", targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm", className = "org.jboss.test.ws.jaxws.samples.wsrm.generated.EchoResponse")
+ public String echo(
+ @WebParam(name = "arg0", targetNamespace = "")
+ String arg0);
+
+}
Property changes on: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/SimpleService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/SimpleService_Service.java
===================================================================
--- stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/SimpleService_Service.java (rev 0)
+++ stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/SimpleService_Service.java 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,58 @@
+
+package org.jboss.test.ws.jaxws.samples.wsrm.generated;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.logging.Logger;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.3-b02-
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "SimpleService", targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm", wsdlLocation = "file:/home/opalka/TODO/TUTORIAL/step1/wsprovide/generated/wsdl/SimpleService.wsdl")
+public class SimpleService_Service
+ extends Service
+{
+
+ private final static URL SIMPLESERVICE_WSDL_LOCATION;
+ private final static Logger logger = Logger.getLogger(org.jboss.test.ws.jaxws.samples.wsrm.generated.SimpleService_Service.class.getName());
+
+ static {
+ URL url = null;
+ try {
+ URL baseUrl;
+ baseUrl = org.jboss.test.ws.jaxws.samples.wsrm.generated.SimpleService_Service.class.getResource(".");
+ url = new URL(baseUrl, "file:/home/opalka/TODO/TUTORIAL/step1/wsprovide/generated/wsdl/SimpleService.wsdl");
+ } catch (MalformedURLException e) {
+ logger.warning("Failed to create URL for the wsdl Location: 'file:/home/opalka/TODO/TUTORIAL/step1/wsprovide/generated/wsdl/SimpleService.wsdl', retrying as a local file");
+ logger.warning(e.getMessage());
+ }
+ SIMPLESERVICE_WSDL_LOCATION = url;
+ }
+
+ public SimpleService_Service(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public SimpleService_Service() {
+ super(SIMPLESERVICE_WSDL_LOCATION, new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "SimpleService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns SimpleService
+ */
+ @WebEndpoint(name = "SimpleServicePort")
+ public SimpleService getSimpleServicePort() {
+ return super.getPort(new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "SimpleServicePort"), SimpleService.class);
+ }
+
+}
Property changes on: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/SimpleService_Service.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/package-info.java
===================================================================
--- stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/package-info.java (rev 0)
+++ stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/package-info.java 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm")
+package org.jboss.test.ws.jaxws.samples.wsrm.generated;
Property changes on: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/generated/package-info.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/SimpleServiceImpl.java
===================================================================
--- stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/SimpleServiceImpl.java (rev 0)
+++ stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/SimpleServiceImpl.java 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,50 @@
+/*
+ * 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.samples.wsrm.service;
+
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+@WebService
+(
+ name = "SimpleService",
+ serviceName = "SimpleService",
+ wsdlLocation = "WEB-INF/wsdl/SimpleService.wsdl",
+ targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm"
+)
+public class SimpleServiceImpl
+{
+ @Oneway
+ @WebMethod
+ public void ping()
+ {
+ System.out.println("ping()");
+ }
+
+ @WebMethod
+ public String echo(String s)
+ {
+ System.out.println("echo(" + s + ")");
+ return s;
+ }
+}
Property changes on: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/SimpleServiceImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/Echo.java
===================================================================
--- stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/Echo.java (rev 0)
+++ stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/Echo.java 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,36 @@
+
+package org.jboss.test.ws.jaxws.samples.wsrm.service.jaxws;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+@XmlRootElement(name = "echo", namespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm")
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "echo", namespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm")
+public class Echo {
+
+ @XmlElement(name = "arg0", namespace = "")
+ private String arg0;
+
+ /**
+ *
+ * @return
+ * returns String
+ */
+ public String getArg0() {
+ return this.arg0;
+ }
+
+ /**
+ *
+ * @param arg0
+ * the value for the arg0 property
+ */
+ public void setArg0(String arg0) {
+ this.arg0 = arg0;
+ }
+
+}
Property changes on: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/Echo.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/EchoResponse.java
===================================================================
--- stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/EchoResponse.java (rev 0)
+++ stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/EchoResponse.java 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,36 @@
+
+package org.jboss.test.ws.jaxws.samples.wsrm.service.jaxws;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+@XmlRootElement(name = "echoResponse", namespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm")
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "echoResponse", namespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm")
+public class EchoResponse {
+
+ @XmlElement(name = "return", namespace = "")
+ private String _return;
+
+ /**
+ *
+ * @return
+ * returns String
+ */
+ public String getReturn() {
+ return this._return;
+ }
+
+ /**
+ *
+ * @param _return
+ * the value for the _return property
+ */
+ public void setReturn(String _return) {
+ this._return = _return;
+ }
+
+}
Property changes on: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/EchoResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/Ping.java
===================================================================
--- stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/Ping.java (rev 0)
+++ stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/Ping.java 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,15 @@
+
+package org.jboss.test.ws.jaxws.samples.wsrm.service.jaxws;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+@XmlRootElement(name = "ping", namespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm")
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ping", namespace = "http://www.jboss.org/jbossws/ws-extensions/wsrm")
+public class Ping {
+
+
+}
Property changes on: stack/metro/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/jaxws/Ping.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/web.xml
===================================================================
--- stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/web.xml (rev 0)
+++ stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/web.xml 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app
+ version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <servlet>
+ <servlet-name>SimpleService</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.samples.wsrm.service.SimpleServiceImpl</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>SimpleService</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+</web-app>
Property changes on: stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/wsdl/SimpleService.wsdl
===================================================================
--- stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/wsdl/SimpleService.wsdl (rev 0)
+++ stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/wsdl/SimpleService.wsdl 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3-b02-. -->
+<definitions targetNamespace="http://www.jboss.org/jbossws/ws-extensions/wsrm" name="SimpleService" xmlns:tns="http://www.jboss.org/jbossws/ws-extensions/wsrm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <xsd:schema>
+ <xsd:import namespace="http://www.jboss.org/jbossws/ws-extensions/wsrm" schemaLocation="SimpleService_schema1.xsd"/>
+ </xsd:schema>
+ </types>
+ <message name="ping">
+ <part name="parameters" element="tns:ping"/>
+ </message>
+ <message name="echo">
+ <part name="parameters" element="tns:echo"/>
+ </message>
+ <message name="echoResponse">
+ <part name="parameters" element="tns:echoResponse"/>
+ </message>
+ <portType name="SimpleService">
+ <operation name="ping">
+ <input message="tns:ping"/>
+ </operation>
+ <operation name="echo">
+ <input message="tns:echo"/>
+ <output message="tns:echoResponse"/>
+ </operation>
+ </portType>
+ <binding name="SimpleServicePortBinding" type="tns:SimpleService">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+ <operation name="ping">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ </operation>
+ <operation name="echo">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+ <service name="SimpleService">
+ <port name="SimpleServicePort" binding="tns:SimpleServicePortBinding">
+ <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+ </port>
+ </service>
+</definitions>
+
Property changes on: stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/wsdl/SimpleService.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/wsdl/SimpleService_schema1.xsd
===================================================================
--- stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/wsdl/SimpleService_schema1.xsd (rev 0)
+++ stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/wsdl/SimpleService_schema1.xsd 2008-04-11 13:21:03 UTC (rev 6357)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<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:element name="ping" type="tns:ping"/>
+
+ <xs:complexType name="echo">
+ <xs:sequence>
+ <xs:element name="arg0" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="echoResponse">
+ <xs:sequence>
+ <xs:element name="return" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="ping">
+ <xs:sequence/>
+ </xs:complexType>
+</xs:schema>
+
Property changes on: stack/metro/trunk/src/test/resources/jaxws/samples/wsrm/WEB-INF/wsdl/SimpleService_schema1.xsd
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
16 years, 9 months
JBossWS SVN: r6356 - spi/branches/tdiesler.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-11 08:50:55 -0400 (Fri, 11 Apr 2008)
New Revision: 6356
Added:
spi/branches/tdiesler/trunk/
Log:
Create userbranch
Copied: spi/branches/tdiesler/trunk (from rev 6355, spi/trunk)
16 years, 9 months
JBossWS SVN: r6355 - spi/branches.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-11 08:50:03 -0400 (Fri, 11 Apr 2008)
New Revision: 6355
Added:
spi/branches/tdiesler/
Log:
Create userbranch
16 years, 9 months