JBossWS SVN: r11743 - stack/metro/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2010-03-10 07:44:43 -0500 (Wed, 10 Mar 2010)
New Revision: 11743
Modified:
stack/metro/trunk/modules/testsuite/pom.xml
Log:
[JBWS-2948] Updating java.protocol.handler.pkgs configuration
Modified: stack/metro/trunk/modules/testsuite/pom.xml
===================================================================
--- stack/metro/trunk/modules/testsuite/pom.xml 2010-03-10 12:37:51 UTC (rev 11742)
+++ stack/metro/trunk/modules/testsuite/pom.xml 2010-03-10 12:44:43 UTC (rev 11743)
@@ -180,7 +180,7 @@
</property>
<property>
<name>java.protocol.handler.pkgs</name>
- <value>org.jboss.virtual.protocol</value>
+ <value>org.jboss.net.protocol|org.jboss.vfs.protocol|org.jboss.virtual.protocol</value>
</property>
<property>
<name>java.util.logging.manager</name>
14 years, 9 months
JBossWS SVN: r11742 - framework/trunk/testsuite/test/ant-import.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2010-03-10 07:37:51 -0500 (Wed, 10 Mar 2010)
New Revision: 11742
Modified:
framework/trunk/testsuite/test/ant-import/build-testsuite.xml
Log:
[JBWS-2948] Updating java.protocol.handler.pkgs configuration
Modified: framework/trunk/testsuite/test/ant-import/build-testsuite.xml
===================================================================
--- framework/trunk/testsuite/test/ant-import/build-testsuite.xml 2010-03-10 10:53:40 UTC (rev 11741)
+++ framework/trunk/testsuite/test/ant-import/build-testsuite.xml 2010-03-10 12:37:51 UTC (rev 11742)
@@ -507,7 +507,7 @@
<sysproperty key="interop" value="${interop}"/>
<sysproperty key="java.endorsed.dirs" value="${endorsed.dirs}"/>
<sysproperty key="java.naming.provider.url" value="${node0.jndi.url}"/>
- <sysproperty key="java.protocol.handler.pkgs" value="org.jboss.virtual.protocol"/>
+ <sysproperty key="java.protocol.handler.pkgs" value="org.jboss.net.protocol|org.jboss.vfs.protocol|org.jboss.virtual.protocol"/>
<sysproperty key="java.security.policy" value="${tests.output.dir}/test-classes/tst.policy"/>
<sysproperty key="java.util.logging.manager" value="org.jboss.wsf.common.logging.JDKLogManager"/>
<sysproperty key="jboss.home" value="${jboss.home}"/>
@@ -558,7 +558,7 @@
<sysproperty key="interop" value="${interop}"/>
<sysproperty key="java.endorsed.dirs" value="${endorsed.dirs}"/>
<sysproperty key="java.naming.provider.url" value="${node0.jndi.url}"/>
- <sysproperty key="java.protocol.handler.pkgs" value="org.jboss.virtual.protocol"/>
+ <sysproperty key="java.protocol.handler.pkgs" value="org.jboss.net.protocol|org.jboss.vfs.protocol|org.jboss.virtual.protocol"/>
<sysproperty key="java.security.policy" value="${tests.output.dir}/test-classes/tst.policy"/>
<sysproperty key="java.util.logging.manager" value="org.jboss.wsf.common.logging.JDKLogManager"/>
<sysproperty key="jboss.home" value="${jboss.home}"/>
14 years, 9 months
JBossWS SVN: r11741 - stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/jaxws/impl.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2010-03-10 05:53:40 -0500 (Wed, 10 Mar 2010)
New Revision: 11741
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/jaxws/impl/SourceWrapperGenerator.java
Log:
[JBPAPP-3457] Checking for reserved keywords before generating fields
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/jaxws/impl/SourceWrapperGenerator.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/jaxws/impl/SourceWrapperGenerator.java 2010-03-10 09:55:48 UTC (rev 11740)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/jaxws/impl/SourceWrapperGenerator.java 2010-03-10 10:53:40 UTC (rev 11741)
@@ -132,8 +132,11 @@
private void addProperty(JDefinedClass clazz, String typeName, QName name, String variable)
throws ClassNotFoundException
{
+ // be careful about reserved keywords when generating variable names
+ String realVariableName = JavaUtils.isReservedKeyword(variable) ? "_" + variable : variable;
+
Class type = JavaUtils.loadJavaType(typeName, loader);
- JFieldVar field = clazz.field(JMod.PRIVATE, type, variable);
+ JFieldVar field = clazz.field(JMod.PRIVATE, type, realVariableName);
JAnnotationUse annotation = field.annotate(XmlElement.class);
if (name.getNamespaceURI() != null)
annotation.param("namespace", name.getNamespaceURI());
@@ -141,10 +144,10 @@
// Add acessor methods
JMethod method = clazz.method(JMod.PUBLIC, type, getterPrefix(type) + JavaUtils.capitalize(variable));
- method.body()._return(JExpr._this().ref(variable));
+ method.body()._return(JExpr._this().ref(realVariableName));
method = clazz.method(JMod.PUBLIC, void.class, "set" + JavaUtils.capitalize(variable));
- method.body().assign(JExpr._this().ref(variable), method.param(type, variable));
+ method.body().assign(JExpr._this().ref(realVariableName), method.param(type, realVariableName));
}
private static void addClassAnnotations(JDefinedClass clazz, QName xmlName, QName xmlType, String[] propertyOrder)
@@ -168,4 +171,4 @@
annotation = clazz.annotate(XmlAccessorType.class);
annotation.param("value", XmlAccessType.FIELD);
}
-}
\ No newline at end of file
+}
14 years, 9 months
JBossWS SVN: r11740 - in stack/native/trunk/modules: testsuite/native-tests/scripts and 5 other directories.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2010-03-10 04:55:48 -0500 (Wed, 10 Mar 2010)
New Revision: 11740
Added:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/ClientSOAPHandler.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/JBWS2956TestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpoint.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpointImpl.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpointService.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/client-handlers.xml
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2956/
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2956/WEB-INF/
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2956/WEB-INF/jboss-web.xml
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2956/WEB-INF/web.xml
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java
stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
Log:
[JBWS-2956]:swallow the outbound SOAPException threw by client side handlers
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java 2010-03-09 11:18:44 UTC (rev 11739)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java 2010-03-10 09:55:48 UTC (rev 11740)
@@ -37,8 +37,10 @@
import javax.xml.soap.AttachmentPart;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPException;
+import javax.xml.ws.ProtocolException;
import javax.xml.ws.addressing.AddressingProperties;
import javax.xml.ws.addressing.JAXWSAConstants;
+import javax.xml.ws.handler.MessageContext;
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
@@ -406,18 +408,25 @@
}
catch (Exception ex)
{
- log.error("Exception caught while (preparing for) performing the invocation: ", ex);
-
- // Reverse the message direction
- processPivotInternal(msgContext, direction);
-
- if (faultType[2] != null)
- callFaultHandlerChain(portName, faultType[2], ex);
- if (faultType[1] != null)
- callFaultHandlerChain(portName, faultType[1], ex);
- if (faultType[0] != null)
- callFaultHandlerChain(portName, faultType[0], ex);
- throw ex;
+ Boolean isOutbound = (Boolean)msgContext.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
+ if (oneway && isOutbound && ex instanceof ProtocolException)
+ {
+ //swallow the outbound SOAPException threw in hanlders
+ return null;
+ }
+ else
+ {
+ log.error("Exception caught while (preparing for) performing the invocation: ", ex);
+ // Reverse the message direction
+ processPivotInternal(msgContext, direction);
+ if (faultType[2] != null)
+ callFaultHandlerChain(portName, faultType[2], ex);
+ if (faultType[1] != null)
+ callFaultHandlerChain(portName, faultType[1], ex);
+ if (faultType[0] != null)
+ callFaultHandlerChain(portName, faultType[0], ex);
+ throw ex;
+ }
}
finally
{
Modified: stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-03-09 11:18:44 UTC (rev 11739)
+++ stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-03-10 09:55:48 UTC (rev 11740)
@@ -630,6 +630,17 @@
<include name="jboss-web.xml"/>
</webinf>
</war>
+
+ <!-- jaxws-jbws2956 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2956.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2956/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2956/OnewayEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2956/OnewayEndpointImpl.class"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2956/WEB-INF">
+ <include name="jboss-web.xml"/>
+ </webinf>
+ </war>
<!-- jaxws-webserviceref -->
<war warfile="${tests.output.dir}/test-libs/jaxws-webserviceref.war" webxml="${tests.output.dir}/test-resources/jaxws/webserviceref/WEB-INF/web.xml">
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/ClientSOAPHandler.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/ClientSOAPHandler.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/ClientSOAPHandler.java 2010-03-10 09:55:48 UTC (rev 11740)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2956;
+
+import javax.xml.soap.MessageFactory;
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPFault;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.handler.LogicalMessageContext;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+import javax.xml.ws.soap.SOAPFaultException;
+
+import org.jboss.ws.WSException;
+import org.jboss.ws.core.soap.MessageFactoryImpl;
+import org.jboss.ws.core.soap.SOAPMessageImpl;
+import org.jboss.wsf.common.handler.GenericSOAPHandler;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+public class ClientSOAPHandler extends GenericSOAPHandler<LogicalMessageContext>
+{
+ @Override
+ protected boolean handleInbound(final MessageContext msgContext)
+ {
+ //do nothing
+ return true;
+ }
+
+ protected boolean handleOutbound(final MessageContext msgContext)
+ {
+ try
+ {
+ SOAPFault fault = null;
+ MessageFactoryImpl factory = new MessageFactoryImpl();
+ SOAPMessageImpl resMessage = (SOAPMessageImpl) factory.createMessage();
+ fault = resMessage.getSOAPBody().addFault();
+ fault.setFaultString("this is exception threwn by client outbound");
+ throw new SOAPFaultException(fault);
+ }
+ catch (SOAPException e)
+ {
+ //ignore
+ }
+ return true;
+ }
+}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/JBWS2956TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/JBWS2956TestCase.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/JBWS2956TestCase.java 2010-03-10 09:55:48 UTC (rev 11740)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2956;
+
+import java.net.URL;
+import java.util.Iterator;
+
+import javax.xml.namespace.QName;
+import javax.xml.soap.MessageFactory;
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPConnection;
+import javax.xml.soap.SOAPConnectionFactory;
+import javax.xml.soap.SOAPEnvelope;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.ws.core.soap.NodeImpl;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+public class JBWS2956TestCase extends JBossWSTest
+{
+
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2956";
+
+ private static OnewayEndpoint port;
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(JBWS2956TestCase.class, "jaxws-jbws2956.war");
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ QName serviceName = new QName("http://ws.jboss.org/jbws2956", "EndpointService");
+ OnewayEndpointService service = new OnewayEndpointService(wsdlURL);
+ port = service.getOnewayEndpointPort();
+ }
+
+ public void testCall() throws Exception
+ {
+ //there should be no exception threw
+ port.echo("testJBWS2956");
+ }
+}
\ No newline at end of file
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpoint.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpoint.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpoint.java 2010-03-10 09:55:48 UTC (rev 11740)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2956;
+import javax.jws.Oneway;
+import javax.jws.WebService;
+@WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org/jbws2956")
+public interface OnewayEndpoint
+{
+ @Oneway
+ public void echo(final String message);
+
+}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpointImpl.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpointImpl.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpointImpl.java 2010-03-10 09:55:48 UTC (rev 11740)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2956;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+
+
+@WebService(name = "Endpoint", portName = "EndpointPort", serviceName="EndpointService", targetNamespace = "http://ws.jboss.org/jbws2956", endpointInterface = "org.jboss.test.ws.jaxws.jbws2956.OnewayEndpoint")
+public class OnewayEndpointImpl implements OnewayEndpoint
+{
+ public void echo(final String message)
+ {
+ System.out.println("incoming message : " + message);
+ }
+
+}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpointService.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpointService.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/OnewayEndpointService.java 2010-03-10 09:55:48 UTC (rev 11740)
@@ -0,0 +1,99 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2956;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.jws.HandlerChain;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceFeature;
+
+@WebServiceClient(name = "EndpointService", targetNamespace = "http://ws.jboss.org/jbws2956")
+@HandlerChain(file = "client-handlers.xml")
+public class OnewayEndpointService
+ extends Service
+{
+
+ private final static URL ENDPOINTSERVICE_WSDL_LOCATION;
+ private final static WebServiceException ENDPOINTSERVICE_EXCEPTION;
+ private final static QName ENDPOINTSERVICE_QNAME = new QName("http://ws.jboss.org/jbws2956", "EndpointService");
+
+ static {
+ URL url = null;
+ WebServiceException e = null;
+ try {
+ url = new URL("http://localhost:8080/jaxws-jbws2955?wsdl");
+ } catch (MalformedURLException ex) {
+ e = new WebServiceException(ex);
+ }
+ ENDPOINTSERVICE_WSDL_LOCATION = url;
+ ENDPOINTSERVICE_EXCEPTION = e;
+ }
+
+ public OnewayEndpointService() {
+ super(__getWsdlLocation(), ENDPOINTSERVICE_QNAME);
+ }
+
+
+ public OnewayEndpointService(URL wsdlLocation) {
+ super(wsdlLocation, ENDPOINTSERVICE_QNAME);
+ }
+
+ public OnewayEndpointService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ /**
+ *
+ * @return
+ * returns Endpoint
+ */
+ @WebEndpoint(name = "EndpointPort")
+ public OnewayEndpoint getOnewayEndpointPort() {
+ return super.getPort(new QName("http://ws.jboss.org/jbws2956", "EndpointPort"), OnewayEndpoint.class);
+ }
+
+ /**
+ *
+ * @param features
+ * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
+ * @return
+ * returns Endpoint
+ */
+ @WebEndpoint(name = "EndpointPort")
+ public OnewayEndpoint getOnewayEndpointPort(WebServiceFeature... features) {
+ return super.getPort(new QName("http://ws.jboss.org/jbws2956", "EndpointPort"), OnewayEndpoint.class, features);
+ }
+
+ private static URL __getWsdlLocation() {
+ if (ENDPOINTSERVICE_EXCEPTION!= null) {
+ throw ENDPOINTSERVICE_EXCEPTION;
+ }
+ return ENDPOINTSERVICE_WSDL_LOCATION;
+ }
+
+}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/client-handlers.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/client-handlers.xml (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2956/client-handlers.xml 2010-03-10 09:55:48 UTC (rev 11740)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://org.jboss.ws/jaxws/samples/logicalhandler"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
+ <handler-chain>
+ <port-name-pattern xmlns:ns1="http://ws.jboss.org/jbws2956">ns1:EndpointPort</port-name-pattern>
+ <handler>
+ <handler-name>ClientSOAPHandler</handler-name>
+ <handler-class>org.jboss.test.ws.jaxws.jbws2956.ClientSOAPHandler</handler-class>
+ </handler>
+ </handler-chain>
+</handler-chains>
\ No newline at end of file
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2956/WEB-INF/jboss-web.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2956/WEB-INF/jboss-web.xml (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2956/WEB-INF/jboss-web.xml 2010-03-10 09:55:48 UTC (rev 11740)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <context-root>/jaxws-jbws2956</context-root>
+</jboss-web>
\ No newline at end of file
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2956/WEB-INF/web.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2956/WEB-INF/web.xml (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2956/WEB-INF/web.xml 2010-03-10 09:55:48 UTC (rev 11740)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <servlet>
+ <servlet-name>Endpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2956.OnewayEndpointImpl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Endpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
14 years, 9 months
JBossWS SVN: r11739 - in stack/native/branches/jbossws-native-3.1.2/modules: testsuite/native-tests/scripts and 5 other directories.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2010-03-09 06:18:44 -0500 (Tue, 09 Mar 2010)
New Revision: 11739
Added:
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/ClientSOAPHandler.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/Endpoint.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointImpl.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointService.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/JBWS2955TestCase.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/client-handlers.xml
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/jboss-web.xml
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/web.xml
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
Log:
[JBPAPP-3860]-make client side handle chain work
Modified: stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java 2010-03-09 10:48:17 UTC (rev 11738)
+++ stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java 2010-03-09 11:18:44 UTC (rev 11739)
@@ -24,6 +24,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Proxy;
+import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
@@ -34,6 +35,7 @@
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
+import javax.jws.HandlerChain;
import javax.jws.WebService;
import javax.xml.bind.JAXBContext;
import javax.xml.namespace.QName;
@@ -145,6 +147,7 @@
handlerResolver = new HandlerResolverImpl();
+ String filename = null;
if (usRef != null)
{
serviceMetaData.setServiceRefName(usRef.getServiceRefName());
@@ -152,21 +155,40 @@
// Setup the service handlers
if (usRef.getHandlerChain() != null)
{
- String filename = usRef.getHandlerChain();
- UnifiedHandlerChainsMetaData handlerChainsMetaData = JAXWSMetaDataBuilder.getHandlerChainsMetaData(serviceClass, filename);
- for (UnifiedHandlerChainMetaData UnifiedHandlerChainMetaData : handlerChainsMetaData.getHandlerChains())
+ filename = usRef.getHandlerChain();
+ }
+ }
+
+ if (serviceClass != null && serviceClass.getAnnotation(HandlerChain.class) != null)
+ {
+ HandlerChain anHandlerChain = (HandlerChain)serviceClass.getAnnotation(HandlerChain.class);
+ if (anHandlerChain != null && anHandlerChain.file().length() > 0) {
+ filename = anHandlerChain.file();
+ try
{
- for (UnifiedHandlerMetaData uhmd : UnifiedHandlerChainMetaData.getHandlers())
- {
- HandlerMetaDataJAXWS hmd = HandlerMetaDataJAXWS.newInstance(uhmd, HandlerType.ENDPOINT);
- serviceMetaData.addHandler(hmd);
- }
+ new URL(filename);
}
- ((HandlerResolverImpl)handlerResolver).initServiceHandlerChain(serviceMetaData);
+ catch (MalformedURLException ex)
+ {
+ filename = serviceClass.getPackage().getName().replace('.', '/') + "/" + filename;
+ }
+ }
+ }
+ if (filename != null) {
+ UnifiedHandlerChainsMetaData handlerChainsMetaData = JAXWSMetaDataBuilder.getHandlerChainsMetaData(serviceClass, filename);
+ for (UnifiedHandlerChainMetaData UnifiedHandlerChainMetaData : handlerChainsMetaData.getHandlerChains())
+ {
+ for (UnifiedHandlerMetaData uhmd : UnifiedHandlerChainMetaData.getHandlers())
+ {
+ HandlerMetaDataJAXWS hmd = HandlerMetaDataJAXWS.newInstance(uhmd, HandlerType.ENDPOINT);
+ serviceMetaData.addHandler(hmd);
+ }
}
+ ((HandlerResolverImpl)handlerResolver).initServiceHandlerChain(serviceMetaData);
}
}
+
/**
* The getPort method returns a stub. A service client uses this stub to invoke operations on the target service endpoint.
* The serviceEndpointInterface specifies the service endpoint interface that is supported by the created dynamic proxy or stub instance.
Modified: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-03-09 10:48:17 UTC (rev 11738)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-03-09 11:18:44 UTC (rev 11739)
@@ -625,6 +625,17 @@
<include name="jboss-web.xml"/>
</webinf>
</war>
+
+ <!-- jaxws-jbws2955 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2955.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2955/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2955/Endpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2955/EndpointImpl.class"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2955/WEB-INF">
+ <include name="jboss-web.xml"/>
+ </webinf>
+ </war>
<!-- jaxws-webserviceref -->
<war warfile="${tests.output.dir}/test-libs/jaxws-webserviceref.war" webxml="${tests.output.dir}/test-resources/jaxws/webserviceref/WEB-INF/web.xml">
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/ClientSOAPHandler.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/ClientSOAPHandler.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/ClientSOAPHandler.java 2010-03-09 11:18:44 UTC (rev 11739)
@@ -0,0 +1,77 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2955;
+
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPElementFactory;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.handler.LogicalMessageContext;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.WSException;
+import org.jboss.wsf.common.DOMWriter;
+import org.jboss.wsf.common.handler.GenericSOAPHandler;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+public class ClientSOAPHandler extends GenericSOAPHandler<LogicalMessageContext>
+{
+ @Override
+ protected boolean handleInbound(final MessageContext msgContext)
+ {
+ try
+ {
+ SOAPMessageContext smc = (SOAPMessageContext) msgContext;
+ SOAPMessage message = smc.getMessage();
+
+ SOAPBody body = message.getSOAPBody();
+ Document document = body.extractContentAsDocument();
+ NodeList nodes = document.getChildNodes();
+ for (int i = 0; i < nodes.getLength(); i++)
+ {
+ Node current = nodes.item(i);
+
+ NodeList childNodes = current.getChildNodes();
+ for (int j = 0; j < childNodes.getLength(); j++)
+ {
+ Node currentChildNode = childNodes.item(j);
+ if ("return".equals(currentChildNode.getLocalName()))
+ {
+ currentChildNode.setTextContent("PutByClientSOAPHandler");
+ }
+ }
+ }
+ body.addDocument(document);
+ message.saveChanges();
+
+ }
+ catch (SOAPException e)
+ {
+ throw new WSException("Error in Handler", e);
+ }
+ return true;
+ }
+}
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/Endpoint.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/Endpoint.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/Endpoint.java 2010-03-09 11:18:44 UTC (rev 11739)
@@ -0,0 +1,30 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2955;
+import javax.jws.WebService;
+@WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org/jbws2955")
+public interface Endpoint
+{
+
+ public String echo(final String message);
+
+}
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointImpl.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointImpl.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointImpl.java 2010-03-09 11:18:44 UTC (rev 11739)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2955;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+
+import org.jboss.logging.Logger;
+
+@WebService(name = "Endpoint", portName = "EndpointPort", serviceName="EndpointService", targetNamespace = "http://ws.jboss.org/jbws2955", endpointInterface = "org.jboss.test.ws.jaxws.jbws2955.Endpoint")
+public class EndpointImpl implements Endpoint
+{
+ public String echo(final String message)
+ {
+ return message;
+ }
+
+}
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointService.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointService.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointService.java 2010-03-09 11:18:44 UTC (rev 11739)
@@ -0,0 +1,99 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2955;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.jws.HandlerChain;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceFeature;
+
+@WebServiceClient(name = "EndpointService", targetNamespace = "http://ws.jboss.org/jbws2955")
+@HandlerChain(file = "client-handlers.xml")
+public class EndpointService
+ extends Service
+{
+
+ private final static URL ENDPOINTSERVICE_WSDL_LOCATION;
+ private final static WebServiceException ENDPOINTSERVICE_EXCEPTION;
+ private final static QName ENDPOINTSERVICE_QNAME = new QName("http://ws.jboss.org/jbws2955", "EndpointService");
+
+ static {
+ URL url = null;
+ WebServiceException e = null;
+ try {
+ url = new URL("http://localhost:8080/jaxws-jbws2955?wsdl");
+ } catch (MalformedURLException ex) {
+ e = new WebServiceException(ex);
+ }
+ ENDPOINTSERVICE_WSDL_LOCATION = url;
+ ENDPOINTSERVICE_EXCEPTION = e;
+ }
+
+ public EndpointService() {
+ super(__getWsdlLocation(), ENDPOINTSERVICE_QNAME);
+ }
+
+
+ public EndpointService(URL wsdlLocation) {
+ super(wsdlLocation, ENDPOINTSERVICE_QNAME);
+ }
+
+ public EndpointService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ /**
+ *
+ * @return
+ * returns Endpoint
+ */
+ @WebEndpoint(name = "EndpointPort")
+ public Endpoint getEndpointPort() {
+ return super.getPort(new QName("http://ws.jboss.org/jbws2955", "EndpointPort"), Endpoint.class);
+ }
+
+ /**
+ *
+ * @param features
+ * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
+ * @return
+ * returns Endpoint
+ */
+ @WebEndpoint(name = "EndpointPort")
+ public Endpoint getEndpointPort(WebServiceFeature... features) {
+ return super.getPort(new QName("http://ws.jboss.org/jbws2955", "EndpointPort"), Endpoint.class, features);
+ }
+
+ private static URL __getWsdlLocation() {
+ if (ENDPOINTSERVICE_EXCEPTION!= null) {
+ throw ENDPOINTSERVICE_EXCEPTION;
+ }
+ return ENDPOINTSERVICE_WSDL_LOCATION;
+ }
+
+}
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/JBWS2955TestCase.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/JBWS2955TestCase.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/JBWS2955TestCase.java 2010-03-09 11:18:44 UTC (rev 11739)
@@ -0,0 +1,73 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2955;
+
+import java.net.URL;
+import java.util.Iterator;
+
+import javax.xml.namespace.QName;
+import javax.xml.soap.MessageFactory;
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPConnection;
+import javax.xml.soap.SOAPConnectionFactory;
+import javax.xml.soap.SOAPEnvelope;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.ws.core.soap.NodeImpl;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+public class JBWS2955TestCase extends JBossWSTest
+{
+
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2955";
+
+ private static Endpoint port;
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(JBWS2955TestCase.class, "jaxws-jbws2955.war");
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ QName serviceName = new QName("http://ws.jboss.org/jbws2955", "EndpointService");
+ EndpointService service = new EndpointService(wsdlURL);
+ port = service.getEndpointPort();
+ }
+
+ public void testCall() throws Exception
+ {
+
+ String response = port.echo("testJBWS2955");
+ assertEquals("PutByClientSOAPHandler", response);
+ }
+}
\ No newline at end of file
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/client-handlers.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/client-handlers.xml (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/client-handlers.xml 2010-03-09 11:18:44 UTC (rev 11739)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://org.jboss.ws/jaxws/samples/logicalhandler"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
+ <handler-chain>
+ <port-name-pattern xmlns:ns1="http://ws.jboss.org/jbws2955">ns1:EndpointPort</port-name-pattern>
+ <handler>
+ <handler-name>ClientSOAPHandler</handler-name>
+ <handler-class>org.jboss.test.ws.jaxws.jbws2955.ClientSOAPHandler</handler-class>
+ </handler>
+ </handler-chain>
+</handler-chains>
\ No newline at end of file
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/jboss-web.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/jboss-web.xml (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/jboss-web.xml 2010-03-09 11:18:44 UTC (rev 11739)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <context-root>/jaxws-jbws2955</context-root>
+</jboss-web>
\ No newline at end of file
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/web.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/web.xml (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/web.xml 2010-03-09 11:18:44 UTC (rev 11739)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <servlet>
+ <servlet-name>Endpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2955.EndpointImpl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Endpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
14 years, 9 months
JBossWS SVN: r11738 - in framework/trunk/testsuite/test: java/org/jboss/test/ws/jaxws/benchmark and 5 other directories.
by jbossws-commits@lists.jboss.org
Author: pmacik(a)redhat.com
Date: 2010-03-09 05:48:17 -0500 (Tue, 09 Mar 2010)
New Revision: 11738
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDoc.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDocImpl.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPC.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPCImpl.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDoc.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDocImpl.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPC.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPCImpl.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/types/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/types/ComplexType.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeRPCTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringDocTest.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringRPCTest.java
Modified:
framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/Runner.java
Log:
[JBQA-3163] ws performance test set extended
Modified: framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
===================================================================
--- framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2010-03-09 10:14:13 UTC (rev 11737)
+++ framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2010-03-09 10:48:17 UTC (rev 11738)
@@ -8,884 +8,885 @@
<project>
- <description>JBossWS test archive builder</description>
+ <description>JBossWS test archive builder</description>
- <!-- ================================================================== -->
- <!-- Building -->
- <!-- ================================================================== -->
+ <!-- ================================================================== -->
+ <!-- Building -->
+ <!-- ================================================================== -->
- <target name="build-jars-jaxws" description="Build the deployments.">
-
- <mkdir dir="${tests.output.dir}/test-libs"/>
-
- <!-- jaxws-anonymous -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-anonymous.war" webxml="${tests.output.dir}/test-resources/jaxws/anonymous/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/anonymous/Anonymous.class"/>
- <include name="org/jboss/test/ws/jaxws/anonymous/AnonymousRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/anonymous/AnonymousResponse.class"/>
- <include name="org/jboss/test/ws/jaxws/anonymous/AnonymousImpl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-benchmark-basic -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-benchmark-basic.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/benchmark/test/basic/Endpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/benchmark/test/basic/EndpointImpl.class"/>
- </fileset>
- </jar>
+ <target name="build-jars-jaxws" description="Build the deployments.">
- <!-- jaxws-benchmark-basicdoclit -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-benchmark-basicdoclit.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/benchmark/test/basicdoclit/Endpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/benchmark/test/basicdoclit/EndpointImpl.class"/>
- </fileset>
- </jar>
+ <mkdir dir="${tests.output.dir}/test-libs" />
- <!-- jaxws-benchmark-complex -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-benchmark-complex.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/benchmark/test/complex/types/*.class"/>
- <include name="org/jboss/test/ws/jaxws/benchmark/test/complex/RegistrationServiceImpl.class"/>
- </fileset>
- </jar>
+ <!-- jaxws-anonymous -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-anonymous.war" webxml="${tests.output.dir}/test-resources/jaxws/anonymous/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/anonymous/Anonymous.class" />
+ <include name="org/jboss/test/ws/jaxws/anonymous/AnonymousRequest.class" />
+ <include name="org/jboss/test/ws/jaxws/anonymous/AnonymousResponse.class" />
+ <include name="org/jboss/test/ws/jaxws/anonymous/AnonymousImpl.class" />
+ </classes>
+ </war>
- <!-- jaxws-binding -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-binding.war" webxml="${tests.output.dir}/test-resources/jaxws/binding/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/binding/SOAPEndpointBean.class"/>
- <include name="org/jboss/test/ws/jaxws/binding/SOAPEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/binding/ServerHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/binding/jaxws-server-handlers.xml"/>
- </classes>
- </war>
-
- <!-- jaxws-classloading-service -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-classloading-service.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/smoke/tools/service/HelloWorld.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-classloading-types -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-classloading-types.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/smoke/tools/service/Message.class"/>
- <include name="org/jboss/test/ws/jaxws/smoke/tools/service/Echo.class"/>
- <include name="org/jboss/test/ws/jaxws/smoke/tools/service/EchoResponse.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-complex -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-complex.war" webxml="${tests.output.dir}/test-resources/jaxws/complex/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/complex/*.class"/>
- <include name="org/jboss/test/ws/jaxws/complex/extra/*.class"/>
- <include name="org/jboss/test/ws/jaxws/complex/types/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/complex/*TestCase.class"/>
- </classes>
- </war>
+ <!-- jaxws-benchmark-basic -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-benchmark-basic.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/benchmark/test/basic/Endpoint.class" />
+ <include name="org/jboss/test/ws/jaxws/benchmark/test/basic/EndpointImpl.class" />
+ </fileset>
+ </jar>
- <!-- jaxws-endpointReference -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-endpointReference.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/endpointReference/Endpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/endpointReference/EndpointImpl.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-handlerscope -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-handlerscope.war" webxml="${tests.output.dir}/test-resources/jaxws/handlerscope/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/handlerscope/SOAPEndpointBean.class"/>
- <include name="org/jboss/test/ws/jaxws/handlerscope/SOAPEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/handlerscope/*ServerHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/handlerscope/ProtocolHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/handlerscope/jaxws-server-handlers.xml"/>
- </classes>
- </war>
-
- <!-- jaxws-holder -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-holder.war" webxml="${tests.output.dir}/test-resources/jaxws/holder/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/holder/HolderServiceImpl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws860 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws860.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws860/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws860/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws860/*TestCase.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws860/WEB-INF">
- <include name="jboss-web.xml"/>
- </webinf>
- </war>
-
- <!-- jaxws-jbws944 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws944.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws944/EJB3Bean01.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteInterface.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteBusinessInterface.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteHome.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws981 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws981.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws981/EJB3Bean.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws981/EJB3RemoteInterface.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws981/EndpointInterface.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1178 -->
- <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1178.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1178/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1178/EndpointImpl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws1190 -->
- <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1190.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1190/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1190/ConfidentialEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1190/Endpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1190/EndpointImpl*.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1190/JBWS1190Exception.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws1283 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1283.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1283/*.*"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1357 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1357.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1357/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1357/JBWS1357.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1357/JBWS1357Impl.class"/>
- </classes>
- <fileset dir="${tests.output.dir}/test-resources/jaxws/jbws1357">
- <include name="hello.jsp"/>
- </fileset>
- </war>
-
- <!-- jaxws-jbws1422 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1422.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1422/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1422/*TestCase.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1446 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1446.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1446/EJB3Bean.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1505 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1505.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1505/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1505/*TestCase.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1529 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1529.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1529/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1529/UserException.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1529/JBWS1529.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1529/JBWS1529Impl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws1556 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1556.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1556/EJB3Bean.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1556/UserType.class"/>
- </fileset>
- </jar>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1556.ear">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws1556.jar"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1556/META-INF">
- <include name="application.xml"/>
- <include name="jboss-app.xml"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws1566-->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1566.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1566/**/*.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1581 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1581-pojo.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1581/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1581/EndpointBean.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1581/EndpointInterface.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws1581/WEB-INF">
- <include name="jboss-web.xml"/>
- </webinf>
- </war>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1581.ear">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws1581-pojo.war"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1581/META-INF">
- <include name="jboss-app.xml"/>
- </metainf>
- </jar>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1581-ejb3.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1581/EJB3Bean.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1581/EJB3Remote.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1581/EndpointInterface.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1581/EndpointService.class"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1581/META-INF">
- <include name="wsdl/**"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws1611 -->
- <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1611.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1611/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1611/PingEndpointImpl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws1665 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1665.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1665/**/*.class"/>
- </fileset>
- </jar>
+ <!-- jaxws-benchmark-datatypes -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-benchmark-datatypes.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/benchmark/test/datatypes/**/*.class" />
+ </fileset>
+ </jar>
- <!-- jaxws-jbws1666 -->
- <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1666.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1666/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1666/TestEndpointImpl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws1694 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1694.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1694/**/*.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1702 -->
- <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1702.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1702/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1702/**/*.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws1702/WEB-INF"/>
- </war>
-
- <!-- jaxws-jbws1733 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1733.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1733/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1733/JBWS1733.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws1797 -->
- <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1797.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1797/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1797/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1797/*TestCase.class"/>
- </classes>
- </war>
-
- <!-- jaxws-jbws1798 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1798.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1798/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1798/**/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1798/*TestCase.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws1798/WEB-INF">
- <include name="wsdl/**"/>
- </webinf>
- </war>
-
- <!-- jaxws-jbws1799 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1799.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1799/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1799/*TestCase.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1807 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1807.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1807/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1807/ProviderImpl.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws1807/WEB-INF">
- <include name="wsdl/**"/>
- </webinf>
- </war>
-
- <!-- jaxws-jbws1813 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1813.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1813/EndpointImpl.class"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1813/META-INF">
- <include name="jboss.xml"/>
- </metainf>
- </jar>
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1813.ear">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws1813.jar"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1813/META-INF">
- <include name="application.xml"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws1815 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1815.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1815/ProviderImpl.class"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1815/META-INF">
- <include name="wsdl/my-service.wsdl"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws1822 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1822-shared.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanIface.class"/>
- </fileset>
- </jar>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1822-one-ejb3-inside.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3Bean.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3RemoteIface.class"/>
- </fileset>
- </jar>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1822-two-ejb3-inside.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanIface.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3Bean.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3RemoteIface.class"/>
- </fileset>
- </jar>
- <ear appxml="${tests.output.dir}/test-resources/jaxws/jbws1822/two-ejb-modules/META-INF/application.xml"
- earfile="${tests.output.dir}/test-libs/jaxws-jbws1822-two-ejb-modules.ear">
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1822/two-ejb-modules/META-INF">
- <include name="jboss-app.xml"/><!-- this fixes the problem -->
- </metainf>
- <fileset file="${tests.output.dir}/test-libs/jaxws-jbws1822-shared.jar"/>
- <fileset file="${tests.output.dir}/test-libs/jaxws-jbws1822-one-ejb3-inside.jar"/>
- </ear>
- <ear appxml="${tests.output.dir}/test-resources/jaxws/jbws1822/one-ejb-module/META-INF/application.xml"
- earfile="${tests.output.dir}/test-libs/jaxws-jbws1822-one-ejb-module.ear">
- <fileset file="${tests.output.dir}/test-libs/jaxws-jbws1822-two-ejb3-inside.jar"/>
- </ear>
-
- <!-- jaxws-jbws1841 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1841.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1841/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1841/*TestCase.class"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1841/META-INF">
- <include name="wsdl/*"/>
- <include name="ejb-jar.xml"/>
- <include name="jboss.xml"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws1843 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1843.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1843/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1843/**/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1843/*TestCase.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws1843/WEB-INF">
- <include name="wsdl/**"/>
- </webinf>
- </war>
-
- <!-- jaxws-jbws1845 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1845.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1845/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1845/*TestCase.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1854 -->
- <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1854.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1854/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1854/EndpointImpl.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws1854/WEB-INF">
- <include name="jboss-web.xml"/>
- </webinf>
- </war>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1854.sar">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws1854.war"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1854/META-INF">
- <include name="jboss-service.xml"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws1872 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1872.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1872/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1872/*TestCase.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1872/Client*.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1904 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1904.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1904/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1904/*TestCase.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws1969 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1969.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws1969/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1969/*TestCase.class"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1969/META-INF">
- <include name="wsdl/**"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws2000 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2000.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2000/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2000/*TestCase.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws2009 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2009.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2009/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2009/**/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2009/*TestCase.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2009/WEB-INF">
- <include name="wsdl/**"/>
- <include name="schema/**"/>
- </webinf>
- </war>
+ <!-- jaxws-benchmark-basicdoclit -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-benchmark-basicdoclit.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/benchmark/test/basicdoclit/Endpoint.class" />
+ <include name="org/jboss/test/ws/jaxws/benchmark/test/basicdoclit/EndpointImpl.class" />
+ </fileset>
+ </jar>
- <!-- jaxws-jbws2074 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase1.war"
- webxml="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase1/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2074/usecase1/service/POJOIface.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2074/usecase1/service/POJOImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2074/handler/DescriptorResourcesHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2074/handler/JavaResourcesHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2074/usecase1/service/jaxws-service-handlers.xml"/>
- </classes>
- </war>
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase2.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2074/usecase2/service/EJB3Iface.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2074/usecase2/service/EJB3Impl.class"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase2/META-INF">
- <include name="ejb-jar.xml"/>
- </metainf>
- </jar>
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase3.war"
- webxml="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase3/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2074/usecase3/service/POJOIface.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2074/usecase3/service/POJOImpl.class"/>
- </classes>
- </war>
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase4.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2074/usecase4/service/EJB3Iface.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2074/usecase4/service/EJB3Impl.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2074/handler/DescriptorResourcesHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2074/handler/JavaResourcesHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2074/usecase4/service/jaxws-service-handlers.xml"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase4/META-INF">
- <include name="ejb-jar.xml"/>
- </metainf>
- </jar>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase1.sar">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws2074-usecase1.war"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase1-sar/META-INF">
- <include name="application.xml"/>
- </metainf>
- </jar>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase2.sar">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws2074-usecase2.jar"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase2-sar/META-INF">
- <include name="application.xml"/>
- </metainf>
- </jar>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase3.sar">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws2074-usecase3.war"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase3-sar/META-INF">
- <include name="application.xml"/>
- </metainf>
- </jar>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase4.sar">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws2074-usecase4.jar"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase4-sar/META-INF">
- <include name="application.xml"/>
- </metainf>
- </jar>
+ <!-- jaxws-benchmark-complex -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-benchmark-complex.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/benchmark/test/complex/types/*.class" />
+ <include name="org/jboss/test/ws/jaxws/benchmark/test/complex/RegistrationServiceImpl.class" />
+ </fileset>
+ </jar>
- <!-- jaxws-jbws2150 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2150.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2150/*Service*.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF">
- <include name="wsdl/**"/>
- </webinf>
- </war>
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2150-sec.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF/web-sec.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2150/*Service*.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF">
- <include name="wsdl/**"/>
- </webinf>
- </war>
+ <!-- jaxws-binding -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-binding.war" webxml="${tests.output.dir}/test-resources/jaxws/binding/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/binding/SOAPEndpointBean.class" />
+ <include name="org/jboss/test/ws/jaxws/binding/SOAPEndpoint.class" />
+ <include name="org/jboss/test/ws/jaxws/binding/ServerHandler.class" />
+ <include name="org/jboss/test/ws/jaxws/binding/jaxws-server-handlers.xml" />
+ </classes>
+ </war>
- <!-- jaxws-jbws2183 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2183.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2183/**/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2183/**/*TestCase.class"/>
- </fileset>
- </jar>
+ <!-- jaxws-classloading-service -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-classloading-service.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/smoke/tools/service/HelloWorld.class" />
+ </fileset>
+ </jar>
- <!-- jaxws-jbws2218 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2218.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2218/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2218/*TestCase.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-jbws2241 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2241.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2241/EJB3Bean.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2241/EJB3RemoteInterface.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2241/EndpointInterface.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2241/EndpointService.class"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2241/META-INF">
- <include name="jboss.xml"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws2250 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2250.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2250/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2250/**/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2250/*TestCase.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2250/WEB-INF">
- <include name="jboss-web.xml"/>
- </webinf>
- </war>
-
- <!-- jbws2257 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2257.jar" >
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2257/Service*.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2257/jaxws/*.class"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2257/META-INF">
- <include name="wsdl/**"/>
- </metainf>
- </jar>
-
- <!-- jaxws-jbws2278 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2278.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2278/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2278/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2278/JBWS2278TestCase.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2278/WEB-INF">
- <include name="jboss-web.xml"/>
- <include name="wsdl/*"/>
- </webinf>
- </war>
-
- <!-- jbws2307 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2307-client.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-client/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2307/ClientServlet.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2307/Hello.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2307/HelloService.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-client">
- <include name="wsdl/**"/>
- <include name="*.xml"/>
- </webinf>
- </war>
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2307-service.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-service/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2307/Hello.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2307/HelloImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2307/HelloService.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-service">
- <include name="wsdl/**"/>
- <include name="*.xml"/>
- </webinf>
- </war>
+ <!-- jaxws-classloading-types -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-classloading-types.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/smoke/tools/service/Message.class" />
+ <include name="org/jboss/test/ws/jaxws/smoke/tools/service/Echo.class" />
+ <include name="org/jboss/test/ws/jaxws/smoke/tools/service/EchoResponse.class" />
+ </fileset>
+ </jar>
- <!-- jaxws-jbws2412 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2412.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2412/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2412/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2412/*TestCase.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2412/WEB-INF">
- <include name="wsdl/*"/>
- </webinf>
- </war>
+ <!-- jaxws-complex -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-complex.war" webxml="${tests.output.dir}/test-resources/jaxws/complex/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/complex/*.class" />
+ <include name="org/jboss/test/ws/jaxws/complex/extra/*.class" />
+ <include name="org/jboss/test/ws/jaxws/complex/types/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/complex/*TestCase.class" />
+ </classes>
+ </war>
- <!-- jaxws-jbws2419 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2419.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2419/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml"/>
- <include name="org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2419/WEB-INF">
- <include name="wsdl/*"/>
- </webinf>
- </war>
+ <!-- jaxws-endpointReference -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-endpointReference.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/endpointReference/Endpoint.class" />
+ <include name="org/jboss/test/ws/jaxws/endpointReference/EndpointImpl.class" />
+ </fileset>
+ </jar>
- <!-- jaxws-jbws2449 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2449.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2449/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2449/*TestCase.class"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2449/META-INF">
- <include name="wsdl/*"/>
- </metainf>
- </jar>
-
- <!-- jbws2527 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2527-client.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-client/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2527/ClientServlet.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2527/Hello.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2527/HelloService.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-client">
- <include name="wsdl/**"/>
- <include name="*.xml"/>
- </webinf>
- </war>
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2527-service.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-service/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2527/Hello.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2527/HelloImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2527/HelloService.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-service">
- <include name="wsdl/**"/>
- <include name="*.xml"/>
- </webinf>
- </war>
-
- <!-- jaxws-jbws2630 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2630-service.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2630/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2630/Endpoint*.class"/>
- </classes>
- </war>
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2630.jar">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-jbws2630-service.war"/>
- </fileset>
- </jar>
+ <!-- jaxws-handlerscope -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-handlerscope.war" webxml="${tests.output.dir}/test-resources/jaxws/handlerscope/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/handlerscope/SOAPEndpointBean.class" />
+ <include name="org/jboss/test/ws/jaxws/handlerscope/SOAPEndpoint.class" />
+ <include name="org/jboss/test/ws/jaxws/handlerscope/*ServerHandler.class" />
+ <include name="org/jboss/test/ws/jaxws/handlerscope/ProtocolHandler.class" />
+ <include name="org/jboss/test/ws/jaxws/handlerscope/jaxws-server-handlers.xml" />
+ </classes>
+ </war>
- <!-- jaxws-jbws2634 -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2634.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2634/shared/*.class"/>
- </fileset>
- </jar>
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2634-pojo.war"
- webxml="${tests.output.dir}/test-resources/jaxws/jbws2634/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/POJOBean.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/EndpointIface.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/AbstractEndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2634/shared/handlers/TestHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/jaxws-handler.xml"/>
- </classes>
- </war>
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2634-ejb3.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/EJB3Bean.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/EndpointIface.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/AbstractEndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2634/shared/handlers/TestHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/jaxws-handler.xml"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2634/META-INF">
- <include name="ejb-jar.xml"/>
- </metainf>
- </jar>
- <ear appxml="${tests.output.dir}/test-resources/jaxws/jbws2634/META-INF/application.xml"
- earfile="${tests.output.dir}/test-libs/jaxws-jbws2634.ear">
- <fileset file="${tests.output.dir}/test-libs/jaxws-jbws2634.jar"/>
- <fileset file="${tests.output.dir}/test-libs/jaxws-jbws2634-ejb3.jar"/>
- <fileset file="${tests.output.dir}/test-libs/jaxws-jbws2634-pojo.war"/>
- </ear>
-
- <!-- jaxws-jbws2701 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2701.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2701/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2701/*TestCase.class"/>
- </fileset>
- </jar>
+ <!-- jaxws-holder -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-holder.war" webxml="${tests.output.dir}/test-resources/jaxws/holder/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/holder/HolderServiceImpl.class" />
+ </classes>
+ </war>
- <!-- jaxws-jbws2717 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2717.war"
- webxml="${tests.output.dir}/test-resources/jaxws/jbws2717/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2717/EndpointImpl.class"/>
- </classes>
- </war>
+ <!-- jaxws-jbws860 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws860.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws860/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws860/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws860/*TestCase.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws860/WEB-INF">
+ <include name="jboss-web.xml" />
+ </webinf>
+ </war>
- <!-- jaxws-jbws2718 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2718.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2718/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2718/**/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2718/*TestCase.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2718/WEB-INF">
- <include name="wsdl1/**"/>
- </webinf>
- </war>
+ <!-- jaxws-jbws944 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws944.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws944/EJB3Bean01.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteInterface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteBusinessInterface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteHome.class" />
+ </fileset>
+ </jar>
- <!-- jaxws-jbws2934 -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2934.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2934/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2934/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2934/EndpointEJB.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2934/*TestCase*.class"/>
- </classes>
- </war>
+ <!-- jaxws-jbws981 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws981.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws981/EJB3Bean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws981/EJB3RemoteInterface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws981/EndpointInterface.class" />
+ </fileset>
+ </jar>
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2934.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2934/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2934/EndpointJSE.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2934/*TestCase*.class"/>
- </fileset>
- </jar>
+ <!-- jaxws-jbws1178 -->
+ <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1178.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1178/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1178/EndpointImpl.class" />
+ </classes>
+ </war>
- <!-- jaxws-jbws2937 -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2937.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2937/EndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/jbws2937/UserType.class"/>
- </fileset>
- </jar>
+ <!-- jaxws-jbws1190 -->
+ <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1190.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1190/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1190/ConfidentialEndpoint.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1190/Endpoint.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1190/EndpointImpl*.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1190/JBWS1190Exception.class" />
+ </classes>
+ </war>
- <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2937-client.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/jbws2937/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws2937/EndpointImpl.class"/>
- </fileset>
- </jar>
+ <!-- jaxws-jbws1283 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1283.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1283/*.*" />
+ </fileset>
+ </jar>
- <!-- jaxws namespace -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-namespace.war" webxml="${tests.output.dir}/test-resources/jaxws/namespace/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/namespace/CustomHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/namespace/EndpointBean.class"/>
- <include name="org/jboss/test/ws/jaxws/namespace/EndpointInterface.class"/>
- <include name="org/jboss/test/ws/jaxws/namespace/*.xml"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/namespace/WEB-INF">
- <include name="jboss-web.xml"/>
- </webinf>
- </war>
-
- <!-- jaxws-webfault -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-webfault.war" webxml="${tests.output.dir}/test-resources/jaxws/webfault/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/webfault/Endpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/webfault/EndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/webfault/CustomException.class"/>
- <include name="org/jboss/test/ws/jaxws/webfault/SimpleException.class"/>
- </classes>
- </war>
-
- <!-- jaxws-wrapped-accessor -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-wrapped-accessor.war" webxml="${tests.output.dir}/test-resources/jaxws/wrapped/accessor/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/wrapped/accessor/Accessor.class"/>
- <include name="org/jboss/test/ws/jaxws/wrapped/accessor/AccessorImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/*"/>
- </classes>
- </war>
-
- <!-- Please add alphabetically -->
+ <!-- jaxws-jbws1357 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1357.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1357/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1357/JBWS1357.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1357/JBWS1357Impl.class" />
+ </classes>
+ <fileset dir="${tests.output.dir}/test-resources/jaxws/jbws1357">
+ <include name="hello.jsp" />
+ </fileset>
+ </war>
- </target>
+ <!-- jaxws-jbws1422 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1422.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1422/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1422/*TestCase.class" />
+ </fileset>
+ </jar>
+ <!-- jaxws-jbws1446 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1446.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1446/EJB3Bean.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1505 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1505.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1505/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1505/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1529 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1529.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1529/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1529/UserException.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1529/JBWS1529.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1529/JBWS1529Impl.class" />
+ </classes>
+ </war>
+
+ <!-- jaxws-jbws1556 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1556.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1556/EJB3Bean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1556/UserType.class" />
+ </fileset>
+ </jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1556.ear">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws1556.jar" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1556/META-INF">
+ <include name="application.xml" />
+ <include name="jboss-app.xml" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws1566-->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1566.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1566/**/*.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1581 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1581-pojo.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1581/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1581/EndpointBean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1581/EndpointInterface.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws1581/WEB-INF">
+ <include name="jboss-web.xml" />
+ </webinf>
+ </war>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1581.ear">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws1581-pojo.war" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1581/META-INF">
+ <include name="jboss-app.xml" />
+ </metainf>
+ </jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1581-ejb3.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1581/EJB3Bean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1581/EJB3Remote.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1581/EndpointInterface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1581/EndpointService.class" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1581/META-INF">
+ <include name="wsdl/**" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws1611 -->
+ <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1611.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1611/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1611/PingEndpointImpl.class" />
+ </classes>
+ </war>
+
+ <!-- jaxws-jbws1665 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1665.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1665/**/*.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1666 -->
+ <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1666.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1666/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1666/TestEndpointImpl.class" />
+ </classes>
+ </war>
+
+ <!-- jaxws-jbws1694 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1694.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1694/**/*.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1702 -->
+ <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1702.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1702/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1702/**/*.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws1702/WEB-INF" />
+ </war>
+
+ <!-- jaxws-jbws1733 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1733.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1733/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1733/JBWS1733.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1733/JBWS1733Impl.class" />
+ </classes>
+ </war>
+
+ <!-- jaxws-jbws1797 -->
+ <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1797.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1797/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1797/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1797/*TestCase.class" />
+ </classes>
+ </war>
+
+ <!-- jaxws-jbws1798 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1798.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1798/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1798/**/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1798/*TestCase.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws1798/WEB-INF">
+ <include name="wsdl/**" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws1799 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1799.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1799/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1799/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1807 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1807.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1807/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1807/ProviderImpl.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws1807/WEB-INF">
+ <include name="wsdl/**" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws1813 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1813.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1813/EndpointImpl.class" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1813/META-INF">
+ <include name="jboss.xml" />
+ </metainf>
+ </jar>
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1813.ear">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws1813.jar" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1813/META-INF">
+ <include name="application.xml" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws1815 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1815.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1815/ProviderImpl.class" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1815/META-INF">
+ <include name="wsdl/my-service.wsdl" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws1822 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1822-shared.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanImpl.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanIface.class" />
+ </fileset>
+ </jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1822-one-ejb3-inside.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3Bean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3RemoteIface.class" />
+ </fileset>
+ </jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1822-two-ejb3-inside.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanImpl.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1822/shared/BeanIface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3Bean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws1822/webservice/EJB3RemoteIface.class" />
+ </fileset>
+ </jar>
+ <ear appxml="${tests.output.dir}/test-resources/jaxws/jbws1822/two-ejb-modules/META-INF/application.xml" earfile="${tests.output.dir}/test-libs/jaxws-jbws1822-two-ejb-modules.ear">
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1822/two-ejb-modules/META-INF">
+ <include name="jboss-app.xml" />
+ <!-- this fixes the problem -->
+ </metainf>
+ <fileset file="${tests.output.dir}/test-libs/jaxws-jbws1822-shared.jar" />
+ <fileset file="${tests.output.dir}/test-libs/jaxws-jbws1822-one-ejb3-inside.jar" />
+ </ear>
+ <ear appxml="${tests.output.dir}/test-resources/jaxws/jbws1822/one-ejb-module/META-INF/application.xml" earfile="${tests.output.dir}/test-libs/jaxws-jbws1822-one-ejb-module.ear">
+ <fileset file="${tests.output.dir}/test-libs/jaxws-jbws1822-two-ejb3-inside.jar" />
+ </ear>
+
+ <!-- jaxws-jbws1841 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1841.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1841/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1841/*TestCase.class" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1841/META-INF">
+ <include name="wsdl/*" />
+ <include name="ejb-jar.xml" />
+ <include name="jboss.xml" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws1843 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws1843.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1843/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1843/**/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1843/*TestCase.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws1843/WEB-INF">
+ <include name="wsdl/**" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws1845 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1845.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1845/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1845/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1854 -->
+ <war destfile="${tests.output.dir}/test-libs/jaxws-jbws1854.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws1854/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1854/EndpointImpl.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws1854/WEB-INF">
+ <include name="jboss-web.xml" />
+ </webinf>
+ </war>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1854.sar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws1854.war" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1854/META-INF">
+ <include name="jboss-service.xml" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws1872 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws1872.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1872/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1872/*TestCase.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1872/Client*.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1904 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1904.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1904/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1904/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws1969 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws1969.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1969/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws1969/*TestCase.class" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws1969/META-INF">
+ <include name="wsdl/**" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws2000 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2000.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2000/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2000/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws2009 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2009.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2009/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2009/**/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2009/*TestCase.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2009/WEB-INF">
+ <include name="wsdl/**" />
+ <include name="schema/**" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2074 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase1.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase1/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2074/usecase1/service/POJOIface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2074/usecase1/service/POJOImpl.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2074/handler/DescriptorResourcesHandler.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2074/handler/JavaResourcesHandler.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2074/usecase1/service/jaxws-service-handlers.xml" />
+ </classes>
+ </war>
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase2.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2074/usecase2/service/EJB3Iface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2074/usecase2/service/EJB3Impl.class" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase2/META-INF">
+ <include name="ejb-jar.xml" />
+ </metainf>
+ </jar>
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase3.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase3/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2074/usecase3/service/POJOIface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2074/usecase3/service/POJOImpl.class" />
+ </classes>
+ </war>
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase4.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2074/usecase4/service/EJB3Iface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2074/usecase4/service/EJB3Impl.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2074/handler/DescriptorResourcesHandler.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2074/handler/JavaResourcesHandler.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2074/usecase4/service/jaxws-service-handlers.xml" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase4/META-INF">
+ <include name="ejb-jar.xml" />
+ </metainf>
+ </jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase1.sar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws2074-usecase1.war" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase1-sar/META-INF">
+ <include name="application.xml" />
+ </metainf>
+ </jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase2.sar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws2074-usecase2.jar" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase2-sar/META-INF">
+ <include name="application.xml" />
+ </metainf>
+ </jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase3.sar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws2074-usecase3.war" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase3-sar/META-INF">
+ <include name="application.xml" />
+ </metainf>
+ </jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2074-usecase4.sar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws2074-usecase4.jar" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2074/usecase4-sar/META-INF">
+ <include name="application.xml" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws2150 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2150.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2150/*Service*.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF">
+ <include name="wsdl/**" />
+ </webinf>
+ </war>
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2150-sec.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF/web-sec.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2150/*Service*.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2150/WEB-INF">
+ <include name="wsdl/**" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2183 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2183.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2183/**/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2183/**/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws2218 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2218.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2218/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2218/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws2241 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2241.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2241/EJB3Bean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2241/EJB3RemoteInterface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2241/EndpointInterface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2241/EndpointService.class" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2241/META-INF">
+ <include name="jboss.xml" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws2250 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2250.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2250/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2250/**/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2250/*TestCase.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2250/WEB-INF">
+ <include name="jboss-web.xml" />
+ </webinf>
+ </war>
+
+ <!-- jbws2257 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2257.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2257/Service*.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2257/jaxws/*.class" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2257/META-INF">
+ <include name="wsdl/**" />
+ </metainf>
+ </jar>
+
+ <!-- jaxws-jbws2278 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2278.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2278/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2278/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2278/JBWS2278TestCase.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2278/WEB-INF">
+ <include name="jboss-web.xml" />
+ <include name="wsdl/*" />
+ </webinf>
+ </war>
+
+ <!-- jbws2307 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2307-client.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-client/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2307/ClientServlet.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2307/Hello.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2307/HelloService.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-client">
+ <include name="wsdl/**" />
+ <include name="*.xml" />
+ </webinf>
+ </war>
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2307-service.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-service/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2307/Hello.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2307/HelloImpl.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2307/HelloService.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2307/WEB-INF-service">
+ <include name="wsdl/**" />
+ <include name="*.xml" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2412 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2412.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2412/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2412/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2412/*TestCase.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2412/WEB-INF">
+ <include name="wsdl/*" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2419 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2419.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2419/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml" />
+ <include name="org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2419/WEB-INF">
+ <include name="wsdl/*" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2449 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2449.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2449/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2449/*TestCase.class" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2449/META-INF">
+ <include name="wsdl/*" />
+ </metainf>
+ </jar>
+
+ <!-- jbws2527 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2527-client.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-client/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2527/ClientServlet.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2527/Hello.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2527/HelloService.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-client">
+ <include name="wsdl/**" />
+ <include name="*.xml" />
+ </webinf>
+ </war>
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2527-service.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-service/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2527/Hello.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2527/HelloImpl.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2527/HelloService.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-service">
+ <include name="wsdl/**" />
+ <include name="*.xml" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2630 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2630-service.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2630/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2630/Endpoint*.class" />
+ </classes>
+ </war>
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2630.jar">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws2630-service.war" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws2634 -->
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2634.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2634/shared/*.class" />
+ </fileset>
+ </jar>
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2634-pojo.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2634/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/POJOBean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/EndpointIface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/AbstractEndpointImpl.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2634/shared/handlers/TestHandler.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/jaxws-handler.xml" />
+ </classes>
+ </war>
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2634-ejb3.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/EJB3Bean.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/EndpointIface.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/AbstractEndpointImpl.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2634/shared/handlers/TestHandler.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2634/webservice/jaxws-handler.xml" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2634/META-INF">
+ <include name="ejb-jar.xml" />
+ </metainf>
+ </jar>
+ <ear appxml="${tests.output.dir}/test-resources/jaxws/jbws2634/META-INF/application.xml" earfile="${tests.output.dir}/test-libs/jaxws-jbws2634.ear">
+ <fileset file="${tests.output.dir}/test-libs/jaxws-jbws2634.jar" />
+ <fileset file="${tests.output.dir}/test-libs/jaxws-jbws2634-ejb3.jar" />
+ <fileset file="${tests.output.dir}/test-libs/jaxws-jbws2634-pojo.war" />
+ </ear>
+
+ <!-- jaxws-jbws2701 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2701.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2701/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2701/*TestCase.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws2717 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2717.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2717/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2717/EndpointImpl.class" />
+ </classes>
+ </war>
+
+ <!-- jaxws-jbws2718 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2718.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2718/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2718/**/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2718/*TestCase.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2718/WEB-INF">
+ <include name="wsdl1/**" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2934 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2934.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2934/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2934/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2934/EndpointEJB.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2934/*TestCase*.class" />
+ </classes>
+ </war>
+
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2934.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2934/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2934/EndpointJSE.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2934/*TestCase*.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws-jbws2937 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2937.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2937/EndpointImpl.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws2937/UserType.class" />
+ </fileset>
+ </jar>
+
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2937-client.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2937/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2937/EndpointImpl.class" />
+ </fileset>
+ </jar>
+
+ <!-- jaxws namespace -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-namespace.war" webxml="${tests.output.dir}/test-resources/jaxws/namespace/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/namespace/CustomHandler.class" />
+ <include name="org/jboss/test/ws/jaxws/namespace/EndpointBean.class" />
+ <include name="org/jboss/test/ws/jaxws/namespace/EndpointInterface.class" />
+ <include name="org/jboss/test/ws/jaxws/namespace/*.xml" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/namespace/WEB-INF">
+ <include name="jboss-web.xml" />
+ </webinf>
+ </war>
+
+ <!-- jaxws-webfault -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-webfault.war" webxml="${tests.output.dir}/test-resources/jaxws/webfault/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/webfault/Endpoint.class" />
+ <include name="org/jboss/test/ws/jaxws/webfault/EndpointImpl.class" />
+ <include name="org/jboss/test/ws/jaxws/webfault/CustomException.class" />
+ <include name="org/jboss/test/ws/jaxws/webfault/SimpleException.class" />
+ </classes>
+ </war>
+
+ <!-- jaxws-wrapped-accessor -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-wrapped-accessor.war" webxml="${tests.output.dir}/test-resources/jaxws/wrapped/accessor/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/wrapped/accessor/Accessor.class" />
+ <include name="org/jboss/test/ws/jaxws/wrapped/accessor/AccessorImpl.class" />
+ <include name="org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/*" />
+ </classes>
+ </war>
+
+ <!-- Please add alphabetically -->
+
+ </target>
+
</project>
Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/Runner.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/Runner.java 2010-03-09 10:14:13 UTC (rev 11737)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/Runner.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -25,6 +25,8 @@
import gnu.getopt.LongOpt;
import java.io.PrintStream;
+import java.text.DecimalFormat;
+import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -43,32 +45,35 @@
*/
public class Runner
{
-
+
private static int threadCount = 5;
private static int runs = 10;
private static int iterations = 10;
-
+
private static long sleep = 1500;
-
+
private static boolean verbose = false;
-
+
private static String address = "localhost:8080";
-
-
- public static class BenchmarkCallable implements Callable<Result> {
+ public static class BenchmarkCallable implements Callable<Result>
+ {
+
private final BenchmarkTest test;
+
private int iterations;
+
private String id;
-
- public BenchmarkCallable(String id, BenchmarkTest test, int iterations) {
+
+ public BenchmarkCallable(String id, BenchmarkTest test, int iterations)
+ {
this.test = test;
this.iterations = iterations;
this.id = id;
}
-
+
public Result call() throws Exception
{
Result result = new Result(id);
@@ -93,21 +98,18 @@
return result;
}
}
-
+
private static BenchmarkTest parseArguments(String[] args) throws Exception
{
String shortOpts = "t:r:s:i:a:vh";
LongOpt[] longOpts =
- {
- new LongOpt("deployment", LongOpt.REQUIRED_ARGUMENT, null, 'd'),
- new LongOpt("threads", LongOpt.REQUIRED_ARGUMENT, null, 't'),
- new LongOpt("runs", LongOpt.REQUIRED_ARGUMENT, null, 'r'),
- new LongOpt("sleep", LongOpt.REQUIRED_ARGUMENT, null, 's'),
- new LongOpt("iterations", LongOpt.REQUIRED_ARGUMENT, null, 'i'),
- new LongOpt("address", LongOpt.REQUIRED_ARGUMENT, null, 'a'),
- new LongOpt("verbose", LongOpt.NO_ARGUMENT, null, 'v'),
- new LongOpt("help", LongOpt.NO_ARGUMENT, null, 'h')
- };
+ {new LongOpt("deployment", LongOpt.REQUIRED_ARGUMENT, null, 'd'),
+ new LongOpt("threads", LongOpt.REQUIRED_ARGUMENT, null, 't'),
+ new LongOpt("runs", LongOpt.REQUIRED_ARGUMENT, null, 'r'),
+ new LongOpt("sleep", LongOpt.REQUIRED_ARGUMENT, null, 's'),
+ new LongOpt("iterations", LongOpt.REQUIRED_ARGUMENT, null, 'i'),
+ new LongOpt("address", LongOpt.REQUIRED_ARGUMENT, null, 'a'),
+ new LongOpt("verbose", LongOpt.NO_ARGUMENT, null, 'v'), new LongOpt("help", LongOpt.NO_ARGUMENT, null, 'h')};
Getopt getopt = new Getopt("Benchmark-runner", args, shortOpts, longOpts);
int c;
@@ -115,32 +117,32 @@
{
switch (c)
{
- case 't':
+ case 't' :
threadCount = Integer.parseInt(getopt.getOptarg());
break;
- case 'r':
+ case 'r' :
runs = Integer.parseInt(getopt.getOptarg());
break;
- case 's':
+ case 's' :
sleep = Long.parseLong(getopt.getOptarg());
break;
- case 'i':
+ case 'i' :
iterations = Integer.parseInt(getopt.getOptarg());
break;
- case 'a':
+ case 'a' :
address = getopt.getOptarg();
break;
- case 'v':
+ case 'v' :
verbose = true;
break;
- case 'h':
+ case 'h' :
printHelp();
System.exit(0);
- case '?':
+ case '?' :
System.exit(1);
}
}
-
+
int classPos = getopt.getOptind();
if (classPos >= args.length)
{
@@ -148,14 +150,14 @@
printHelp();
System.exit(1);
}
-
+
try
{
Class<?> clazz = Class.forName(args[classPos]);
System.out.println(BenchmarkTest.class.isAssignableFrom(clazz));
System.out.println(clazz.isAssignableFrom(BenchmarkTest.class));
- return (BenchmarkTest)clazz.newInstance();
+ return (BenchmarkTest) clazz.newInstance();
}
catch (Exception e)
{
@@ -163,7 +165,7 @@
throw e;
}
}
-
+
private static void printHelp()
{
PrintStream out = System.out;
@@ -185,8 +187,10 @@
*/
public static void main(String[] args) throws Exception
{
+ NumberFormat speedForm = new DecimalFormat("0.00");
+
BenchmarkTest test = parseArguments(args);
-
+
// Workaround for JBWS-2681
test.prepare();
@@ -231,15 +235,17 @@
failed = failed + result.getFailures();
if (verbose)
{
- System.out.println(result.getId() + " -> " + result.getAverageProcessingTime() + " ms/iteration, " + subtotal + " iterations, " + result.getFailures()
- + " failures, " + result.getPreparationTime() + " ms of preparation.");
+ System.out.println(result.getId() + " -> " + result.getAverageProcessingTime() + " ms/iteration, "
+ + subtotal + " iterations, " + result.getFailures() + " failures, " + result.getPreparationTime()
+ + " ms of preparation.");
}
}
+
System.out.println();
System.out.println("----------- RUN STATS -------------");
System.out.println("Iterations: " + currentRunIterations);
System.out.println("Total processing time: " + currentRunProcTime + " ms");
- System.out.println("Iterations/sec: " + 1000 * currentRunIterations / currentRunProcTime);
+ System.out.println("Iterations/sec: " + speedForm.format(1000f * currentRunIterations / currentRunProcTime));
System.out.println("------------------------------------");
System.out.println();
}
@@ -247,11 +253,11 @@
System.out.println("Iterations: " + total);
System.out.println("Failures: " + failed);
System.out.println("Total processing time: " + procTime + " ms");
- System.out.println("Iterations/sec: " + 1000 * total / procTime);
+ System.out.println("Iterations/sec: " + speedForm.format(1000f * total / procTime));
System.out.println("------------------------------------");
-
+
}
-
+
public static String getServerAddress()
{
return address;
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.Runner;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public abstract class DataTypesDocTest implements BenchmarkTest
+{
+ protected String endpointURL = "http://" + Runner.getServerAddress() + "/jaxws-benchmark-datatypes/EndpointDocImpl";
+
+ protected String targetNS = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/";
+
+ public Object prepare() throws Exception
+ {
+ URL wsdlURL = new URL(endpointURL + "?wsdl");
+ QName serviceName = new QName(targetNS, "EndpointDocService");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ return service.getPort(EndpointDoc.class);
+ }
+
+ public abstract void performIteration(Object port) throws Exception;
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.Runner;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public abstract class DataTypesRPCTest implements BenchmarkTest
+{
+ protected String endpointURL = "http://" + Runner.getServerAddress() + "/jaxws-benchmark-datatypes/EndpointRPCImpl";
+
+ protected String targetNS = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/";
+
+ public Object prepare() throws Exception
+ {
+ URL wsdlURL = new URL(endpointURL + "?wsdl");
+ QName serviceName = new QName(targetNS, "EndpointRPCService");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ return service.getPort(EndpointRPC.class);
+ }
+
+ public abstract void performIteration(Object port) throws Exception;
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.Runner;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public abstract class DataTypesWrappedDocTest implements BenchmarkTest
+{
+ protected String endpointURL = "http://" + Runner.getServerAddress()
+ + "/jaxws-benchmark-datatypes/EndpointWrappedDocImpl";
+
+ protected String targetNS = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/";
+
+ public Object prepare() throws Exception
+ {
+ URL wsdlURL = new URL(endpointURL + "?wsdl");
+ QName serviceName = new QName(targetNS, "EndpointWrappedDocService");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ return service.getPort(EndpointWrappedDoc.class);
+ }
+
+ public abstract void performIteration(Object port) throws Exception;
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/DataTypesWrappedRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.Runner;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public abstract class DataTypesWrappedRPCTest implements BenchmarkTest
+{
+ protected String endpointURL = "http://" + Runner.getServerAddress()
+ + "/jaxws-benchmark-datatypes/EndpointWrappedRPCImpl";
+
+ protected String targetNS = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/";
+
+ public Object prepare() throws Exception
+ {
+ URL wsdlURL = new URL(endpointURL + "?wsdl");
+ QName serviceName = new QName(targetNS, "EndpointWrappedRPCService");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ return service.getPort(EndpointWrappedRPC.class);
+ }
+
+ public abstract void performIteration(Object port) throws Exception;
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDoc.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDoc.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDoc.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes;
+
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.Calendar;
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(name = "EndpointDoc", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
+public interface EndpointDoc
+{
+
+ @WebMethod(operationName = "sayHello", action = "urn:SayHello")
+ public String sayHello(String toWhom);
+
+ @WebMethod(operationName = "increaseBigDecimal", action = "urn:IncreaseBigDecimal")
+ public BigDecimal increaseBigDecimal(BigDecimal value);
+
+ @WebMethod(operationName = "negateBoolean", action = "urn:NegateBoolean")
+ public boolean negateBoolean(boolean value);
+
+ @WebMethod(operationName = "increaseByte", action = "urn:IncreaseByte")
+ public byte increaseByte(byte value);
+
+ @WebMethod(operationName = "reverseByteOrder", action = "urn:ReverseByteOrder")
+ public byte[] reverseByteOrder(byte[] data);
+
+ @WebMethod(operationName = "getCalendarPlusDay", action = "urn:GetCalendarPlusDay")
+ public Calendar getCalendarPlusDay(Calendar calendar);
+
+ @WebMethod(operationName = "getDatePlusDay", action = "urn:GetDatePlusDay")
+ public Date getDatePlusDay(Date date);
+
+ @WebMethod(operationName = "increaseDouble", action = "urn:IncreaseDouble")
+ public double increaseDouble(double value);
+
+ @WebMethod(operationName = "increaseFloat", action = "urn:IncreaseFloat")
+ public float increaseFloat(float value);
+
+ @WebMethod(operationName = "increaseInt", action = "urn:IncreaseInt")
+ public int increaseInt(int value);
+
+ @WebMethod(operationName = "increaseLong", action = "urn:IncreaseLong")
+ public long increaseLong(long value);
+
+ @WebMethod(operationName = "modifyQName", action = "urn:ModifyQName")
+ public QName modifyQName(QName value);
+
+ @WebMethod(operationName = "increaseShort", action = "urn:IncreaseShort")
+ public short increaseShort(short value);
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDocImpl.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDocImpl.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointDocImpl.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,127 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes;
+
+import java.io.IOException;
+
+import java.math.BigDecimal;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+
+import javax.jws.WebParam;
+import javax.jws.WebService; //import javax.jws.soap.SOAPBinding;
+import javax.xml.namespace.QName;
+
+//import org.jboss.logging.Logger;
+
+import javax.ejb.Stateless;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(serviceName = "EndpointDocService", portName = "EndpointDocPort", endpointInterface = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc")
+@Stateless
+public class EndpointDocImpl
+{
+ // Provide logging
+ // private static Logger log = Logger.getLogger(EndpointRPCImpl.class);
+
+ public String sayHello(@WebParam(name = "toWhom") String toWhom)
+ {
+ String greeting = "Hello World Greeting for '" + toWhom + "' today";
+ return greeting;
+ }
+
+ public BigDecimal increaseBigDecimal(@WebParam(name = "value") BigDecimal value)
+ {
+ return value.add(new BigDecimal(1));
+ }
+
+ public boolean negateBoolean(@WebParam(name = "value") boolean value)
+ {
+ return !value;
+ }
+
+ public byte increaseByte(@WebParam(name = "value") byte value)
+ {
+ return (byte) (value + 1);
+ }
+
+ public byte[] reverseByteOrder(@WebParam(name = "data") byte[] data) throws IOException
+ {
+ byte[] retVal = new byte[data.length];
+ for (int i = 0; i < data.length; i++)
+ {
+ retVal[i] = data[data.length - 1 - i];
+ }
+ return retVal;
+ }
+
+ public Calendar getCalendarPlusDay(@WebParam(name = "calendar") Calendar calendar)
+ {
+ Calendar retVal = new GregorianCalendar();
+ retVal.setTimeInMillis(calendar.getTimeInMillis() + 86400000L);
+ return retVal;
+ }
+
+ public Date getDatePlusDay(@WebParam(name = "date") Date date)
+ {
+ return new Date(date.getTime() + 86400000L);
+ }
+
+ public double increaseDouble(@WebParam(name = "value") double value)
+ {
+ return value + 1;
+ }
+
+ public float increaseFloat(@WebParam(name = "value") float value)
+ {
+ return value + 1;
+ }
+
+ public int increaseInt(@WebParam(name = "value") int value)
+ {
+ return value + 1;
+ }
+
+ public long increaseLong(@WebParam(name = "value") long value)
+ {
+ return value + 1L;
+ }
+
+ public QName modifyQName(@WebParam(name = "value") QName value)
+ {
+ String modString = "_modified";
+ String prefix = value.getPrefix();
+ String uri = value.getNamespaceURI();
+ String localPart = value.getLocalPart() + modString;
+ QName retVal = new QName(uri, localPart, prefix);
+ return retVal;
+ }
+
+ public short increaseShort(@WebParam(name = "value") short value)
+ {
+ return (short) (value + 1);
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPC.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPC.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPC.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes;
+
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.Calendar;
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(name = "EndpointRPC", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface EndpointRPC
+{
+
+ @WebMethod(operationName = "sayHello", action = "urn:SayHello")
+ public String sayHello(String toWhom);
+
+ @WebMethod(operationName = "increaseBigDecimal", action = "urn:IncreaseBigDecimal")
+ public BigDecimal increaseBigDecimal(BigDecimal value);
+
+ @WebMethod(operationName = "negateBoolean", action = "urn:NegateBoolean")
+ public boolean negateBoolean(boolean value);
+
+ @WebMethod(operationName = "increaseByte", action = "urn:IncreaseByte")
+ public byte increaseByte(byte value);
+
+ @WebMethod(operationName = "reverseByteOrder", action = "urn:ReverseByteOrder")
+ public byte[] reverseByteOrder(byte[] data);
+
+ @WebMethod(operationName = "getCalendarPlusDay", action = "urn:GetCalendarPlusDay")
+ public Calendar getCalendarPlusDay(Calendar calendar);
+
+ @WebMethod(operationName = "getDatePlusDay", action = "urn:GetDatePlusDay")
+ public Date getDatePlusDay(Date date);
+
+ @WebMethod(operationName = "increaseDouble", action = "urn:IncreaseDouble")
+ public double increaseDouble(double value);
+
+ @WebMethod(operationName = "increaseFloat", action = "urn:IncreaseFloat")
+ public float increaseFloat(float value);
+
+ @WebMethod(operationName = "increaseInt", action = "urn:IncreaseInt")
+ public int increaseInt(int value);
+
+ @WebMethod(operationName = "increaseLong", action = "urn:IncreaseLong")
+ public long increaseLong(long value);
+
+ @WebMethod(operationName = "modifyQName", action = "urn:ModifyQName")
+ public QName modifyQName(QName value);
+
+ @WebMethod(operationName = "increaseShort", action = "urn:IncreaseShort")
+ public short increaseShort(short value);
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPCImpl.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPCImpl.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointRPCImpl.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,126 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes;
+
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+
+import javax.jws.WebParam;
+import javax.jws.WebService; //import javax.jws.soap.SOAPBinding;
+import javax.xml.namespace.QName;
+
+//import org.jboss.logging.Logger;
+
+import javax.ejb.Stateless;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(serviceName = "EndpointRPCService", portName = "EndpointRPCPort", endpointInterface = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC")
+@Stateless
+public class EndpointRPCImpl
+{
+ // Provide logging
+ // private static Logger log = Logger.getLogger(EndpointRPCImpl.class);
+
+ public String sayHello(@WebParam(name = "toWhom") String toWhom)
+ {
+ String greeting = "Hello World Greeting for '" + toWhom + "' today";
+ return greeting;
+ }
+
+ public BigDecimal increaseBigDecimal(@WebParam(name = "value") BigDecimal value)
+ {
+ return value.add(new BigDecimal(1));
+ }
+
+ public boolean negateBoolean(@WebParam(name = "value") boolean value)
+ {
+ return !value;
+ }
+
+ public byte increaseByte(@WebParam(name = "value") byte value)
+ {
+ return (byte) (value + 1);
+ }
+
+ public byte[] reverseByteOrder(@WebParam(name = "data") byte[] data) throws IOException
+ {
+ byte[] retVal = new byte[data.length];
+ for (int i = 0; i < data.length; i++)
+ {
+ retVal[i] = data[data.length - 1 - i];
+ }
+ return retVal;
+ }
+
+ public Calendar getCalendarPlusDay(@WebParam(name = "calendar") Calendar calendar)
+ {
+ Calendar retVal = new GregorianCalendar();
+ retVal.setTimeInMillis(calendar.getTimeInMillis() + 86400000L);
+ return retVal;
+ }
+
+ public Date getDatePlusDay(@WebParam(name = "date") Date date)
+ {
+ return new Date(date.getTime() + 86400000L);
+ }
+
+ public double increaseDouble(@WebParam(name = "value") double value)
+ {
+ return value + 1;
+ }
+
+ public float increaseFloat(@WebParam(name = "value") float value)
+ {
+ return value + 1;
+ }
+
+ public int increaseInt(@WebParam(name = "value") int value)
+ {
+ return value + 1;
+ }
+
+ public long increaseLong(@WebParam(name = "value") long value)
+ {
+ return value + 1L;
+ }
+
+ public QName modifyQName(@WebParam(name = "value") QName value)
+ {
+ String modString = "_modified";
+ String prefix = value.getPrefix();
+ String uri = value.getNamespaceURI();
+ String localPart = value.getLocalPart() + modString;
+ QName retVal = new QName(uri, localPart, prefix);
+ return retVal;
+ }
+
+ public short increaseShort(@WebParam(name = "value") short value)
+ {
+ return (short) (value + 1);
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDoc.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDoc.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDoc.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,180 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes;
+
+import java.math.BigDecimal;
+import java.util.Calendar;
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(name = "EndpointWrappedDoc", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
+public interface EndpointWrappedDoc
+{
+
+ @WebMethod(operationName = "sayHello", action = "urn:SayHello")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "SayHello", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.SayHello")
+ @ResponseWrapper(localName = "SayHelloResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.SayHelloResponse")
+ public String sayHello(
+ @WebParam(name = "ToWhom", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") String toWhom);
+
+ @WebMethod(operationName = "increaseBigDecimal", action = "urn:IncreaseBigDecimal")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseBigDecimal", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseBigDecimal")
+ @ResponseWrapper(localName = "IncreaseBigDecimalResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseBigDecimalResponse")
+ public BigDecimal increaseBigDecimal(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") BigDecimal value);
+
+ @WebMethod(operationName = "negateBoolean", action = "urn:NegateBoolean")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "NegateBoolean", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.NegateBoolean")
+ @ResponseWrapper(localName = "NegateBooleanResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.NegateBooleanResponse")
+ public boolean negateBoolean(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") boolean value);
+
+ @WebMethod(operationName = "increaseByte", action = "urn:IncreaseByte")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseByte", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseByte")
+ @ResponseWrapper(localName = "IncreaseByteResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseByteResponse")
+ public byte increaseByte(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte value);
+
+ @WebMethod(operationName = "reverseByteOrder", action = "urn:ReverseByteOrder")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ReverseByteOrder", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ReverseByteOrder")
+ @ResponseWrapper(localName = "ReverseByteOrderResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ReverseByteOrderResponse")
+ public byte[] reverseByteOrder(
+ @WebParam(name = "Data", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte[] data);
+
+ @WebMethod(operationName = "getCalendarPlusDay", action = "urn:GetCalendarPlusDay")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "GetCalendarPlusDay", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetCalendarPlusDay")
+ @ResponseWrapper(localName = "GetCalendarPlusDayResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetCalendarPlusDayResponse")
+ public Calendar getCalendarPlusDay(
+ @WebParam(name = "Calendar", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Calendar calendar);
+
+ @WebMethod(operationName = "getDatePlusDay", action = "urn:GetDatePlusDay")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "GetDatePlusDay", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetDatePlusDay")
+ @ResponseWrapper(localName = "GetDatePlusDayResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetDatePlusDayResponse")
+ public Date getDatePlusDay(
+ @WebParam(name = "Date", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Date date);
+
+ @WebMethod(operationName = "increaseDouble", action = "urn:IncreaseDouble")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseDouble", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseDouble")
+ @ResponseWrapper(localName = "IncreaseDoubleResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseDoubleResponse")
+ public double increaseDouble(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") double value);
+
+ @WebMethod(operationName = "increaseFloat", action = "urn:IncreaseFloat")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseFloat", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseFloat")
+ @ResponseWrapper(localName = "IncreaseFloatResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseFloatResponse")
+ public float increaseFloat(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") float value);
+
+ @WebMethod(operationName = "increaseInt", action = "urn:IncreaseInt")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseInt", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseInt")
+ @ResponseWrapper(localName = "IncreaseIntResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseIntResponse")
+ public int increaseInt(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") int value);
+
+ @WebMethod(operationName = "increaseLong", action = "urn:IncreaseLong")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseLong", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseLong")
+ @ResponseWrapper(localName = "IncreaseLongResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseLongResponse")
+ public long increaseLong(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") long value);
+
+ @WebMethod(operationName = "modifyQName", action = "urn:ModifyQName")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ModifyQName", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyQName")
+ @ResponseWrapper(localName = "ModifyQNameResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyQNameResponse")
+ public QName modifyQName(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") QName value);
+
+ @WebMethod(operationName = "increaseShort", action = "urn:IncreaseShort")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseShort", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseShort")
+ @ResponseWrapper(localName = "IncreaseShortResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseShortResponse")
+ public short increaseShort(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") short value);
+
+ @WebMethod(operationName = "valuesToString", action = "urn:ValuesToString")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ValuesToString", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToString")
+ @ResponseWrapper(localName = "ValuesToStringResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToStringResponse")
+ public String valuesToString(
+ @WebParam(name = "ByteValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte byteValue,
+ @WebParam(name = "ByteArrayValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte[] byteArrayValue,
+ @WebParam(name = "ShortValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") short shortValue,
+ @WebParam(name = "IntValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") int intValue,
+ @WebParam(name = "LongValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") long longValue,
+ @WebParam(name = "FloatValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") float floatValue,
+ @WebParam(name = "DoubleValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") double doubleValue,
+ @WebParam(name = "StringValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") String stringValue,
+ @WebParam(name = "QNameValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") QName qNameValue,
+ @WebParam(name = "DateValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Date dateValue,
+ @WebParam(name = "CalendarValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Calendar calendarValue);
+
+ @WebMethod(operationName = "valuesToComplexType", action = "urn:ValuesToComplexType")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ValuesToComplexType", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToComplexType")
+ @ResponseWrapper(localName = "ValuesToComplexTypeResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToComplexTypeResponse")
+ public ComplexType valuesToComplexType(
+ @WebParam(name = "ByteValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte byteValue,
+ @WebParam(name = "ByteArrayValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte[] byteArrayValue,
+ @WebParam(name = "ShortValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") short shortValue,
+ @WebParam(name = "IntValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") int intValue,
+ @WebParam(name = "LongValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") long longValue,
+ @WebParam(name = "FloatValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") float floatValue,
+ @WebParam(name = "DoubleValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") double doubleValue,
+ @WebParam(name = "StringValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") String stringValue,
+ @WebParam(name = "QNameValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") QName qNameValue,
+ @WebParam(name = "DateValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Date dateValue,
+ @WebParam(name = "CalendarValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Calendar calendarValue);
+
+ @WebMethod(operationName = "modifyComplexType", action = "urn:ModifyComplexType")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ModifyComplexType", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyComplexType")
+ @ResponseWrapper(localName = "ModifyComplexTypeResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyComplexTypeResponse")
+ public ComplexType modifyComplexType(
+ @WebParam(name = "ComplexTypeValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") ComplexType complexTypeValue);
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDocImpl.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDocImpl.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedDocImpl.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,193 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes;
+
+import java.io.IOException;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Calendar;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService; //import javax.jws.soap.SOAPBinding;
+import javax.xml.namespace.QName;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+//import org.jboss.logging.Logger;
+
+import javax.ejb.Stateless;
+
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(serviceName = "EndpointWrappedDocService", portName = "EndpointWrappedDocPort", endpointInterface = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc")
+@Stateless
+public class EndpointWrappedDocImpl
+{
+
+ private static final List<String> stringList;
+
+ static
+ {
+ stringList = new ArrayList<String>();
+ for (int i = 0; i < 10; i++)
+ {
+ stringList.add("item " + i);
+ }
+ }
+
+ public String sayHello(String toWhom)
+ {
+ String greeting = "Hello World Greeting for '" + toWhom + "' today";
+ return greeting;
+ }
+
+ public BigDecimal increaseBigDecimal(BigDecimal value)
+ {
+ return value.add(new BigDecimal(1));
+ }
+
+ public boolean negateBoolean(boolean value)
+ {
+ return !value;
+ }
+
+ public byte increaseByte(byte value)
+ {
+ return (byte) (value + 1);
+ }
+
+ public byte[] reverseByteOrder(byte[] data)
+ {
+ byte[] retVal = new byte[data.length];
+ for (int i = 0; i < data.length; i++)
+ {
+ retVal[i] = data[data.length - 1 - i];
+ }
+ return retVal;
+ }
+
+ public Calendar getCalendarPlusDay(Calendar calendar)
+ {
+ Calendar retVal = new GregorianCalendar();
+ retVal.setTimeInMillis(calendar.getTimeInMillis() + 86400000L);
+ return retVal;
+ }
+
+ public Date getDatePlusDay(Date date)
+ {
+ return new Date(date.getTime() + 86400000L);
+ }
+
+ public double increaseDouble(double value)
+ {
+ return value + 1;
+ }
+
+ public float increaseFloat(float value)
+ {
+ return value + 1;
+ }
+
+ public int increaseInt(int value)
+ {
+ return value + 1;
+ }
+
+ public long increaseLong(long value)
+ {
+ return value + 1L;
+ }
+
+ public QName modifyQName(QName value)
+ {
+ String modString = "_modified";
+ String prefix = value.getPrefix();
+ String uri = value.getNamespaceURI();
+ String localPart = value.getLocalPart() + modString;
+ QName retVal = new QName(uri, localPart, prefix);
+ return retVal;
+ }
+
+ public short increaseShort(short value)
+ {
+ return (short) (value + 1);
+ }
+
+ public String valuesToString(byte byteValue, byte[] byteArrayValue, short shortValue, int intValue, long longValue,
+ float floatValue, double doubleValue, String stringValue, QName qNameValue, Date dateValue,
+ Calendar calendarValue)
+ {
+ StringBuffer sb = new StringBuffer();
+ sb.append("[byteValue=" + byteValue);
+ sb.append(" byteArrayValue=" + new String(byteArrayValue));
+ sb.append(" shortValue=" + shortValue);
+ sb.append(" intValue=" + intValue);
+ sb.append(" longValue=" + longValue);
+ sb.append(" floatValue=" + floatValue);
+ sb.append(" doubleValue=" + doubleValue);
+ sb.append(" stringValue=" + stringValue);
+ sb.append(" qNameValue=" + qNameValue);
+ sb.append(" dateValue=" + dateValue);
+ sb.append(" calendarValue=" + calendarValue);
+ sb.append("]");
+ return sb.toString();
+ }
+
+ public ComplexType valuesToComplexType(byte byteValue, byte[] byteArrayValue, short shortValue, int intValue,
+ long longValue, float floatValue, double doubleValue, String stringValue, QName qNameValue, Date dateValue,
+ Calendar calendarValue)
+ {
+
+ return new ComplexType(byteValue, byteArrayValue, shortValue, intValue, longValue, floatValue, doubleValue,
+ stringValue, stringList, qNameValue, dateValue, calendarValue);
+ }
+
+ public ComplexType modifyComplexType(ComplexType complexTypeValue)
+ {
+ complexTypeValue.setByteValue(increaseByte(complexTypeValue.getByteValue()));
+ complexTypeValue.setByteArrayValue(reverseByteOrder(complexTypeValue.getByteArrayValue()));
+ complexTypeValue.setShortValue(increaseShort(complexTypeValue.getShortValue()));
+ complexTypeValue.setIntValue(increaseInt(complexTypeValue.getIntValue()));
+ complexTypeValue.setLongValue(increaseLong(complexTypeValue.getLongValue()));
+ complexTypeValue.setFloatValue(increaseFloat(complexTypeValue.getFloatValue()));
+ complexTypeValue.setDoubleValue(increaseDouble(complexTypeValue.getDoubleValue()));
+ complexTypeValue.setStringValue(sayHello(complexTypeValue.getStringValue()));
+ Collections.sort(complexTypeValue.getStringList());
+ complexTypeValue.setqNameValue(modifyQName(complexTypeValue.getqNameValue()));
+ complexTypeValue.setDateValue(getDatePlusDay(complexTypeValue.getDateValue()));
+ complexTypeValue.setCalendarValue(getCalendarPlusDay(complexTypeValue.getCalendarValue()));
+ return complexTypeValue;
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPC.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPC.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPC.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,180 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes;
+
+import java.math.BigDecimal;
+import java.util.Calendar;
+import java.util.Date;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(name = "EndpointWrappedRPC", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface EndpointWrappedRPC
+{
+
+ @WebMethod(operationName = "sayHello", action = "urn:SayHello")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "SayHello", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.SayHello")
+ @ResponseWrapper(localName = "SayHelloResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.SayHelloResponse")
+ public String sayHello(
+ @WebParam(name = "ToWhom", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") String toWhom);
+
+ @WebMethod(operationName = "increaseBigDecimal", action = "urn:IncreaseBigDecimal")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseBigDecimal", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseBigDecimal")
+ @ResponseWrapper(localName = "IncreaseBigDecimalResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseBigDecimalResponse")
+ public BigDecimal increaseBigDecimal(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") BigDecimal value);
+
+ @WebMethod(operationName = "negateBoolean", action = "urn:NegateBoolean")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "NegateBoolean", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.NegateBoolean")
+ @ResponseWrapper(localName = "NegateBooleanResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.NegateBooleanResponse")
+ public boolean negateBoolean(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") boolean value);
+
+ @WebMethod(operationName = "increaseByte", action = "urn:IncreaseByte")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseByte", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseByte")
+ @ResponseWrapper(localName = "IncreaseByteResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseByteResponse")
+ public byte increaseByte(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte value);
+
+ @WebMethod(operationName = "reverseByteOrder", action = "urn:ReverseByteOrder")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ReverseByteOrder", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ReverseByteOrder")
+ @ResponseWrapper(localName = "ReverseByteOrderResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ReverseByteOrderResponse")
+ public byte[] reverseByteOrder(
+ @WebParam(name = "Data", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte[] data);
+
+ @WebMethod(operationName = "getCalendarPlusDay", action = "urn:GetCalendarPlusDay")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "GetCalendarPlusDay", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetCalendarPlusDay")
+ @ResponseWrapper(localName = "GetCalendarPlusDayResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetCalendarPlusDayResponse")
+ public Calendar getCalendarPlusDay(
+ @WebParam(name = "Calendar", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Calendar calendar);
+
+ @WebMethod(operationName = "getDatePlusDay", action = "urn:GetDatePlusDay")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "GetDatePlusDay", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetDatePlusDay")
+ @ResponseWrapper(localName = "GetDatePlusDayResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.GetDatePlusDayResponse")
+ public Date getDatePlusDay(
+ @WebParam(name = "Date", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Date date);
+
+ @WebMethod(operationName = "increaseDouble", action = "urn:IncreaseDouble")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseDouble", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseDouble")
+ @ResponseWrapper(localName = "IncreaseDoubleResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseDoubleResponse")
+ public double increaseDouble(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") double value);
+
+ @WebMethod(operationName = "increaseFloat", action = "urn:IncreaseFloat")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseFloat", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseFloat")
+ @ResponseWrapper(localName = "IncreaseFloatResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseFloatResponse")
+ public float increaseFloat(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") float value);
+
+ @WebMethod(operationName = "increaseInt", action = "urn:IncreaseInt")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseInt", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseInt")
+ @ResponseWrapper(localName = "IncreaseIntResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseIntResponse")
+ public int increaseInt(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") int value);
+
+ @WebMethod(operationName = "increaseLong", action = "urn:IncreaseLong")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseLong", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseLong")
+ @ResponseWrapper(localName = "IncreaseLongResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseLongResponse")
+ public long increaseLong(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") long value);
+
+ @WebMethod(operationName = "modifyQName", action = "urn:ModifyQName")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ModifyQName", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyQName")
+ @ResponseWrapper(localName = "ModifyQNameResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyQNameResponse")
+ public QName modifyQName(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") QName value);
+
+ @WebMethod(operationName = "increaseShort", action = "urn:IncreaseShort")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "IncreaseShort", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseShort")
+ @ResponseWrapper(localName = "IncreaseShortResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.IncreaseShortResponse")
+ public short increaseShort(
+ @WebParam(name = "Value", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") short value);
+
+ @WebMethod(operationName = "valuesToString", action = "urn:ValuesToString")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ValuesToString", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToString")
+ @ResponseWrapper(localName = "ValuesToStringResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToStringResponse")
+ public String valuesToString(
+ @WebParam(name = "ByteValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte byteValue,
+ @WebParam(name = "ByteArrayValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte[] byteArrayValue,
+ @WebParam(name = "ShortValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") short shortValue,
+ @WebParam(name = "IntValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") int intValue,
+ @WebParam(name = "LongValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") long longValue,
+ @WebParam(name = "FloatValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") float floatValue,
+ @WebParam(name = "DoubleValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") double doubleValue,
+ @WebParam(name = "StringValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") String stringValue,
+ @WebParam(name = "QNameValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") QName qNameValue,
+ @WebParam(name = "DateValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Date dateValue,
+ @WebParam(name = "CalendarValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Calendar calendarValue);
+
+ @WebMethod(operationName = "valuesToComplexType", action = "urn:ValuesToComplexType")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ValuesToComplexType", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToComplexType")
+ @ResponseWrapper(localName = "ValuesToComplexTypeResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ValuesToComplexTypeResponse")
+ public ComplexType valuesToComplexType(
+ @WebParam(name = "ByteValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte byteValue,
+ @WebParam(name = "ByteArrayValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") byte[] byteArrayValue,
+ @WebParam(name = "ShortValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") short shortValue,
+ @WebParam(name = "IntValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") int intValue,
+ @WebParam(name = "LongValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") long longValue,
+ @WebParam(name = "FloatValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") float floatValue,
+ @WebParam(name = "DoubleValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") double doubleValue,
+ @WebParam(name = "StringValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") String stringValue,
+ @WebParam(name = "QNameValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") QName qNameValue,
+ @WebParam(name = "DateValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Date dateValue,
+ @WebParam(name = "CalendarValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") Calendar calendarValue);
+
+ @WebMethod(operationName = "modifyComplexType", action = "urn:ModifyComplexType")
+ @WebResult(name = "Response", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/")
+ @RequestWrapper(localName = "ModifyComplexType", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyComplexType")
+ @ResponseWrapper(localName = "ModifyComplexTypeResponse", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.wrappers.ModifyComplexTypeResponse")
+ public ComplexType modifyComplexType(
+ @WebParam(name = "ComplexTypeValue", targetNamespace = "http://datatypes.test.benchmark.jaxws.ws.test.jboss.org/") ComplexType complexTypeValue);
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPCImpl.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPCImpl.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/EndpointWrappedRPCImpl.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,186 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes;
+
+import java.io.IOException;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Collections;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.jws.WebParam;
+import javax.jws.WebService; //import javax.jws.soap.SOAPBinding;
+import javax.xml.namespace.QName;
+
+//import org.jboss.logging.Logger;
+
+import javax.ejb.Stateless;
+
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+@WebService(serviceName = "EndpointWrappedRPCService", portName = "EndpointWrappedRPCPort", endpointInterface = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC")
+@Stateless
+public class EndpointWrappedRPCImpl
+{
+ private static final List<String> stringList;
+
+ static
+ {
+ stringList = new ArrayList<String>();
+ for (int i = 0; i < 10; i++)
+ {
+ stringList.add("item " + i);
+ }
+ }
+
+ public String sayHello(String toWhom)
+ {
+ String greeting = "Hello World Greeting for '" + toWhom + "' today";
+ return greeting;
+ }
+
+ public BigDecimal increaseBigDecimal(BigDecimal value)
+ {
+ return value.add(new BigDecimal(1));
+ }
+
+ public boolean negateBoolean(boolean value)
+ {
+ return !value;
+ }
+
+ public byte increaseByte(byte value)
+ {
+ return (byte) (value + 1);
+ }
+
+ public byte[] reverseByteOrder(byte[] data)
+ {
+ byte[] retVal = new byte[data.length];
+ for (int i = 0; i < data.length; i++)
+ {
+ retVal[i] = data[data.length - 1 - i];
+ }
+ return retVal;
+ }
+
+ public Calendar getCalendarPlusDay(Calendar calendar)
+ {
+ Calendar retVal = new GregorianCalendar();
+ retVal.setTimeInMillis(calendar.getTimeInMillis() + 86400000L);
+ return retVal;
+ }
+
+ public Date getDatePlusDay(Date date)
+ {
+ return new Date(date.getTime() + 86400000L);
+ }
+
+ public double increaseDouble(double value)
+ {
+ return value + 1;
+ }
+
+ public float increaseFloat(float value)
+ {
+ return value + 1;
+ }
+
+ public int increaseInt(int value)
+ {
+ return value + 1;
+ }
+
+ public long increaseLong(long value)
+ {
+ return value + 1L;
+ }
+
+ public QName modifyQName(QName value)
+ {
+ String modString = "_modified";
+ String prefix = value.getPrefix();
+ String uri = value.getNamespaceURI();
+ String localPart = value.getLocalPart() + modString;
+ QName retVal = new QName(uri, localPart, prefix);
+ return retVal;
+ }
+
+ public short increaseShort(short value)
+ {
+ return (short) (value + 1);
+ }
+
+ public String valuesToString(byte byteValue, byte[] byteArrayValue, short shortValue, int intValue, long longValue,
+ float floatValue, double doubleValue, String stringValue, QName qNameValue, Date dateValue,
+ Calendar calendarValue)
+ {
+ StringBuffer sb = new StringBuffer();
+ sb.append("[byteValue=" + byteValue);
+ sb.append(" byteArrayValue=" + new String(byteArrayValue));
+ sb.append(" shortValue=" + shortValue);
+ sb.append(" intValue=" + intValue);
+ sb.append(" longValue=" + longValue);
+ sb.append(" floatValue=" + floatValue);
+ sb.append(" doubleValue=" + doubleValue);
+ sb.append(" stringValue=" + stringValue);
+ sb.append(" qNameValue=" + qNameValue);
+ sb.append(" dateValue=" + dateValue);
+ sb.append(" calendarValue=" + calendarValue);
+ sb.append("]");
+ return sb.toString();
+ }
+
+ public ComplexType valuesToComplexType(byte byteValue, byte[] byteArrayValue, short shortValue, int intValue,
+ long longValue, float floatValue, double doubleValue, String stringValue, QName qNameValue, Date dateValue,
+ Calendar calendarValue)
+ {
+
+ return new ComplexType(byteValue, byteArrayValue, shortValue, intValue, longValue, floatValue, doubleValue,
+ stringValue, stringList, qNameValue, dateValue, calendarValue);
+ }
+
+ public ComplexType modifyComplexType(ComplexType complexTypeValue)
+ {
+ complexTypeValue.setByteValue(increaseByte(complexTypeValue.getByteValue()));
+ complexTypeValue.setByteArrayValue(reverseByteOrder(complexTypeValue.getByteArrayValue()));
+ complexTypeValue.setShortValue(increaseShort(complexTypeValue.getShortValue()));
+ complexTypeValue.setIntValue(increaseInt(complexTypeValue.getIntValue()));
+ complexTypeValue.setLongValue(increaseLong(complexTypeValue.getLongValue()));
+ complexTypeValue.setFloatValue(increaseFloat(complexTypeValue.getFloatValue()));
+ complexTypeValue.setDoubleValue(increaseDouble(complexTypeValue.getDoubleValue()));
+ complexTypeValue.setStringValue(sayHello(complexTypeValue.getStringValue()));
+ Collections.sort(complexTypeValue.getStringList());
+ complexTypeValue.setqNameValue(modifyQName(complexTypeValue.getqNameValue()));
+ complexTypeValue.setDateValue(getDatePlusDay(complexTypeValue.getDateValue()));
+ complexTypeValue.setCalendarValue(getCalendarPlusDay(complexTypeValue.getCalendarValue()));
+ return complexTypeValue;
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/types/ComplexType.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/types/ComplexType.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/types/ComplexType.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,301 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.types;
+
+import java.util.Arrays;
+
+import java.util.Calendar;
+import java.util.Date;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ComplexType
+{
+
+ private byte byteValue;
+
+ private byte[] byteArrayValue;
+
+ private short shortValue;
+
+ private int intValue;
+
+ private long longValue;
+
+ private float floatValue;
+
+ private double doubleValue;
+
+ private String stringValue;
+
+ private List<String> stringList;
+
+ private QName qNameValue;
+
+ private Date dateValue;
+
+ private Calendar calendarValue;
+
+ public ComplexType()
+ {
+ super();
+ }
+
+ public ComplexType(byte byteValue, byte[] byteArrayValue, short shortValue, int intValue, long longValue,
+ float floatValue, double doubleValue, String stringValue, List<String> stringList, QName qNameValue,
+ Date dateValue, Calendar calendarValue)
+ {
+ super();
+ this.byteValue = byteValue;
+ this.byteArrayValue = byteArrayValue;
+ this.shortValue = shortValue;
+ this.intValue = intValue;
+ this.longValue = longValue;
+ this.floatValue = floatValue;
+ this.doubleValue = doubleValue;
+ this.stringValue = stringValue;
+ this.stringList = stringList;
+ this.qNameValue = qNameValue;
+ this.dateValue = dateValue;
+ this.calendarValue = calendarValue;
+ }
+
+ public byte getByteValue()
+ {
+ return byteValue;
+ }
+
+ public void setByteValue(byte byteValue)
+ {
+ this.byteValue = byteValue;
+ }
+
+ public byte[] getByteArrayValue()
+ {
+ return byteArrayValue;
+ }
+
+ public void setByteArrayValue(byte[] byteArrayValue)
+ {
+ this.byteArrayValue = byteArrayValue;
+ }
+
+ public short getShortValue()
+ {
+ return shortValue;
+ }
+
+ public void setShortValue(short shortValue)
+ {
+ this.shortValue = shortValue;
+ }
+
+ public int getIntValue()
+ {
+ return intValue;
+ }
+
+ public void setIntValue(int intValue)
+ {
+ this.intValue = intValue;
+ }
+
+ public long getLongValue()
+ {
+ return longValue;
+ }
+
+ public void setLongValue(long longValue)
+ {
+ this.longValue = longValue;
+ }
+
+ public float getFloatValue()
+ {
+ return floatValue;
+ }
+
+ public void setFloatValue(float floatValue)
+ {
+ this.floatValue = floatValue;
+ }
+
+ public double getDoubleValue()
+ {
+ return doubleValue;
+ }
+
+ public void setDoubleValue(double doubleValue)
+ {
+ this.doubleValue = doubleValue;
+ }
+
+ public String getStringValue()
+ {
+ return stringValue;
+ }
+
+ public void setStringValue(String stringValue)
+ {
+ this.stringValue = stringValue;
+ }
+
+ public List<String> getStringList()
+ {
+ return stringList;
+ }
+
+ public void setStringList(List<String> stringList)
+ {
+ this.stringList = stringList;
+ }
+
+ public QName getqNameValue()
+ {
+ return qNameValue;
+ }
+
+ public void setqNameValue(QName qNameValue)
+ {
+ this.qNameValue = qNameValue;
+ }
+
+ public Date getDateValue()
+ {
+ return dateValue;
+ }
+
+ public void setDateValue(Date dateValue)
+ {
+ this.dateValue = dateValue;
+ }
+
+ public Calendar getCalendarValue()
+ {
+ return calendarValue;
+ }
+
+ public void setCalendarValue(Calendar calendarValue)
+ {
+ this.calendarValue = calendarValue;
+ }
+
+ @Override
+ public int hashCode()
+ {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + Arrays.hashCode(byteArrayValue);
+ result = prime * result + byteValue;
+ result = prime * result + ((calendarValue == null) ? 0 : calendarValue.hashCode());
+ result = prime * result + ((dateValue == null) ? 0 : dateValue.hashCode());
+ long temp;
+ temp = Double.doubleToLongBits(doubleValue);
+ result = prime * result + (int) (temp ^ (temp >>> 32));
+ result = prime * result + Float.floatToIntBits(floatValue);
+ result = prime * result + intValue;
+ result = prime * result + (int) (longValue ^ (longValue >>> 32));
+ result = prime * result + ((qNameValue == null) ? 0 : qNameValue.hashCode());
+ result = prime * result + shortValue;
+ result = prime * result + ((stringList == null) ? 0 : stringList.hashCode());
+ result = prime * result + ((stringValue == null) ? 0 : stringValue.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj)
+ {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ ComplexType other = (ComplexType) obj;
+ if (!Arrays.equals(byteArrayValue, other.byteArrayValue))
+ return false;
+ if (byteValue != other.byteValue)
+ return false;
+ if (calendarValue == null)
+ {
+ if (other.calendarValue != null)
+ return false;
+ }
+ else if (!calendarValue.equals(other.calendarValue))
+ return false;
+ if (dateValue == null)
+ {
+ if (other.dateValue != null)
+ return false;
+ }
+ else if (!dateValue.equals(other.dateValue))
+ return false;
+ if (Double.doubleToLongBits(doubleValue) != Double.doubleToLongBits(other.doubleValue))
+ return false;
+ if (Float.floatToIntBits(floatValue) != Float.floatToIntBits(other.floatValue))
+ return false;
+ if (intValue != other.intValue)
+ return false;
+ if (longValue != other.longValue)
+ return false;
+ if (qNameValue == null)
+ {
+ if (other.qNameValue != null)
+ return false;
+ }
+ else if (!qNameValue.equals(other.qNameValue))
+ return false;
+ if (shortValue != other.shortValue)
+ return false;
+ if (stringList == null)
+ {
+ if (other.stringList != null)
+ return false;
+ }
+ else if (!stringList.equals(other.stringList))
+ return false;
+ if (stringValue == null)
+ {
+ if (other.stringValue != null)
+ return false;
+ }
+ else if (!stringValue.equals(other.stringValue))
+ return false;
+ return true;
+ }
+
+ @Override
+ public String toString()
+ {
+ return "ComplexType [byteArrayValue=" + Arrays.toString(byteArrayValue) + ", byteValue=" + byteValue
+ + ", calendarValue=" + calendarValue + ", dateValue=" + dateValue + ", doubleValue=" + doubleValue
+ + ", floatValue=" + floatValue + ", intValue=" + intValue + ", longValue=" + longValue + ", qNameValue="
+ + qNameValue + ", shortValue=" + shortValue + ", stringList=" + stringList + ", stringValue=" + stringValue
+ + "]";
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class BooleanDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ boolean ret = ((EndpointDoc) port).negateBoolean(true);
+ boolean exp = false;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/BooleanRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class BooleanRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ boolean ret = ((EndpointRPC) port).negateBoolean(true);
+ boolean exp = false;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteArrayDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+ private static final byte[] tested =
+ {1, 2, 4, 8, 16, 32, 64};
+
+ private static final byte[] exp =
+ {64, 32, 16, 8, 4, 2, 1};
+
+ public void performIteration(Object port) throws Exception
+ {
+ byte[] ret = ((EndpointDoc) port).reverseByteOrder(tested);
+ for (int i = 0; i < ret.length; i++)
+ {
+ if (ret[i] != exp[i])
+ {
+ throw new Exception("Unexpected result: [" + i + "] " + ret);
+ }
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteArrayRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteArrayRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+ private static final byte[] tested =
+ {1, 2, 4, 8, 16, 32, 64};
+
+ private static final byte[] exp =
+ {64, 32, 16, 8, 4, 2, 1};
+
+ public void performIteration(Object port) throws Exception
+ {
+ byte[] ret = ((EndpointRPC) port).reverseByteOrder(tested);
+ for (int i = 0; i < ret.length; i++)
+ {
+ if (ret[i] != exp[i])
+ {
+ throw new Exception("Unexpected result: [" + i + "] " + ret);
+ }
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointDoc) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ByteRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointRPC) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class CalendarDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+ private static final Calendar tested;
+
+ private static final Calendar exp;
+
+ static
+ {
+ tested = new GregorianCalendar();
+ tested.setTimeInMillis(1234567890L);
+
+ exp = new GregorianCalendar();
+ exp.setTimeInMillis(tested.getTimeInMillis() + 86400000L);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+ Calendar ret = ((EndpointDoc) port).getCalendarPlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/CalendarRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class CalendarRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ private static final Calendar tested;
+
+ private static final Calendar exp;
+
+ static
+ {
+ tested = new GregorianCalendar();
+ tested.setTimeInMillis(1234567890L);
+
+ exp = new GregorianCalendar();
+ exp.setTimeInMillis(tested.getTimeInMillis() + 86400000L);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+ Calendar ret = ((EndpointRPC) port).getCalendarPlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import java.util.Date;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DateDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+ private static final Date tested = new Date(1234567890L);;
+
+ private static final Date exp = new Date(tested.getTime() + 86400000L);;
+
+ public void performIteration(Object port) throws Exception
+ {
+ Date ret = ((EndpointDoc) port).getDatePlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DateRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import java.util.Date;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DateRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+ private static final Date tested = new Date(1234567890L);;
+
+ private static final Date exp = new Date(tested.getTime() + 86400000L);;
+
+ public void performIteration(Object port) throws Exception
+ {
+ Date ret = ((EndpointRPC) port).getDatePlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DoubleDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ double ret = ((EndpointDoc) port).increaseDouble(123456.0);
+ double exp = 123457.0;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/DoubleRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DoubleRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ double ret = ((EndpointRPC) port).increaseDouble(123456.0);
+ double exp = 123457.0;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class FloatDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ float ret = ((EndpointDoc) port).increaseFloat(123456f);
+ float exp = 123457f;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/FloatRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class FloatRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ float ret = ((EndpointRPC) port).increaseFloat(123456f);
+ float exp = 123457f;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class IntegerDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointDoc) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/IntegerRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class IntegerRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointRPC) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class LongDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ long ret = ((EndpointDoc) port).increaseLong(1234567890L);
+ long exp = 1234567891L;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/LongRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class LongRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ long ret = ((EndpointRPC) port).increaseLong(1234567890L);
+ long exp = 1234567891L;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class QNameDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public static final QName exp = new QName("qname_value_modified");
+
+ public void performIteration(Object port) throws Exception
+ {
+ QName ret = ((EndpointDoc) port).modifyQName(new QName("qname_value"));
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/QNameRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class QNameRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+ public static final QName exp = new QName("qname_value_modified");
+
+ public void performIteration(Object port) throws Exception
+ {
+ QName ret = ((EndpointRPC) port).modifyQName(new QName("qname_value"));
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ShortDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ short ret = ((EndpointDoc) port).increaseShort((short) 123);
+ short exp = 124;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/ShortRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ShortRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ short ret = ((EndpointRPC) port).increaseShort((short) 124);
+ short exp = 124;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import org.apache.tools.ant.filters.StringInputStream;
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class StringDocTest extends DataTypesDocTest implements BenchmarkTest
+{
+ private static final String MESSAGE = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\" totalAmount=\"64.92\" tax=\"4.95\">\n <Customer userName=\"user1\" firstName=\"Harry\" lastName=\"Fletcher\"\n state=\"SD\" />\n <OrderLines>\n <OrderLine position=\"1\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"2\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"3\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"4\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>!
\n <OrderLine position=\"5\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"6\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"7\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"8\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"9\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"10\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <Ord!
erLine position=\"11\" quantity=\"1\">\n <Product p!
roductId
=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"12\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"13\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"14\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"15\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"16\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"17\" quantity=\"1\">\n <Product pr!
oductId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"18\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"19\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"20\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"21\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"22\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"23\" quantity=\"1\">\n <Pr!
oduct productId=\"364\" title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"24\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"25\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"26\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"27\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"28\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"29\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"30\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"31\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"32\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"33\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"34\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"35\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin !
\"\n price=\"29.98\" />\n </OrderLine>\n !
<Mem
o>\n abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n </Memo>\n </OrderLines>\n</Order>\n";
+
+ public void performIteration(Object port) throws Exception
+ {
+ String ret = ((EndpointDoc) port).sayHello(MESSAGE);
+ String exp = "Hello World Greeting for '" + MESSAGE + "' today";
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/unwrapped/StringRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.unwrapped;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointRPC;
+
+import com.sun.corba.se.impl.protocol.giopmsgheaders.Message;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class StringRPCTest extends DataTypesRPCTest implements BenchmarkTest
+{
+
+ private static final String MESSAGE = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\" totalAmount=\"64.92\" tax=\"4.95\">\n <Customer userName=\"user1\" firstName=\"Harry\" lastName=\"Fletcher\"\n state=\"SD\" />\n <OrderLines>\n <OrderLine position=\"1\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"2\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"3\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"4\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>!
\n <OrderLine position=\"5\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"6\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"7\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"8\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"9\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"10\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <Ord!
erLine position=\"11\" quantity=\"1\">\n <Product p!
roductId
=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"12\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"13\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"14\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"15\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"16\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"17\" quantity=\"1\">\n <Product pr!
oductId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"18\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"19\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"20\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"21\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"22\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"23\" quantity=\"1\">\n <Pr!
oduct productId=\"364\" title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"24\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"25\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"26\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"27\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"28\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"29\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"30\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"31\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"32\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"33\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"34\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"35\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin !
\"\n price=\"29.98\" />\n </OrderLine>\n !
<Mem
o>\n abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n </Memo>\n </OrderLines>\n</Order>\n";
+
+ public void performIteration(Object port) throws Exception
+ {
+ String ret = ((EndpointRPC) port).sayHello(MESSAGE);
+ String exp = "Hello World Greeting for '" + MESSAGE + "' today";
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class BooleanDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ boolean ret = ((EndpointWrappedDoc) port).negateBoolean(true);
+ boolean exp = false;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/BooleanRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class BooleanRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ boolean ret = ((EndpointWrappedRPC) port).negateBoolean(true);
+ boolean exp = false;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteArrayDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+ private static final byte[] tested =
+ {1, 2, 4, 8, 16, 32, 64};
+
+ private static final byte[] exp =
+ {64, 32, 16, 8, 4, 2, 1};
+
+ public void performIteration(Object port) throws Exception
+ {
+ byte[] ret = ((EndpointWrappedDoc) port).reverseByteOrder(tested);
+ for (int i = 0; i < ret.length; i++)
+ {
+ if (ret[i] != exp[i])
+ {
+ throw new Exception("Unexpected result: [" + i + "] " + ret);
+ }
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteArrayRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteArrayRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+ private static final byte[] tested =
+ {1, 2, 4, 8, 16, 32, 64};
+
+ private static final byte[] exp =
+ {64, 32, 16, 8, 4, 2, 1};
+
+ public void performIteration(Object port) throws Exception
+ {
+ byte[] ret = ((EndpointWrappedRPC) port).reverseByteOrder(tested);
+ for (int i = 0; i < ret.length; i++)
+ {
+ if (ret[i] != exp[i])
+ {
+ throw new Exception("Unexpected result: [" + i + "] " + ret);
+ }
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointWrappedDoc) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ByteRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ByteRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointWrappedRPC) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class CalendarDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+ private static final Calendar tested;
+
+ private static final Calendar exp;
+
+ static
+ {
+ tested = new GregorianCalendar();
+ tested.setTimeInMillis(1234567890L);
+
+ exp = new GregorianCalendar();
+ exp.setTimeInMillis(tested.getTimeInMillis() + 86400000L);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+ Calendar ret = ((EndpointWrappedDoc) port).getCalendarPlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/CalendarRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class CalendarRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ private static final Calendar tested;
+
+ private static final Calendar exp;
+
+ static
+ {
+ tested = new GregorianCalendar();
+ tested.setTimeInMillis(1234567890L);
+
+ exp = new GregorianCalendar();
+ exp.setTimeInMillis(tested.getTimeInMillis() + 86400000L);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+ Calendar ret = ((EndpointWrappedRPC) port).getCalendarPlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,111 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ComplexTypeDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+ private static final String stringValue = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\" totalAmount=\"64.92\" tax=\"4.95\">\n <Customer userName=\"user1\" firstName=\"Harry\" lastName=\"Fletcher\"\n state=\"SD\" />\n <OrderLines>\n <OrderLine position=\"1\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"2\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"3\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"4\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderL!
ine>\n <OrderLine position=\"5\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"6\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"7\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"8\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"9\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"10\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n !
<OrderLine position=\"11\" quantity=\"1\">\n <Produ!
ct produ
ctId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"12\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"13\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"14\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"15\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n <Memo>\n abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmn!
opqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n </Memo>\n </OrderLines>\n</Order>\n";
+
+ private static final byte byteValue = (byte) 1;
+
+ private static final byte[] byteArrayValue = "!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789"
+ .getBytes();
+
+ private static final byte[] modifiedByteArrayValue;
+
+ private static final short shortValue = (short) 3;
+
+ private static final int intValue = 4;
+
+ private static final long longValue = 5L;
+
+ private static final float floatValue = 6.7f;
+
+ private static final double doubleValue = 8.9;
+
+ private static final QName qNameValue = new QName("eleven");
+
+ private static final Date dateValue = new Date();
+
+ private static final Calendar calendarValue, modifiedCalendarValue;
+
+ private static final ComplexType tested, exp;
+
+ private static final List<String> stringList;
+
+ static
+ {
+ stringList = new ArrayList<String>();
+ for (int i = 0; i < 10; i++)
+ {
+ stringList.add("item " + i);
+ }
+
+ int length = byteArrayValue.length;
+ modifiedByteArrayValue = new byte[length];
+ for (int i = 0; i < length; i++)
+ {
+ modifiedByteArrayValue[i] = byteArrayValue[length - i - 1];
+ }
+
+ calendarValue = new GregorianCalendar();
+ calendarValue.setTimeInMillis(System.currentTimeMillis());
+
+ modifiedCalendarValue = new GregorianCalendar();
+ modifiedCalendarValue.setTimeInMillis(calendarValue.getTimeInMillis() + 86400000L);
+
+ tested = new ComplexType(byteValue, byteArrayValue, shortValue, intValue, longValue, floatValue, doubleValue,
+ stringValue, stringList, qNameValue, dateValue, calendarValue);
+
+ exp = new ComplexType((byte) (byteValue + 1), modifiedByteArrayValue, (short) (shortValue + 1), intValue + 1,
+ longValue + 1, floatValue + 1, doubleValue + 1, "Hello World Greeting for '" + stringValue + "' today",
+ stringList, new QName(qNameValue.getNamespaceURI(), qNameValue.getLocalPart() + "_modified", qNameValue
+ .getPrefix()), new Date(dateValue.getTime() + 86400000L), modifiedCalendarValue);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+
+ ComplexType ret = ((EndpointWrappedDoc) port).modifyComplexType(tested);
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ComplexTypeRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,111 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ComplexTypeRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+ private static final String stringValue = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\" totalAmount=\"64.92\" tax=\"4.95\">\n <Customer userName=\"user1\" firstName=\"Harry\" lastName=\"Fletcher\"\n state=\"SD\" />\n <OrderLines>\n <OrderLine position=\"1\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"2\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"3\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"4\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderL!
ine>\n <OrderLine position=\"5\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"6\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"7\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"8\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"9\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"10\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n !
<OrderLine position=\"11\" quantity=\"1\">\n <Produ!
ct produ
ctId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"12\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"13\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"14\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"15\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n <Memo>\n abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmn!
opqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n </Memo>\n </OrderLines>\n</Order>\n";
+
+ private static final byte byteValue = (byte) 1;
+
+ private static final byte[] byteArrayValue = "!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789"
+ .getBytes();
+
+ private static final byte[] modifiedByteArrayValue;
+
+ private static final short shortValue = (short) 3;
+
+ private static final int intValue = 4;
+
+ private static final long longValue = 5L;
+
+ private static final float floatValue = 6.7f;
+
+ private static final double doubleValue = 8.9;
+
+ private static final QName qNameValue = new QName("eleven");
+
+ private static final Date dateValue = new Date();
+
+ private static final Calendar calendarValue, modifiedCalendarValue;
+
+ private static final ComplexType tested, exp;
+
+ private static final List<String> stringList;
+
+ static
+ {
+ stringList = new ArrayList<String>();
+ for (int i = 0; i < 10; i++)
+ {
+ stringList.add("item " + i);
+ }
+
+ int length = byteArrayValue.length;
+ modifiedByteArrayValue = new byte[length];
+ for (int i = 0; i < length; i++)
+ {
+ modifiedByteArrayValue[i] = byteArrayValue[length - i - 1];
+ }
+
+ calendarValue = new GregorianCalendar();
+ calendarValue.setTimeInMillis(System.currentTimeMillis());
+
+ modifiedCalendarValue = new GregorianCalendar();
+ modifiedCalendarValue.setTimeInMillis(calendarValue.getTimeInMillis() + 86400000L);
+
+ tested = new ComplexType(byteValue, byteArrayValue, shortValue, intValue, longValue, floatValue, doubleValue,
+ stringValue, stringList, qNameValue, dateValue, calendarValue);
+
+ exp = new ComplexType((byte) (byteValue + 1), modifiedByteArrayValue, (short) (shortValue + 1), intValue + 1,
+ longValue + 1, floatValue + 1, doubleValue + 1, "Hello World Greeting for '" + stringValue + "' today",
+ stringList, new QName(qNameValue.getNamespaceURI(), qNameValue.getLocalPart() + "_modified", qNameValue
+ .getPrefix()), new Date(dateValue.getTime() + 86400000L), modifiedCalendarValue);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+
+ ComplexType ret = ((EndpointWrappedRPC) port).modifyComplexType(tested);
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import java.util.Date;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DateDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+ private static final Date tested = new Date(1234567890L);;
+
+ private static final Date exp = new Date(tested.getTime() + 86400000L);;
+
+ public void performIteration(Object port) throws Exception
+ {
+ Date ret = ((EndpointWrappedDoc) port).getDatePlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DateRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import java.util.Date;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DateRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+ private static final Date tested = new Date(1234567890L);;
+
+ private static final Date exp = new Date(tested.getTime() + 86400000L);;
+
+ public void performIteration(Object port) throws Exception
+ {
+ Date ret = ((EndpointWrappedRPC) port).getDatePlusDay(tested);
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DoubleDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ double ret = ((EndpointWrappedDoc) port).increaseDouble(123456.0);
+ double exp = 123457.0;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/DoubleRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class DoubleRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ double ret = ((EndpointWrappedRPC) port).increaseDouble(123456.0);
+ double exp = 123457.0;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class FloatDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ float ret = ((EndpointWrappedDoc) port).increaseFloat(123456f);
+ float exp = 123457f;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/FloatRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class FloatRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ float ret = ((EndpointWrappedRPC) port).increaseFloat(123456f);
+ float exp = 123457f;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class IntegerDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointWrappedDoc) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/IntegerRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class IntegerRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ int ret = ((EndpointWrappedRPC) port).increaseInt(123456);
+ int exp = 123457;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class LongDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ long ret = ((EndpointWrappedDoc) port).increaseLong(1234567890L);
+ long exp = 1234567891L;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/LongRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class LongRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ long ret = ((EndpointWrappedRPC) port).increaseLong(1234567890L);
+ long exp = 1234567891L;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class QNameDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public static final QName exp = new QName("qname_value_modified");
+
+ public void performIteration(Object port) throws Exception
+ {
+ QName ret = ((EndpointWrappedDoc) port).modifyQName(new QName("qname_value"));
+
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/QNameRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class QNameRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+ public static final QName exp = new QName("qname_value_modified");
+
+ public void performIteration(Object port) throws Exception
+ {
+ QName ret = ((EndpointWrappedRPC) port).modifyQName(new QName("qname_value"));
+ if (!ret.equals(exp))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ShortDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ short ret = ((EndpointWrappedDoc) port).increaseShort((short) 123);
+ short exp = 124;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ShortRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ShortRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ public void performIteration(Object port) throws Exception
+ {
+ short ret = ((EndpointWrappedRPC) port).increaseShort((short) 124);
+ short exp = 124;
+ if (ret != exp)
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class StringDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+ private static final String MESSAGE = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\" totalAmount=\"64.92\" tax=\"4.95\">\n <Customer userName=\"user1\" firstName=\"Harry\" lastName=\"Fletcher\"\n state=\"SD\" />\n <OrderLines>\n <OrderLine position=\"1\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"2\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"3\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"4\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>!
\n <OrderLine position=\"5\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"6\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"7\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"8\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"9\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"10\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <Ord!
erLine position=\"11\" quantity=\"1\">\n <Product p!
roductId
=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"12\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"13\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"14\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"15\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"16\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"17\" quantity=\"1\">\n <Product pr!
oductId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"18\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"19\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"20\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"21\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"22\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"23\" quantity=\"1\">\n <Pr!
oduct productId=\"364\" title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"24\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"25\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"26\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"27\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"28\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"29\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"30\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"31\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"32\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"33\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"34\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"35\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin !
\"\n price=\"29.98\" />\n </OrderLine>\n !
<Mem
o>\n abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n </Memo>\n </OrderLines>\n</Order>\n";
+
+ public void performIteration(Object port) throws Exception
+ {
+ String ret = ((EndpointWrappedDoc) port).sayHello(MESSAGE);
+ String exp = "Hello World Greeting for '" + MESSAGE + "' today";
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/StringRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class StringRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+
+ private static final String MESSAGE = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\" totalAmount=\"64.92\" tax=\"4.95\">\n <Customer userName=\"user1\" firstName=\"Harry\" lastName=\"Fletcher\"\n state=\"SD\" />\n <OrderLines>\n <OrderLine position=\"1\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"2\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"3\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"4\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>!
\n <OrderLine position=\"5\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"6\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"7\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"8\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"9\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"10\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <Ord!
erLine position=\"11\" quantity=\"1\">\n <Product p!
roductId
=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"12\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"13\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"14\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"15\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"16\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"17\" quantity=\"1\">\n <Product pr!
oductId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"18\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"19\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"20\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"21\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"22\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"23\" quantity=\"1\">\n <Pr!
oduct productId=\"364\" title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"24\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"25\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"26\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"27\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"28\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"29\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n !
price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"30\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"31\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"32\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"33\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"34\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"35\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin !
\"\n price=\"29.98\" />\n </OrderLine>\n !
<Mem
o>\n abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n </Memo>\n </OrderLines>\n</Order>\n";
+
+ public void performIteration(Object port) throws Exception
+ {
+ String ret = ((EndpointWrappedRPC) port).sayHello(MESSAGE);
+ String exp = "Hello World Greeting for '" + MESSAGE + "' today";
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,93 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ValuesToComplexTypeDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+ private static final String stringValue = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\" totalAmount=\"64.92\" tax=\"4.95\">\n <Customer userName=\"user1\" firstName=\"Harry\" lastName=\"Fletcher\"\n state=\"SD\" />\n <OrderLines>\n <OrderLine position=\"1\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"2\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"3\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"4\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderL!
ine>\n <OrderLine position=\"5\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"6\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"7\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"8\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"9\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"10\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n !
<OrderLine position=\"11\" quantity=\"1\">\n <Produ!
ct produ
ctId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"12\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"13\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"14\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"15\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n <Memo>\n abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmn!
opqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n </Memo>\n </OrderLines>\n</Order>\n";
+
+ private static final byte byteValue = (byte) 1;
+
+ private static final byte[] byteArrayValue = "!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789"
+ .getBytes();
+
+ private static final short shortValue = (short) 3;
+
+ private static final int intValue = 4;
+
+ private static final long longValue = 5L;
+
+ private static final float floatValue = 6.7f;
+
+ private static final double doubleValue = 8.9;
+
+ private static final QName qNameValue = new QName("eleven");
+
+ private static final Date dateValue = new Date();
+
+ private static final Calendar calendarValue;
+
+ private static final ComplexType exp;
+
+ private static final List<String> stringList;
+ static
+ {
+ stringList = new ArrayList<String>();
+ for (int i = 0; i < 10; i++)
+ {
+ stringList.add("item " + i);
+ }
+
+ calendarValue = new GregorianCalendar();
+ calendarValue.setTimeInMillis(System.currentTimeMillis());
+
+ exp = new ComplexType(byteValue, byteArrayValue, shortValue, intValue, longValue, floatValue, doubleValue,
+ stringValue, stringList, qNameValue, dateValue, calendarValue);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+ ComplexType ret = ((EndpointWrappedDoc) port).valuesToComplexType(byteValue, byteArrayValue, shortValue,
+ intValue, longValue, floatValue, doubleValue, stringValue, qNameValue, dateValue, calendarValue);
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToComplexTypeRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,96 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.types.ComplexType;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ValuesToComplexTypeRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+ private static final String stringValue = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\" totalAmount=\"64.92\" tax=\"4.95\">\n <Customer userName=\"user1\" firstName=\"Harry\" lastName=\"Fletcher\"\n state=\"SD\" />\n <OrderLines>\n <OrderLine position=\"1\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"2\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"3\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"4\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderL!
ine>\n <OrderLine position=\"5\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"6\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"7\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"8\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"9\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"10\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n !
<OrderLine position=\"11\" quantity=\"1\">\n <Produ!
ct produ
ctId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"12\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"13\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"14\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"15\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n <Memo>\n abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmn!
opqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n </Memo>\n </OrderLines>\n</Order>\n";
+
+ private static final byte byteValue = (byte) 1;
+
+ private static final byte[] byteArrayValue = "!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789"
+ .getBytes();
+
+ private static final short shortValue = (short) 3;
+
+ private static final int intValue = 4;
+
+ private static final long longValue = 5L;
+
+ private static final float floatValue = 6.7f;
+
+ private static final double doubleValue = 8.9;
+
+ private static final QName qNameValue = new QName("eleven");
+
+ private static final Date dateValue = new Date();
+
+ private static final Calendar calendarValue, modifiedCalendarValue;
+
+ private static final ComplexType exp;
+
+ private static final List<String> stringList;
+ static
+ {
+ stringList = new ArrayList<String>();
+ for (int i = 0; i < 10; i++)
+ {
+ stringList.add("item " + i);
+ }
+
+ calendarValue = new GregorianCalendar();
+ calendarValue.setTimeInMillis(System.currentTimeMillis());
+
+ modifiedCalendarValue = new GregorianCalendar();
+ modifiedCalendarValue.setTimeInMillis(calendarValue.getTimeInMillis() + 86400000L);
+
+ exp = new ComplexType(byteValue, byteArrayValue, shortValue, intValue, longValue, floatValue, doubleValue,
+ stringValue, stringList, qNameValue, dateValue, calendarValue);
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+ ComplexType ret = ((EndpointWrappedRPC) port).valuesToComplexType(byteValue, byteArrayValue, shortValue,
+ intValue, longValue, floatValue, doubleValue, stringValue, qNameValue, dateValue, calendarValue);
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringDocTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringDocTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringDocTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,97 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedDocTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ValuesToStringDocTest extends DataTypesWrappedDocTest implements BenchmarkTest
+{
+ private static final String stringValue = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\" totalAmount=\"64.92\" tax=\"4.95\">\n <Customer userName=\"user1\" firstName=\"Harry\" lastName=\"Fletcher\"\n state=\"SD\" />\n <OrderLines>\n <OrderLine position=\"1\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"2\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"3\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"4\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderL!
ine>\n <OrderLine position=\"5\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"6\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"7\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"8\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"9\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"10\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n !
<OrderLine position=\"11\" quantity=\"1\">\n <Produ!
ct produ
ctId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"12\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"13\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"14\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"15\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n <Memo>\n abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmn!
opqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n </Memo>\n </OrderLines>\n</Order>\n";
+
+ private static final byte byteValue = (byte) 1;
+
+ private static final byte[] byteArrayValue = "!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789"
+ .getBytes();
+
+ private static final short shortValue = (short) 3;
+
+ private static final int intValue = 4;
+
+ private static final long longValue = 5L;
+
+ private static final float floatValue = 6.7f;
+
+ private static final double doubleValue = 8.9;
+
+ private static final QName qNameValue = new QName("eleven");
+
+ private static final Date dateValue = new Date();
+
+ private static final Calendar calendarValue;
+
+ private static final String exp;
+
+ static
+ {
+ calendarValue = new GregorianCalendar();
+ calendarValue.setTimeInMillis(System.currentTimeMillis());
+
+ StringBuffer sb = new StringBuffer();
+ sb.append("[byteValue=" + byteValue);
+ sb.append(" byteArrayValue=" + new String(byteArrayValue));
+ sb.append(" shortValue=" + shortValue);
+ sb.append(" intValue=" + intValue);
+ sb.append(" longValue=" + longValue);
+ sb.append(" floatValue=" + floatValue);
+ sb.append(" doubleValue=" + doubleValue);
+ sb.append(" stringValue=" + stringValue);
+ sb.append(" qNameValue=" + qNameValue);
+ sb.append(" dateValue=" + dateValue);
+ sb.append(" calendarValue=" + calendarValue);
+ sb.append("]");
+
+ exp = sb.toString();
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+
+ String ret = ((EndpointWrappedDoc) port).valuesToString(byteValue, byteArrayValue, shortValue, intValue,
+ longValue, floatValue, doubleValue, stringValue, qNameValue, dateValue, calendarValue);
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringRPCTest.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringRPCTest.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test/datatypes/wrapped/ValuesToStringRPCTest.java 2010-03-09 10:48:17 UTC (rev 11738)
@@ -0,0 +1,97 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.benchmark.test.datatypes.wrapped;
+
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.benchmark.BenchmarkTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.DataTypesWrappedRPCTest;
+import org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedRPC;
+
+/**
+ * @author pmacik(a)redhat.com
+ * @since 09-Mar-2010
+ */
+public class ValuesToStringRPCTest extends DataTypesWrappedRPCTest implements BenchmarkTest
+{
+ private static final String stringValue = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Order orderId=\"1\" orderDate=\"Wed Nov 15 13:45:28 EST 2006\"\n statusCode=\"9\" netAmount=\"59.97\" totalAmount=\"64.92\" tax=\"4.95\">\n <Customer userName=\"user1\" firstName=\"Harry\" lastName=\"Fletcher\"\n state=\"SD\" />\n <OrderLines>\n <OrderLine position=\"1\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"2\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"3\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"4\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderL!
ine>\n <OrderLine position=\"5\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"6\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"7\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"8\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"9\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"10\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n !
<OrderLine position=\"11\" quantity=\"1\">\n <Produ!
ct produ
ctId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"12\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"13\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n </OrderLine>\n <OrderLine position=\"14\" quantity=\"1\">\n <Product productId=\"299\" title=\"Pulp Fiction\" price=\"29.99\" />\n </OrderLine>\n <OrderLine position=\"15\" quantity=\"1\">\n <Product productId=\"364\" title=\"The 40-Year-Old Virgin \"\n price=\"29.98\" />\n <Memo>\n abcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pahoda,kterou_sni_pan_Lahodaabcdefghijklmn!
opqrstuvwxyz0123456789!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sni_pan_Lahoda\n </Memo>\n </OrderLines>\n</Order>\n";
+
+ private static final byte byteValue = (byte) 1;
+
+ private static final byte[] byteArrayValue = "!@#$%^°*()_+-=[]{}:\",.?/`~Pada,pada_jahoda,kterou_sěščřžýáíégggaabcdefghijklmnopqrstuvwxyz0123456789"
+ .getBytes();
+
+ private static final short shortValue = (short) 3;
+
+ private static final int intValue = 4;
+
+ private static final long longValue = 5L;
+
+ private static final float floatValue = 6.7f;
+
+ private static final double doubleValue = 8.9;
+
+ private static final QName qNameValue = new QName("eleven");
+
+ private static final Date dateValue = new Date();
+
+ private static final Calendar calendarValue;
+
+ private static final String exp;
+
+ static
+ {
+ calendarValue = new GregorianCalendar();
+ calendarValue.setTimeInMillis(System.currentTimeMillis());
+
+ StringBuffer sb = new StringBuffer();
+ sb.append("[byteValue=" + byteValue);
+ sb.append(" byteArrayValue=" + new String(byteArrayValue));
+ sb.append(" shortValue=" + shortValue);
+ sb.append(" intValue=" + intValue);
+ sb.append(" longValue=" + longValue);
+ sb.append(" floatValue=" + floatValue);
+ sb.append(" doubleValue=" + doubleValue);
+ sb.append(" stringValue=" + stringValue);
+ sb.append(" qNameValue=" + qNameValue);
+ sb.append(" dateValue=" + dateValue);
+ sb.append(" calendarValue=" + calendarValue);
+ sb.append("]");
+
+ exp = sb.toString();
+ }
+
+ public void performIteration(Object port) throws Exception
+ {
+
+ String ret = ((EndpointWrappedRPC) port).valuesToString(byteValue, byteArrayValue, shortValue, intValue,
+ longValue, floatValue, doubleValue, stringValue, qNameValue, dateValue, calendarValue);
+ if (!exp.equals(ret))
+ {
+ throw new Exception("Unexpected result: " + ret + "\nExpected:" + exp);
+ }
+ }
+}
14 years, 9 months
JBossWS SVN: r11737 - in stack/native/trunk/modules: testsuite/native-tests/scripts and 5 other directories.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2010-03-09 05:14:13 -0500 (Tue, 09 Mar 2010)
New Revision: 11737
Added:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/ClientSOAPHandler.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/Endpoint.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointImpl.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointService.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/JBWS2955TestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/client-handlers.xml
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/jboss-web.xml
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/web.xml
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java
stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
Log:
[JBWS-2955]:make client side handler chain work
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java 2010-03-09 10:06:41 UTC (rev 11736)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java 2010-03-09 10:14:13 UTC (rev 11737)
@@ -23,7 +23,10 @@
import java.io.IOException;
import java.io.InputStream;
+import java.lang.reflect.Field;
+import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
+import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
@@ -34,6 +37,7 @@
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
+import javax.jws.HandlerChain;
import javax.jws.WebService;
import javax.xml.bind.JAXBContext;
import javax.xml.namespace.QName;
@@ -156,6 +160,7 @@
handlerResolver = new HandlerResolverImpl();
+ String filename = null;
if (usRef != null)
{
serviceMetaData.setServiceRefName(usRef.getServiceRefName());
@@ -163,18 +168,36 @@
// Setup the service handlers
if (usRef.getHandlerChain() != null)
{
- String filename = usRef.getHandlerChain();
- UnifiedHandlerChainsMetaData handlerChainsMetaData = JAXWSMetaDataBuilder.getHandlerChainsMetaData(serviceClass, filename);
- for (UnifiedHandlerChainMetaData UnifiedHandlerChainMetaData : handlerChainsMetaData.getHandlerChains())
+ filename = usRef.getHandlerChain();
+ }
+ }
+
+ if (serviceClass != null && serviceClass.getAnnotation(HandlerChain.class) != null)
+ {
+ HandlerChain anHandlerChain = (HandlerChain)serviceClass.getAnnotation(HandlerChain.class);
+ if (anHandlerChain != null && anHandlerChain.file().length() > 0) {
+ filename = anHandlerChain.file();
+ try
{
- for (UnifiedHandlerMetaData uhmd : UnifiedHandlerChainMetaData.getHandlers())
- {
- HandlerMetaDataJAXWS hmd = HandlerMetaDataJAXWS.newInstance(uhmd, HandlerType.ENDPOINT);
- serviceMetaData.addHandler(hmd);
- }
+ new URL(filename);
}
- ((HandlerResolverImpl)handlerResolver).initServiceHandlerChain(serviceMetaData);
+ catch (MalformedURLException ex)
+ {
+ filename = serviceClass.getPackage().getName().replace('.', '/') + "/" + filename;
+ }
+ }
+ }
+ if (filename != null) {
+ UnifiedHandlerChainsMetaData handlerChainsMetaData = JAXWSMetaDataBuilder.getHandlerChainsMetaData(serviceClass, filename);
+ for (UnifiedHandlerChainMetaData UnifiedHandlerChainMetaData : handlerChainsMetaData.getHandlerChains())
+ {
+ for (UnifiedHandlerMetaData uhmd : UnifiedHandlerChainMetaData.getHandlers())
+ {
+ HandlerMetaDataJAXWS hmd = HandlerMetaDataJAXWS.newInstance(uhmd, HandlerType.ENDPOINT);
+ serviceMetaData.addHandler(hmd);
+ }
}
+ ((HandlerResolverImpl)handlerResolver).initServiceHandlerChain(serviceMetaData);
}
}
Modified: stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-03-09 10:06:41 UTC (rev 11736)
+++ stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-03-09 10:14:13 UTC (rev 11737)
@@ -619,6 +619,17 @@
<include name="jboss-web.xml"/>
</webinf>
</war>
+
+ <!-- jaxws-jbws2955 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2955.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2955/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2955/Endpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2955/EndpointImpl.class"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2955/WEB-INF">
+ <include name="jboss-web.xml"/>
+ </webinf>
+ </war>
<!-- jaxws-webserviceref -->
<war warfile="${tests.output.dir}/test-libs/jaxws-webserviceref.war" webxml="${tests.output.dir}/test-resources/jaxws/webserviceref/WEB-INF/web.xml">
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/ClientSOAPHandler.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/ClientSOAPHandler.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/ClientSOAPHandler.java 2010-03-09 10:14:13 UTC (rev 11737)
@@ -0,0 +1,77 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2955;
+
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPElementFactory;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.handler.LogicalMessageContext;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.WSException;
+import org.jboss.wsf.common.DOMWriter;
+import org.jboss.wsf.common.handler.GenericSOAPHandler;
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+public class ClientSOAPHandler extends GenericSOAPHandler<LogicalMessageContext>
+{
+ @Override
+ protected boolean handleInbound(final MessageContext msgContext)
+ {
+ try
+ {
+ SOAPMessageContext smc = (SOAPMessageContext) msgContext;
+ SOAPMessage message = smc.getMessage();
+
+ SOAPBody body = message.getSOAPBody();
+ Document document = body.extractContentAsDocument();
+ NodeList nodes = document.getChildNodes();
+ for (int i = 0; i < nodes.getLength(); i++)
+ {
+ Node current = nodes.item(i);
+
+ NodeList childNodes = current.getChildNodes();
+ for (int j = 0; j < childNodes.getLength(); j++)
+ {
+ Node currentChildNode = childNodes.item(j);
+ if ("return".equals(currentChildNode.getLocalName()))
+ {
+ currentChildNode.setTextContent("PutByClientSOAPHandler");
+ }
+ }
+ }
+ body.addDocument(document);
+ message.saveChanges();
+
+ }
+ catch (SOAPException e)
+ {
+ throw new WSException("Error in Handler", e);
+ }
+ return true;
+ }
+}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/Endpoint.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/Endpoint.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/Endpoint.java 2010-03-09 10:14:13 UTC (rev 11737)
@@ -0,0 +1,30 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2955;
+import javax.jws.WebService;
+@WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org/jbws2955")
+public interface Endpoint
+{
+
+ public String echo(final String message);
+
+}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointImpl.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointImpl.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointImpl.java 2010-03-09 10:14:13 UTC (rev 11737)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2955;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+
+import org.jboss.logging.Logger;
+
+@WebService(name = "Endpoint", portName = "EndpointPort", serviceName="EndpointService", targetNamespace = "http://ws.jboss.org/jbws2955", endpointInterface = "org.jboss.test.ws.jaxws.jbws2955.Endpoint")
+public class EndpointImpl implements Endpoint
+{
+ public String echo(final String message)
+ {
+ return message;
+ }
+
+}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointService.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointService.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/EndpointService.java 2010-03-09 10:14:13 UTC (rev 11737)
@@ -0,0 +1,110 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2955;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.jws.HandlerChain;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceFeature;
+
+@WebServiceClient(name = "EndpointService", targetNamespace = "http://ws.jboss.org/jbws2955")
+@HandlerChain(file = "client-handlers.xml")
+public class EndpointService
+ extends Service
+{
+
+ private final static URL ENDPOINTSERVICE_WSDL_LOCATION;
+ private final static WebServiceException ENDPOINTSERVICE_EXCEPTION;
+ private final static QName ENDPOINTSERVICE_QNAME = new QName("http://ws.jboss.org/jbws2955", "EndpointService");
+
+ static {
+ URL url = null;
+ WebServiceException e = null;
+ try {
+ url = new URL("http://localhost:8080/jaxws-jbws2955?wsdl");
+ } catch (MalformedURLException ex) {
+ e = new WebServiceException(ex);
+ }
+ ENDPOINTSERVICE_WSDL_LOCATION = url;
+ ENDPOINTSERVICE_EXCEPTION = e;
+ }
+
+ public EndpointService() {
+ super(__getWsdlLocation(), ENDPOINTSERVICE_QNAME);
+ }
+
+ public EndpointService(WebServiceFeature... features) {
+ super(__getWsdlLocation(), ENDPOINTSERVICE_QNAME, features);
+ }
+
+ public EndpointService(URL wsdlLocation) {
+ super(wsdlLocation, ENDPOINTSERVICE_QNAME);
+ }
+
+ public EndpointService(URL wsdlLocation, WebServiceFeature... features) {
+ super(wsdlLocation, ENDPOINTSERVICE_QNAME, features);
+ }
+
+ public EndpointService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public EndpointService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
+ super(wsdlLocation, serviceName, features);
+ }
+
+ /**
+ *
+ * @return
+ * returns Endpoint
+ */
+ @WebEndpoint(name = "EndpointPort")
+ public Endpoint getEndpointPort() {
+ return super.getPort(new QName("http://ws.jboss.org/jbws2955", "EndpointPort"), Endpoint.class);
+ }
+
+ /**
+ *
+ * @param features
+ * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
+ * @return
+ * returns Endpoint
+ */
+ @WebEndpoint(name = "EndpointPort")
+ public Endpoint getEndpointPort(WebServiceFeature... features) {
+ return super.getPort(new QName("http://ws.jboss.org/jbws2955", "EndpointPort"), Endpoint.class, features);
+ }
+
+ private static URL __getWsdlLocation() {
+ if (ENDPOINTSERVICE_EXCEPTION!= null) {
+ throw ENDPOINTSERVICE_EXCEPTION;
+ }
+ return ENDPOINTSERVICE_WSDL_LOCATION;
+ }
+
+}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/JBWS2955TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/JBWS2955TestCase.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/JBWS2955TestCase.java 2010-03-09 10:14:13 UTC (rev 11737)
@@ -0,0 +1,73 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws2955;
+
+import java.net.URL;
+import java.util.Iterator;
+
+import javax.xml.namespace.QName;
+import javax.xml.soap.MessageFactory;
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPConnection;
+import javax.xml.soap.SOAPConnectionFactory;
+import javax.xml.soap.SOAPEnvelope;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.ws.core.soap.NodeImpl;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+public class JBWS2955TestCase extends JBossWSTest
+{
+
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2955";
+
+ private static Endpoint port;
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(JBWS2955TestCase.class, "jaxws-jbws2955.war");
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ QName serviceName = new QName("http://ws.jboss.org/jbws2955", "EndpointService");
+ EndpointService service = new EndpointService(wsdlURL);
+ port = service.getEndpointPort();
+ }
+
+ public void testCall() throws Exception
+ {
+
+ String response = port.echo("testJBWS2955");
+ assertEquals("PutByClientSOAPHandler", response);
+ }
+}
\ No newline at end of file
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/client-handlers.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/client-handlers.xml (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2955/client-handlers.xml 2010-03-09 10:14:13 UTC (rev 11737)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://org.jboss.ws/jaxws/samples/logicalhandler"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
+ <handler-chain>
+ <port-name-pattern xmlns:ns1="http://ws.jboss.org/jbws2955">ns1:EndpointPort</port-name-pattern>
+ <handler>
+ <handler-name>ClientSOAPHandler</handler-name>
+ <handler-class>org.jboss.test.ws.jaxws.jbws2955.ClientSOAPHandler</handler-class>
+ </handler>
+ </handler-chain>
+</handler-chains>
\ No newline at end of file
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/jboss-web.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/jboss-web.xml (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/jboss-web.xml 2010-03-09 10:14:13 UTC (rev 11737)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <context-root>/jaxws-jbws2955</context-root>
+</jboss-web>
\ No newline at end of file
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/web.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/web.xml (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2955/WEB-INF/web.xml 2010-03-09 10:14:13 UTC (rev 11737)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <servlet>
+ <servlet-name>Endpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2955.EndpointImpl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Endpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
14 years, 9 months
JBossWS SVN: r11735 - stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2949.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2010-03-09 03:38:36 -0500 (Tue, 09 Mar 2010)
New Revision: 11735
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2949/JBWS2949TestCase.java
Log:
[JBPAPP-3832]:corrected the endpoint class
Modified: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2949/JBWS2949TestCase.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2949/JBWS2949TestCase.java 2010-03-09 08:33:24 UTC (rev 11734)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2949/JBWS2949TestCase.java 2010-03-09 08:38:36 UTC (rev 11735)
@@ -35,7 +35,6 @@
import junit.framework.Test;
-import org.jboss.test.ws.jaxws.jbws2927.WSAEndpoint;
import org.jboss.ws.core.soap.NodeImpl;
import org.jboss.wsf.test.JBossWSTest;
@@ -49,7 +48,7 @@
public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2949";
- private static WSAEndpoint port;
+ private static Endpoint port;
public static Test suite() throws Exception
{
@@ -63,7 +62,7 @@
QName serviceName = new QName("http://ws.jboss.org/jbws2949", "EndpointService");
Service service = Service.create(wsdlURL, serviceName);
- port = service.getPort(WSAEndpoint.class);
+ port = service.getPort(Endpoint.class);
}
public void testCall() throws Exception
14 years, 9 months
JBossWS SVN: r11734 - stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2949.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2010-03-09 03:33:24 -0500 (Tue, 09 Mar 2010)
New Revision: 11734
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2949/JBWS2949TestCase.java
Log:
[JBWS-2949]:correted the endpoint class
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2949/JBWS2949TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2949/JBWS2949TestCase.java 2010-03-08 20:42:04 UTC (rev 11733)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2949/JBWS2949TestCase.java 2010-03-09 08:33:24 UTC (rev 11734)
@@ -35,7 +35,6 @@
import junit.framework.Test;
-import org.jboss.test.ws.jaxws.jbws2927.WSAEndpoint;
import org.jboss.ws.core.soap.NodeImpl;
import org.jboss.wsf.test.JBossWSTest;
@@ -49,7 +48,7 @@
public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2949";
- private static WSAEndpoint port;
+ private static Endpoint port;
public static Test suite() throws Exception
{
@@ -63,7 +62,7 @@
QName serviceName = new QName("http://ws.jboss.org/jbws2949", "EndpointService");
Service service = Service.create(wsdlURL, serviceName);
- port = service.getPort(WSAEndpoint.class);
+ port = service.getPort(Endpoint.class);
}
public void testCall() throws Exception
14 years, 9 months
JBossWS SVN: r11733 - stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2010-03-08 15:42:04 -0500 (Mon, 08 Mar 2010)
New Revision: 11733
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/SunRIConsumerImpl.java
Log:
[JBWS-2954] register JBossWS entity resolver with WSConsume
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/SunRIConsumerImpl.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/SunRIConsumerImpl.java 2010-03-08 20:25:50 UTC (rev 11732)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/SunRIConsumerImpl.java 2010-03-08 20:42:04 UTC (rev 11733)
@@ -23,6 +23,7 @@
import com.sun.tools.ws.wscompile.WsimportTool;
+import org.jboss.ws.core.utils.JBossWSEntityResolver;
import org.jboss.ws.tools.io.NullPrintStream;
import org.jboss.wsf.spi.tools.WSContractConsumer;
@@ -229,6 +230,7 @@
try
{
WsimportTool compileTool = new WsimportTool(stream);
+ compileTool.setEntityResolver(new JBossWSEntityResolver());
boolean success = compileTool.run(args.toArray(new String[args.size()]));
if (!success)
14 years, 9 months