JBossWS SVN: r16687 - in stack/cxf/trunk/modules/testsuite: cxf-tests/scripts and 2 other directories.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2012-08-30 12:28:22 -0400 (Thu, 30 Aug 2012)
New Revision: 16687
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/DefaultSchemaValidationTestCaseForked.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/Helper.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/validatingClient.wsdl
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jars-jaxws.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/HelloImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/SchemaValidationTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/ValidatingHelloImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/client.wsdl
stack/cxf/trunk/modules/testsuite/pom.xml
Log:
[JBWS-3529] Adding testcase on using client and endpoint default configurations' properties, e.g. to control default schema validation
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jars-jaxws.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jars-jaxws.xml 2012-08-30 13:07:13 UTC (rev 16686)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jars-jaxws.xml 2012-08-30 16:28:22 UTC (rev 16687)
@@ -78,6 +78,19 @@
<attribute name="Dependencies" value="org.apache.cxf"/>
</manifest>
</war>
+ <war warfile="${tests.output.dir}/test-libs/jaxws-samples-schemavalidation-client.war" needxmlfile='false'>
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/wsf/test/ClientHelper.class"/>
+ <include name="org/jboss/wsf/test/TestServlet.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/schemavalidation/Hello.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/schemavalidation/Helper.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/schemavalidation/types/*.class"/>
+ </classes>
+ <zipfileset dir="${tests.output.dir}/test-resources/jaxws/samples/schemavalidation" prefix="WEB-INF/classes">
+ <include name="client.wsdl" />
+ <include name="validatingClient.wsdl" />
+ </zipfileset>
+ </war>
<!-- jaxws-samples-wsa -->
<war
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/DefaultSchemaValidationTestCaseForked.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/DefaultSchemaValidationTestCaseForked.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/DefaultSchemaValidationTestCaseForked.java 2012-08-30 16:28:22 UTC (rev 16687)
@@ -0,0 +1,135 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.samples.schemavalidation;
+
+import java.io.BufferedReader;
+import java.io.InputStreamReader;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.test.ws.jaxws.samples.schemavalidation.types.HelloResponse;
+import org.jboss.wsf.test.JBossWSCXFTestSetup;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+
+/**
+ * A testcase for verifying default schema validation configured
+ * through standard client/endpoint configuration (AS 7 DMR)
+ *
+ * @author alessio.soldano(a)jboss.com
+ */
+public class DefaultSchemaValidationTestCaseForked extends JBossWSTest
+{
+ public static Test suite()
+ {
+ return new JBossWSCXFTestSetup(DefaultSchemaValidationTestCaseForked.class, "jaxws-samples-schemavalidation-client.war");
+ }
+
+ /**
+ * Verifies the default client configuration can be used to always set schema validation from AS model
+ *
+ * @throws Exception
+ */
+ public void testDefaultClientValidation() throws Exception {
+ if (!isTargetJBoss71()) {
+ try {
+ JBossWSTestHelper.deploy("jaxws-samples-schemavalidation.war");
+ assertEquals("1", runInContainer("testDefaultClientValidation"));
+ } finally {
+ JBossWSTestHelper.undeploy("jaxws-samples-schemavalidation.war");
+ }
+ }
+ }
+
+ /**
+ * Verifies the default endpoint configuration can be used to always set schema validation from AS model
+ *
+ * @throws Exception
+ */
+ public void testDefaultServerValidation() throws Exception {
+ final QName serviceName = new QName("http://jboss.org/schemavalidation", "HelloService");
+ final QName portName = new QName("http://jboss.org/schemavalidation", "HelloPort");
+ URL wsdlURL = getResourceURL("jaxws/samples/schemavalidation/client.wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ Hello proxy = (Hello) service.getPort(portName, Hello.class);
+ ((BindingProvider) proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
+ "http://" + getServerHost() + ":8080/jaxws-samples-schemavalidation/hello");
+ HelloResponse hr;
+ try {
+ JBossWSTestHelper.deploy("jaxws-samples-schemavalidation.war");
+ hr = proxy.helloRequest("JBoss");
+ assertNotNull(hr);
+ assertEquals(2, hr.getReturn());
+ hr = proxy.helloRequest("number");
+ assertNotNull(hr);
+ assertEquals(2, hr.getReturn());
+ } finally {
+ JBossWSTestHelper.undeploy("jaxws-samples-schemavalidation.war");
+ }
+
+ // -- modify default conf to enable default endpoint schema validation
+ try
+ {
+ runInContainer("enableDefaultEndpointSchemaValidation");
+ try {
+ JBossWSTestHelper.deploy("jaxws-samples-schemavalidation.war");
+ hr = proxy.helloRequest("JBoss");
+ assertNotNull(hr);
+ assertEquals(2, hr.getReturn());
+ try {
+ proxy.helloRequest("number");
+ fail();
+ } catch (Exception e) {
+ assertTrue(e.getMessage().contains("is not facet-valid with respect to enumeration"));
+ }
+ } finally {
+ JBossWSTestHelper.undeploy("jaxws-samples-schemavalidation.war");
+ }
+ }
+ finally
+ {
+ // -- restore default conf --
+ runInContainer("disableDefaultEndpointSchemaValidation");
+ // --
+ }
+
+
+ }
+
+ // -------------------------
+
+ private String runInContainer(String test) throws Exception
+ {
+ URL url = new URL("http://" + getServerHost()
+ + ":8080/jaxws-samples-schemavalidation-client?path=/jaxws-samples-schemavalidation/hello&method=" + test
+ + "&helper=" + Helper.class.getName());
+ BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream()));
+ return br.readLine();
+ }
+
+
+}
\ No newline at end of file
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/HelloImpl.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/HelloImpl.java 2012-08-30 13:07:13 UTC (rev 16686)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/HelloImpl.java 2012-08-30 16:28:22 UTC (rev 16687)
@@ -33,6 +33,7 @@
public HelloResponse helloRequest(String input)
{
+ System.out.println("Hello: " + input);
HelloResponse response = new HelloResponse();
response.setReturn(2);
return response;
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/Helper.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/Helper.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/Helper.java 2012-08-30 16:28:22 UTC (rev 16687)
@@ -0,0 +1,169 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.samples.schemavalidation;
+
+import java.net.URL;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+
+import org.jboss.test.ws.jaxws.samples.schemavalidation.types.HelloResponse;
+import org.jboss.wsf.spi.SPIProvider;
+import org.jboss.wsf.spi.SPIProviderResolver;
+import org.jboss.wsf.spi.classloading.ClassLoaderProvider;
+import org.jboss.wsf.spi.management.ServerConfig;
+import org.jboss.wsf.spi.management.ServerConfigFactory;
+import org.jboss.wsf.spi.metadata.config.AbstractCommonConfig;
+import org.jboss.wsf.spi.metadata.config.ClientConfig;
+import org.jboss.wsf.spi.metadata.config.EndpointConfig;
+import org.jboss.wsf.test.ClientHelper;
+
+/**
+ *
+ * @author alessio.soldano(a)jboss.com
+ */
+public class Helper implements ClientHelper
+{
+ private String address;
+
+ public boolean testDefaultClientValidation() throws Exception
+ {
+ // first verify schema validation is not enabled yet: a wsdl with schema restrictions is used on client side,
+ // but schema validation is not enabled; the invoked endpoint does not have schema validation on
+ final QName serviceName = new QName("http://jboss.org/schemavalidation", "HelloService");
+ final QName portName = new QName("http://jboss.org/schemavalidation", "HelloPort");
+ final URL wsdlURL = Thread.currentThread().getContextClassLoader().getResource("validatingClient.wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ Hello proxy = (Hello) service.getPort(portName, Hello.class);
+ ((BindingProvider) proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, address);
+ HelloResponse hr = proxy.helloRequest("JBoss");
+ if (hr == null || hr.getReturn() != 2)
+ {
+ return false;
+ }
+ hr = proxy.helloRequest("number");
+ if (hr == null || hr.getReturn() != 2)
+ {
+ return false;
+ }
+
+ // then modify default conf to enable default client schema validation
+ try
+ {
+ modifyDefaultClientConfiguration(getAndVerifyDefaultConfiguration(true));
+
+ service = Service.create(wsdlURL, serviceName);
+ proxy = (Hello) service.getPort(portName, Hello.class);
+ ((BindingProvider) proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, address);
+ hr = proxy.helloRequest("JBoss");
+ if (hr == null || hr.getReturn() != 2)
+ {
+ return false;
+ }
+ try
+ {
+ proxy.helloRequest("number");
+ return false;
+ }
+ catch (Exception e)
+ {
+ return e.getMessage().contains("is not facet-valid with respect to enumeration");
+ }
+ }
+ finally
+ {
+ // -- restore default conf --
+ cleanupConfig(true);
+ // --
+ }
+ }
+
+ public boolean enableDefaultEndpointSchemaValidation() throws Exception {
+ modifyDefaultClientConfiguration(getAndVerifyDefaultConfiguration(false));
+ return true;
+ }
+
+ public boolean disableDefaultEndpointSchemaValidation() throws Exception {
+ cleanupConfig(false);
+ return true;
+ }
+
+ @Override
+ public void setTargetEndpoint(String address)
+ {
+ this.address = address;
+ }
+
+ protected static AbstractCommonConfig getAndVerifyDefaultConfiguration(boolean client) throws Exception {
+ ServerConfig sc = getServerConfig();
+ AbstractCommonConfig defaultConfig = null;
+ final List<? extends AbstractCommonConfig> cfgs = client ? sc.getClientConfigs() : sc.getEndpointConfigs();
+ final String DEFCFG = client ? ClientConfig.STANDARD_CLIENT_CONFIG : EndpointConfig.STANDARD_ENDPOINT_CONFIG;
+ for (AbstractCommonConfig c : cfgs) {
+ if (DEFCFG.equals(c.getConfigName())) {
+ defaultConfig = c;
+ }
+ }
+ if (defaultConfig == null) {
+ throw new Exception("Missing AS config '" + DEFCFG + "'!");
+ }
+ Map<String, String> props = defaultConfig.getProperties();
+ if (props != null && !props.isEmpty()) {
+ throw new Exception("'" + DEFCFG + "' is not empty!");
+ }
+ return defaultConfig;
+ }
+
+ protected static void modifyDefaultClientConfiguration(AbstractCommonConfig defaultConfig) {
+ defaultConfig.setProperty("schema-validation-enabled", "true");
+ }
+
+ protected static void cleanupConfig(boolean client) throws Exception {
+ ServerConfig sc = getServerConfig();
+ AbstractCommonConfig defaultConfig = null;
+ final List<? extends AbstractCommonConfig> cfgs = client ? sc.getClientConfigs() : sc.getEndpointConfigs();
+ final String DEFCFG = client ? ClientConfig.STANDARD_CLIENT_CONFIG : EndpointConfig.STANDARD_ENDPOINT_CONFIG;
+ for (AbstractCommonConfig c : cfgs) {
+ if (DEFCFG.equals(c.getConfigName())) {
+ defaultConfig = c;
+ }
+ }
+ if (defaultConfig == null) {
+ throw new Exception("Missing AS config '" + DEFCFG + "'!");
+ }
+ Map<String, String> props = defaultConfig.getProperties();
+ if (props == null || props.isEmpty()) {
+ throw new Exception("'" + DEFCFG + "' is already empty!");
+ }
+ props.clear();
+ }
+
+ private static ServerConfig getServerConfig()
+ {
+ final ClassLoader cl = ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader();
+ SPIProvider spiProvider = SPIProviderResolver.getInstance(cl).getProvider();
+ return spiProvider.getSPI(ServerConfigFactory.class, cl).getServerConfig();
+ }
+}
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/SchemaValidationTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/SchemaValidationTestCase.java 2012-08-30 13:07:13 UTC (rev 16686)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/SchemaValidationTestCase.java 2012-08-30 16:28:22 UTC (rev 16687)
@@ -34,6 +34,8 @@
import org.jboss.wsf.test.JBossWSTest;
/**
+ * A testcase acting as sample for using client and server schema validation of messages
+ *
* @author ema(a)redhat.com
* @author alessio.soldano(a)jboss.com
*/
@@ -59,7 +61,7 @@
assertEquals(1, hr.getReturn());
try {
proxy.helloRequest("number");
- fail("validation error is expeced");
+ fail("validation error is expected");
} catch (Exception e) {
assertTrue("not respect to enumration error is expected", e.getMessage().contains("is not facet-valid with respect to enumeration"));
}
@@ -83,7 +85,7 @@
public void testClientSideSchemaValidation() throws Exception
{
QName serviceName = new QName("http://jboss.org/schemavalidation", "HelloService");
- URL wsdlURL = getResourceURL("jaxws/samples/schemavalidation/client.wsdl");
+ URL wsdlURL = getResourceURL("jaxws/samples/schemavalidation/validatingClient.wsdl");
Service service = Service.create(wsdlURL, serviceName);
Hello proxy = (Hello)service.getPort(new QName("http://jboss.org/schemavalidation", "HelloPort"), Hello.class);
((BindingProvider)proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);
@@ -93,7 +95,7 @@
assertEquals(2, hr.getReturn());
try {
proxy.helloRequest("number");
- fail("validation error is expeced");
+ fail("validation error is expected");
} catch (Exception e) {
assertTrue("not respect to enumration error is expected", e.getMessage().contains("is not facet-valid with respect to enumeration"));
}
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/ValidatingHelloImpl.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/ValidatingHelloImpl.java 2012-08-30 13:07:13 UTC (rev 16686)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/ValidatingHelloImpl.java 2012-08-30 16:28:22 UTC (rev 16687)
@@ -36,6 +36,7 @@
public HelloResponse helloRequest(String input)
{
+ System.out.println("ValidatingHello: " + input);
HelloResponse response = new HelloResponse();
response.setReturn(1);
return response;
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/client.wsdl
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/client.wsdl 2012-08-30 13:07:13 UTC (rev 16686)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/client.wsdl 2012-08-30 16:28:22 UTC (rev 16687)
@@ -20,14 +20,7 @@
</complexType>
<element name="helloResponse" type="x1:helloResponse"/>
- <element name="helloRequest">
- <simpleType>
- <restriction base="xsd:string">
- <enumeration value="JBoss"/>
- <enumeration value="CXF"/>
- </restriction>
- </simpleType>
- </element>
+ <element name="helloRequest" type="xsd:string"/>
</xsd:schema>
</types>
<message name="helloRequest">
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/validatingClient.wsdl
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/validatingClient.wsdl (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/validatingClient.wsdl 2012-08-30 16:28:22 UTC (rev 16687)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
+ name="helloworld"
+ targetNamespace="http://jboss.org/schemavalidation"
+ xmlns:tns="http://jboss.org/schemavalidation"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:x1="http://jboss.org/schemavalidation/types">
+ <types>
+ <xsd:schema
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://jboss.org/schemavalidation/types"
+ elementFormDefault="qualified">
+
+ <complexType name="helloResponse">
+ <sequence>
+ <element name="return" type="xsd:int" />
+ </sequence>
+ </complexType>
+ <element name="helloResponse" type="x1:helloResponse"/>
+
+ <element name="helloRequest">
+ <simpleType>
+ <restriction base="xsd:string">
+ <enumeration value="JBoss"/>
+ <enumeration value="CXF"/>
+ </restriction>
+ </simpleType>
+ </element>
+ </xsd:schema>
+ </types>
+ <message name="helloRequest">
+ <part name="parameters" element="x1:helloRequest" />
+ </message>
+ <message name="helloResponse">
+ <part name="result" element="x1:helloResponse" />
+ </message>
+ <portType name="hello">
+ <operation name="helloRequest">
+ <input message="tns:helloRequest" />
+ <output message="tns:helloResponse" />
+ </operation>
+ </portType>
+ <binding name="HelloBinding" type="tns:hello">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+ <operation name="helloRequest">
+ <soap:operation soapAction="" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ </binding>
+ <service name="HelloService">
+ <port name="HelloPort" binding="tns:HelloBinding">
+ <soap:address location="http://localhost:8080/schemavalidation/hello" />
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
Modified: stack/cxf/trunk/modules/testsuite/pom.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/pom.xml 2012-08-30 13:07:13 UTC (rev 16686)
+++ stack/cxf/trunk/modules/testsuite/pom.xml 2012-08-30 16:28:22 UTC (rev 16687)
@@ -367,6 +367,7 @@
<include>**/smoke/tools/**/*TestCaseForked.java</include>
<include>**/jbws2150/**/*TestCaseForked.java</include>
<include>**/jms*/**/*TestCaseForked.java</include>
+ <include>**/jaxws/samples/schemavalidation/*TestCaseForked.java</include>
</includes>
<systemProperties>
<property>
12 years, 3 months
JBossWS SVN: r16686 - in stack/cxf/trunk/modules/testsuite/cxf-tests/src/test: resources/jaxws/samples/schemavalidation and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2012-08-30 09:07:13 -0400 (Thu, 30 Aug 2012)
New Revision: 16686
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/client.wsdl
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/SchemaValidationTestCase.java
Log:
[JBWS-3500] Adding testcase for client side schema validation
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/SchemaValidationTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/SchemaValidationTestCase.java 2012-08-30 12:24:00 UTC (rev 16685)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/SchemaValidationTestCase.java 2012-08-30 13:07:13 UTC (rev 16686)
@@ -47,7 +47,7 @@
return new JBossWSCXFTestSetup(SchemaValidationTestCase.class, "jaxws-samples-schemavalidation.war");
}
- public void testSchemaValidation() throws Exception
+ public void testSchemaValidationEndpoint() throws Exception
{
QName serviceName = new QName("http://jboss.org/schemavalidation", "HelloService");
URL wsdlURL = getResourceURL("jaxws/samples/schemavalidation/WEB-INF/wsdl/hello.wsdl");
@@ -65,7 +65,7 @@
}
}
- public void testNoSchemaValidation() throws Exception
+ public void testNoSchemaValidationEndpoint() throws Exception
{
QName serviceName = new QName("http://jboss.org/schemavalidation", "HelloService");
URL wsdlURL = getResourceURL("jaxws/samples/schemavalidation/WEB-INF/wsdl/hello.wsdl");
@@ -79,4 +79,23 @@
assertNotNull(hr);
assertEquals(2, hr.getReturn());
}
+
+ public void testClientSideSchemaValidation() throws Exception
+ {
+ QName serviceName = new QName("http://jboss.org/schemavalidation", "HelloService");
+ URL wsdlURL = getResourceURL("jaxws/samples/schemavalidation/client.wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ Hello proxy = (Hello)service.getPort(new QName("http://jboss.org/schemavalidation", "HelloPort"), Hello.class);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);
+ ((BindingProvider)proxy).getRequestContext().put("schema-validation-enabled", true); //enable client side schema validation
+ HelloResponse hr = proxy.helloRequest("JBoss");
+ assertNotNull(hr);
+ assertEquals(2, hr.getReturn());
+ try {
+ proxy.helloRequest("number");
+ fail("validation error is expeced");
+ } catch (Exception e) {
+ assertTrue("not respect to enumration error is expected", e.getMessage().contains("is not facet-valid with respect to enumeration"));
+ }
+ }
}
\ No newline at end of file
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/client.wsdl
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/client.wsdl (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/client.wsdl 2012-08-30 13:07:13 UTC (rev 16686)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
+ name="helloworld"
+ targetNamespace="http://jboss.org/schemavalidation"
+ xmlns:tns="http://jboss.org/schemavalidation"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:x1="http://jboss.org/schemavalidation/types">
+ <types>
+ <xsd:schema
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://jboss.org/schemavalidation/types"
+ elementFormDefault="qualified">
+
+ <complexType name="helloResponse">
+ <sequence>
+ <element name="return" type="xsd:int" />
+ </sequence>
+ </complexType>
+ <element name="helloResponse" type="x1:helloResponse"/>
+
+ <element name="helloRequest">
+ <simpleType>
+ <restriction base="xsd:string">
+ <enumeration value="JBoss"/>
+ <enumeration value="CXF"/>
+ </restriction>
+ </simpleType>
+ </element>
+ </xsd:schema>
+ </types>
+ <message name="helloRequest">
+ <part name="parameters" element="x1:helloRequest" />
+ </message>
+ <message name="helloResponse">
+ <part name="result" element="x1:helloResponse" />
+ </message>
+ <portType name="hello">
+ <operation name="helloRequest">
+ <input message="tns:helloRequest" />
+ <output message="tns:helloResponse" />
+ </operation>
+ </portType>
+ <binding name="HelloBinding" type="tns:hello">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+ <operation name="helloRequest">
+ <soap:operation soapAction="" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ </binding>
+ <service name="HelloService">
+ <port name="HelloPort" binding="tns:HelloBinding">
+ <soap:address location="http://localhost:8080/schemavalidation/hello" />
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
12 years, 3 months
JBossWS SVN: r16685 - in stack/cxf/trunk/modules/testsuite/cxf-tests: src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation and 3 other directories.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2012-08-30 08:24:00 -0400 (Thu, 30 Aug 2012)
New Revision: 16685
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/ValidatingHelloImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/types/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/types/HelloResponse.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/types/ObjectFactory.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/types/package-info.java
Removed:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/HelloResponse.java
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jars-jaxws.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/Hello.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/HelloImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/SchemaValidationTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/WEB-INF/web.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/WEB-INF/wsdl/hello.wsdl
Log:
[JBWS-3500] Enhaching test
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jars-jaxws.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jars-jaxws.xml 2012-08-30 09:50:40 UTC (rev 16684)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-samples-jars-jaxws.xml 2012-08-30 12:24:00 UTC (rev 16685)
@@ -68,6 +68,8 @@
webxml="${tests.output.dir}/test-resources/jaxws/samples/schemavalidation/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/test-classes">
<include name="org/jboss/test/ws/jaxws/samples/schemavalidation/Hello*.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/schemavalidation/ValidatingHello*.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/schemavalidation/types/*.class"/>
</classes>
<zipfileset
dir="${tests.output.dir}/test-resources/jaxws/samples/schemavalidation/WEB-INF/wsdl"
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/Hello.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/Hello.java 2012-08-30 09:50:40 UTC (rev 16684)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/Hello.java 2012-08-30 12:24:00 UTC (rev 16685)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2012, 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.
*
@@ -26,10 +26,14 @@
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
+import javax.xml.bind.annotation.XmlSeeAlso;
+
+import org.jboss.test.ws.jaxws.samples.schemavalidation.types.HelloResponse;
/**
* @author ema(a)redhat.com
*/
@WebService(targetNamespace = "http://jboss.org/schemavalidation", name = "hello")
+(a)XmlSeeAlso({org.jboss.test.ws.jaxws.samples.schemavalidation.types.ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface Hello {
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/HelloImpl.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/HelloImpl.java 2012-08-30 09:50:40 UTC (rev 16684)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/HelloImpl.java 2012-08-30 12:24:00 UTC (rev 16685)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2012, 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.
*
@@ -21,7 +21,7 @@
*/
package org.jboss.test.ws.jaxws.samples.schemavalidation;
-import org.apache.cxf.annotations.SchemaValidation;
+import org.jboss.test.ws.jaxws.samples.schemavalidation.types.HelloResponse;
/**
* @author ema(a)redhat.com
*/
@@ -29,15 +29,14 @@
portName = "HelloPort", targetNamespace = "http://jboss.org/schemavalidation",
wsdlLocation = "WEB-INF/wsdl/hello.wsdl",
endpointInterface = "org.jboss.test.ws.jaxws.samples.schemavalidation.Hello")
-
-@SchemaValidation
public class HelloImpl implements Hello {
- public HelloResponse helloRequest(java.lang.String input) {
- HelloResponse response = new HelloResponse();
- response.setReturn(1);
- return response;
-
- }
+ public HelloResponse helloRequest(String input)
+ {
+ HelloResponse response = new HelloResponse();
+ response.setReturn(2);
+ return response;
+ }
+
}
Deleted: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/HelloResponse.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/HelloResponse.java 2012-08-30 09:50:40 UTC (rev 16684)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/HelloResponse.java 2012-08-30 12:24:00 UTC (rev 16685)
@@ -1,74 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, 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.samples.schemavalidation;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * <p>Java class for helloResponse complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="helloResponse">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "helloResponse", propOrder = {
- "_return"
-})
-public class HelloResponse {
-
- @XmlElement(name = "return")
- protected int _return;
-
- /**
- * Gets the value of the return property.
- *
- */
- public int getReturn() {
- return _return;
- }
-
- /**
- * Sets the value of the return property.
- *
- */
- public void setReturn(int value) {
- this._return = value;
- }
-
-}
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/SchemaValidationTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/SchemaValidationTestCase.java 2012-08-30 09:50:40 UTC (rev 16684)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/SchemaValidationTestCase.java 2012-08-30 12:24:00 UTC (rev 16685)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2012, 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.
*
@@ -29,14 +29,18 @@
import junit.framework.Test;
+import org.jboss.test.ws.jaxws.samples.schemavalidation.types.HelloResponse;
import org.jboss.wsf.test.JBossWSCXFTestSetup;
import org.jboss.wsf.test.JBossWSTest;
+
/**
* @author ema(a)redhat.com
+ * @author alessio.soldano(a)jboss.com
*/
public class SchemaValidationTestCase extends JBossWSTest
{
- private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-samples-schemavalidation/HelloService";
+ private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-samples-schemavalidation/hello";
+ private final String validatingServiceURL = "http://" + getServerHost() + ":8080/jaxws-samples-schemavalidation/validatingHello";
public static Test suite()
{
@@ -48,14 +52,31 @@
QName serviceName = new QName("http://jboss.org/schemavalidation", "HelloService");
URL wsdlURL = getResourceURL("jaxws/samples/schemavalidation/WEB-INF/wsdl/hello.wsdl");
Service service = Service.create(wsdlURL, serviceName);
- Hello proxy = (Hello)service.getPort(Hello.class);
- ((BindingProvider)proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);
+ Hello proxy = (Hello)service.getPort(new QName("http://jboss.org/schemavalidation", "ValidatingHelloPort"), Hello.class);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, validatingServiceURL);
+ HelloResponse hr = proxy.helloRequest("JBoss"); //valid value (see xsd restriction in the wsdl)
+ assertNotNull(hr);
+ assertEquals(1, hr.getReturn());
try {
proxy.helloRequest("number");
fail("validation error is expeced");
} catch (Exception e) {
assertTrue("not respect to enumration error is expected", e.getMessage().contains("is not facet-valid with respect to enumeration"));
-
}
}
+
+ public void testNoSchemaValidation() throws Exception
+ {
+ QName serviceName = new QName("http://jboss.org/schemavalidation", "HelloService");
+ URL wsdlURL = getResourceURL("jaxws/samples/schemavalidation/WEB-INF/wsdl/hello.wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ Hello proxy = (Hello)service.getPort(new QName("http://jboss.org/schemavalidation", "HelloPort"), Hello.class);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);
+ HelloResponse hr = proxy.helloRequest("JBoss");
+ assertNotNull(hr);
+ assertEquals(2, hr.getReturn());
+ hr = proxy.helloRequest("number"); //validation is not enabled...
+ assertNotNull(hr);
+ assertEquals(2, hr.getReturn());
+ }
}
\ No newline at end of file
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/ValidatingHelloImpl.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/ValidatingHelloImpl.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/ValidatingHelloImpl.java 2012-08-30 12:24:00 UTC (rev 16685)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.samples.schemavalidation;
+
+import org.apache.cxf.annotations.SchemaValidation;
+import org.jboss.test.ws.jaxws.samples.schemavalidation.types.HelloResponse;
+/**
+ * @author ema(a)redhat.com
+ */
+(a)javax.jws.WebService(serviceName = "HelloService",
+ portName = "ValidatingHelloPort", targetNamespace = "http://jboss.org/schemavalidation",
+ wsdlLocation = "WEB-INF/wsdl/hello.wsdl",
+ endpointInterface = "org.jboss.test.ws.jaxws.samples.schemavalidation.Hello")
+
+@SchemaValidation
+public class ValidatingHelloImpl implements Hello {
+
+ public HelloResponse helloRequest(String input)
+ {
+ HelloResponse response = new HelloResponse();
+ response.setReturn(1);
+ return response;
+
+ }
+
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/types/HelloResponse.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/types/HelloResponse.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/types/HelloResponse.java 2012-08-30 12:24:00 UTC (rev 16685)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.samples.schemavalidation.types;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for helloResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="helloResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "helloResponse", propOrder = {
+ "_return"
+})
+public class HelloResponse {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/types/ObjectFactory.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/types/ObjectFactory.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/types/ObjectFactory.java 2012-08-30 12:24:00 UTC (rev 16685)
@@ -0,0 +1,62 @@
+package org.jboss.test.ws.jaxws.samples.schemavalidation.types;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.schemavalidation.types package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _HelloRequest_QNAME = new QName("http://jboss.org/schemavalidation/types", "helloRequest");
+ private final static QName _HelloResponse_QNAME = new QName("http://jboss.org/schemavalidation/types", "helloResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.schemavalidation.types
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link HelloResponse }
+ *
+ */
+ public HelloResponse createHelloResponse() {
+ return new HelloResponse();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://jboss.org/schemavalidation/types", name = "helloRequest")
+ public JAXBElement<String> createHelloRequest(String value) {
+ return new JAXBElement<String>(_HelloRequest_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link HelloResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://jboss.org/schemavalidation/types", name = "helloResponse")
+ public JAXBElement<HelloResponse> createHelloResponse(HelloResponse value) {
+ return new JAXBElement<HelloResponse>(_HelloResponse_QNAME, HelloResponse.class, null, value);
+ }
+
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/types/package-info.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/types/package-info.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/schemavalidation/types/package-info.java 2012-08-30 12:24:00 UTC (rev 16685)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://jboss.org/schemavalidation/types", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.jboss.test.ws.jaxws.samples.schemavalidation.types;
\ No newline at end of file
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/WEB-INF/web.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/WEB-INF/web.xml 2012-08-30 09:50:40 UTC (rev 16684)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/WEB-INF/web.xml 2012-08-30 12:24:00 UTC (rev 16685)
@@ -10,6 +10,14 @@
</servlet>
<servlet-mapping>
<servlet-name>HelloService</servlet-name>
- <url-pattern>/*</url-pattern>
+ <url-pattern>/hello</url-pattern>
</servlet-mapping>
+ <servlet>
+ <servlet-name>ValidatingHelloService</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.samples.schemavalidation.ValidatingHelloImpl</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>ValidatingHelloService</servlet-name>
+ <url-pattern>/validatingHello</url-pattern>
+ </servlet-mapping>
</web-app>
\ No newline at end of file
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/WEB-INF/wsdl/hello.wsdl
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/WEB-INF/wsdl/hello.wsdl 2012-08-30 09:50:40 UTC (rev 16684)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/schemavalidation/WEB-INF/wsdl/hello.wsdl 2012-08-30 12:24:00 UTC (rev 16685)
@@ -56,7 +56,10 @@
</binding>
<service name="HelloService">
<port name="HelloPort" binding="tns:HelloBinding">
- <soap:address location="http://localhost:8080/schemavalidation" />
+ <soap:address location="http://localhost:8080/schemavalidation/hello" />
</port>
+ <port name="ValidatingHelloPort" binding="tns:HelloBinding">
+ <soap:address location="http://localhost:8080/schemavalidation/validatingHello" />
+ </port>
</service>
</definitions>
\ No newline at end of file
12 years, 3 months
JBossWS SVN: r16684 - in stack/cxf/trunk/modules/testsuite/cxf-tests: src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2012-08-30 05:50:40 -0400 (Thu, 30 Aug 2012)
New Revision: 16684
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloBasicSecTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloDigestTestCase.java
Log:
[JBWS-2932] Adding negative testcases + removing unrequired module dependency to Apache CXF impl
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml 2012-08-30 09:33:06 UTC (rev 16683)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml 2012-08-30 09:50:40 UTC (rev 16684)
@@ -164,9 +164,6 @@
<zipfileset
dir="${tests.output.dir}/test-resources/jaxws/cxf/httpauth/basic"
prefix="WEB-INF/"/>
- <manifest>
- <attribute name="Dependencies" value="org.apache.cxf.impl"/> <!-- cxf impl required due to custom interceptor in deployment -->
- </manifest>
</war>
<!-- jaxws-cxf-http-digest -->
@@ -181,9 +178,6 @@
<zipfileset
dir="${tests.output.dir}/test-resources/jaxws/cxf/httpauth/digest"
prefix="WEB-INF/"/>
- <manifest>
- <attribute name="Dependencies" value="org.apache.cxf.impl"/> <!-- cxf impl required due to custom interceptor in deployment -->
- </manifest>
</war>
<!-- jaxws-cxf-jaxbintros -->
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloBasicSecTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloBasicSecTestCase.java 2012-08-30 09:33:06 UTC (rev 16683)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloBasicSecTestCase.java 2012-08-30 09:50:40 UTC (rev 16684)
@@ -35,6 +35,7 @@
import org.jboss.wsf.test.JBossWSTest;
/**
* @author ema(a)redhat.com
+ * @author alessio.soldano(a)jboss.com
*/
public class HelloBasicSecTestCase extends JBossWSTest
{
@@ -67,4 +68,36 @@
assertEquals(100, result);
}
+
+ public void testBasicAuthFail() throws Exception
+ {
+ QName serviceName = new QName("http://jboss.org/http/security", "HelloService");
+ URL wsdlURL = getResourceURL("jaxws/cxf/httpauth/WEB-INF/wsdl/hello.wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ Hello proxy = (Hello)service.getPort(Hello.class);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "jbossws");
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "wrongPwd");
+ try {
+ proxy.helloRequest("number");
+ fail("Authorization exception expected!");
+ } catch (Exception e) {
+ assertTrue(e.getCause().getMessage().contains("401: Unauthorized"));
+ }
+ }
+
+ public void testBasicNoAuth() throws Exception
+ {
+ QName serviceName = new QName("http://jboss.org/http/security", "HelloService");
+ URL wsdlURL = getResourceURL("jaxws/cxf/httpauth/WEB-INF/wsdl/hello.wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ Hello proxy = (Hello)service.getPort(Hello.class);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);
+ try {
+ proxy.helloRequest("number");
+ fail("Authorization exception expected!");
+ } catch (Exception e) {
+ assertTrue(e.getCause().getMessage().contains("401: Unauthorized"));
+ }
+ }
}
\ No newline at end of file
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloDigestTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloDigestTestCase.java 2012-08-30 09:33:06 UTC (rev 16683)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloDigestTestCase.java 2012-08-30 09:50:40 UTC (rev 16684)
@@ -37,6 +37,10 @@
import org.jboss.wsf.test.JBossWSCXFTestSetup;
import org.jboss.wsf.test.JBossWSTest;
+/**
+ * @author ema(a)redhat.com
+ * @author alessio.soldano(a)jboss.com
+ */
public class HelloDigestTestCase extends JBossWSTest
{
private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-cxf-digest-sec";
@@ -74,4 +78,38 @@
assertEquals(100, result);
}
+
+ public void testDigestAuthFail() throws Exception
+ {
+ QName serviceName = new QName("http://jboss.org/http/security", "HelloService");
+ URL wsdlURL = getResourceURL("jaxws/cxf/httpauth/WEB-INF/wsdl/hello.wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ Hello proxy = (Hello)service.getPort(Hello.class);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "jbossws");
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "wrongPwd");
+ HTTPConduit cond = (HTTPConduit)ClientProxy.getClient(proxy).getConduit();
+ cond.setAuthSupplier(new DigestAuthSupplier());
+ try {
+ proxy.helloRequest("number");
+ fail("Authorization exception expected!");
+ } catch (Exception e) {
+ assertTrue(e.getCause().getMessage().contains("Authorization"));
+ }
+ }
+
+ public void testDigestNoAuth() throws Exception
+ {
+ QName serviceName = new QName("http://jboss.org/http/security", "HelloService");
+ URL wsdlURL = getResourceURL("jaxws/cxf/httpauth/WEB-INF/wsdl/hello.wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ Hello proxy = (Hello)service.getPort(Hello.class);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);
+ try {
+ proxy.helloRequest("number");
+ fail("Authorization exception expected!");
+ } catch (Exception e) {
+ assertTrue(e.getCause().getMessage().contains("401: Unauthorized"));
+ }
+ }
}
\ No newline at end of file
12 years, 3 months
JBossWS SVN: r16683 - in stack/cxf/trunk/modules/testsuite/cxf-tests: src/test/java/org/jboss/test/ws/jaxws/cxf and 7 other directories.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2012-08-30 05:33:06 -0400 (Thu, 30 Aug 2012)
New Revision: 16683
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/Hello.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloBasicSecTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloDigestTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloRequest.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloResponse.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/ObjectFactory.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/WEB-INF/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/WEB-INF/ws-roles.properties
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/WEB-INF/ws-users.properties
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/WEB-INF/wsdl/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/WEB-INF/wsdl/hello.wsdl
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/basic/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/basic/jboss-web.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/basic/web.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/digest/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/digest/jboss-web.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/digest/web.xml
Removed:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml
Log:
[JBWS-2932] Renaming package http to httpauth
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml 2012-08-30 08:52:04 UTC (rev 16682)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml 2012-08-30 09:33:06 UTC (rev 16683)
@@ -153,16 +153,16 @@
<!-- jaxws-cxf-http-basic -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-cxf-basic-sec.war" webxml="${tests.output.dir}/test-resources/jaxws/cxf/http/basic/web.xml">
+ <war warfile="${tests.output.dir}/test-libs/jaxws-cxf-basic-sec.war" webxml="${tests.output.dir}/test-resources/jaxws/cxf/httpauth/basic/web.xml">
<classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/cxf/http/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/cxf/http/*TestCase.class"/>
+ <include name="org/jboss/test/ws/jaxws/cxf/httpauth/*.class"/>
+ <exclude name="org/jboss/test/ws/jaxws/cxf/httpauth/*TestCase.class"/>
</classes>
<zipfileset
- dir="${tests.output.dir}/test-resources/jaxws/cxf/http/WEB-INF/wsdl/"
+ dir="${tests.output.dir}/test-resources/jaxws/cxf/httpauth/WEB-INF/wsdl/"
prefix="WEB-INF/wsdl/"/>
<zipfileset
- dir="${tests.output.dir}/test-resources/jaxws/cxf/http/basic"
+ dir="${tests.output.dir}/test-resources/jaxws/cxf/httpauth/basic"
prefix="WEB-INF/"/>
<manifest>
<attribute name="Dependencies" value="org.apache.cxf.impl"/> <!-- cxf impl required due to custom interceptor in deployment -->
@@ -170,16 +170,16 @@
</war>
<!-- jaxws-cxf-http-digest -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-cxf-digest-sec.war" webxml="${tests.output.dir}/test-resources/jaxws/cxf/http/digest/web.xml">
+ <war warfile="${tests.output.dir}/test-libs/jaxws-cxf-digest-sec.war" webxml="${tests.output.dir}/test-resources/jaxws/cxf/httpauth/digest/web.xml">
<classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/cxf/http/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/cxf/http/*TestCase.class"/>
+ <include name="org/jboss/test/ws/jaxws/cxf/httpauth/*.class"/>
+ <exclude name="org/jboss/test/ws/jaxws/cxf/httpauth/*TestCase.class"/>
</classes>
<zipfileset
- dir="${tests.output.dir}/test-resources/jaxws/cxf/http/WEB-INF/wsdl/"
+ dir="${tests.output.dir}/test-resources/jaxws/cxf/httpauth/WEB-INF/wsdl/"
prefix="WEB-INF/wsdl/"/>
<zipfileset
- dir="${tests.output.dir}/test-resources/jaxws/cxf/http/digest"
+ dir="${tests.output.dir}/test-resources/jaxws/cxf/httpauth/digest"
prefix="WEB-INF/"/>
<manifest>
<attribute name="Dependencies" value="org.apache.cxf.impl"/> <!-- cxf impl required due to custom interceptor in deployment -->
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/Hello.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/Hello.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/Hello.java 2012-08-30 09:33:06 UTC (rev 16683)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.cxf.httpauth;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+@WebService(targetNamespace = "http://jboss.org/http/security", name = "hello")
+(a)XmlSeeAlso({ObjectFactory.class})
+public interface Hello {
+
+ @WebResult(name = "return", targetNamespace = "http://jboss.org/http/security/types")
+ @RequestWrapper(localName = "helloRequest", targetNamespace = "http://jboss.org/http/security/types", className = "org.jboss.test.ws.jaxws.cxf.httpauth.HelloRequest")
+ @WebMethod
+ @ResponseWrapper(localName = "helloResponse", targetNamespace = "http://jboss.org/http/security/types", className = "org.jboss.test.ws.jaxws.cxf.httpauth.HelloResponse")
+ public int helloRequest(
+ @WebParam(name = "request", targetNamespace = "http://jboss.org/http/security/types")
+ java.lang.String request
+ );
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloBasicSecTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloBasicSecTestCase.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloBasicSecTestCase.java 2012-08-30 09:33:06 UTC (rev 16683)
@@ -0,0 +1,70 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.cxf.httpauth;
+
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSCXFTestSetup;
+import org.jboss.wsf.test.JBossWSTest;
+/**
+ * @author ema(a)redhat.com
+ */
+public class HelloBasicSecTestCase extends JBossWSTest
+{
+ private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-cxf-basic-sec";
+
+ public static Test suite()
+ {
+ JBossWSCXFTestSetup testSetup;
+ testSetup = new JBossWSCXFTestSetup(HelloBasicSecTestCase.class, "jaxws-cxf-basic-sec.war");
+ Map<String, String> authenticationOptions = new HashMap<String, String>();
+ authenticationOptions.put("usersProperties",
+ getResourceFile("jaxws/cxf/httpauth/WEB-INF/ws-users.properties").getAbsolutePath());
+ authenticationOptions.put("rolesProperties",
+ getResourceFile("jaxws/cxf/httpauth/WEB-INF/ws-roles.properties").getAbsolutePath());
+ authenticationOptions.put("password-stacking", "useFirstPass");
+ testSetup.addSecurityDomainRequirement("ws-basic-domain", authenticationOptions);
+ return testSetup;
+ }
+
+ public void testBasicAuth() throws Exception
+ {
+ QName serviceName = new QName("http://jboss.org/http/security", "HelloService");
+ URL wsdlURL = getResourceURL("jaxws/cxf/httpauth/WEB-INF/wsdl/hello.wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ Hello proxy = (Hello)service.getPort(Hello.class);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "jbossws");
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "jbossws");
+ int result = proxy.helloRequest("number");
+ assertEquals(100, result);
+
+ }
+}
\ No newline at end of file
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloDigestTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloDigestTestCase.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloDigestTestCase.java 2012-08-30 09:33:06 UTC (rev 16683)
@@ -0,0 +1,77 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.cxf.httpauth;
+
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.apache.cxf.frontend.ClientProxy;
+import org.apache.cxf.transport.http.HTTPConduit;
+import org.apache.cxf.transport.http.auth.DigestAuthSupplier;
+import org.jboss.wsf.test.JBossWSCXFTestSetup;
+import org.jboss.wsf.test.JBossWSTest;
+
+public class HelloDigestTestCase extends JBossWSTest
+{
+ private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-cxf-digest-sec";
+
+ public static Test suite()
+ {
+ JBossWSCXFTestSetup testSetup;
+ testSetup = new JBossWSCXFTestSetup(HelloDigestTestCase.class, "jaxws-cxf-digest-sec.war");
+ Map<String, String> authenticationOptions = new HashMap<String, String>();
+ authenticationOptions.put("usersProperties",
+ getResourceFile("jaxws/cxf/httpauth/WEB-INF/ws-users.properties").getAbsolutePath());
+ authenticationOptions.put("rolesProperties",
+ getResourceFile("jaxws/cxf/httpauth/WEB-INF/ws-roles.properties").getAbsolutePath());
+ authenticationOptions.put("hashAlgorithm", "MD5");
+ authenticationOptions.put("hashEncoding", "RFC2617");
+ authenticationOptions.put("hashUserPassword", "false");
+ authenticationOptions.put("hashStorePassword", "true");
+ authenticationOptions.put("storeDigestCallback", "org.jboss.security.auth.callback.RFC2617Digest");
+ testSetup.addSecurityDomainRequirement("ws-digest-domain", authenticationOptions);
+ return testSetup;
+ }
+
+ public void testDigest() throws Exception
+ {
+ QName serviceName = new QName("http://jboss.org/http/security", "HelloService");
+ URL wsdlURL = getResourceURL("jaxws/cxf/httpauth/WEB-INF/wsdl/hello.wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ Hello proxy = (Hello)service.getPort(Hello.class);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "jbossws");
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "jbossws");
+ HTTPConduit cond = (HTTPConduit)ClientProxy.getClient(proxy).getConduit();
+ cond.setAuthSupplier(new DigestAuthSupplier());
+ int result = proxy.helloRequest("number");
+ assertEquals(100, result);
+
+ }
+}
\ No newline at end of file
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloImpl.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloImpl.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloImpl.java 2012-08-30 09:33:06 UTC (rev 16683)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.cxf.httpauth;
+
+import javax.jws.WebService;
+
+@WebService(
+ serviceName = "HelloService",
+ portName = "HelloPort",
+ targetNamespace = "http://jboss.org/http/security",
+ wsdlLocation = "WEB-INF/wsdl/hello.wsdl",
+ endpointInterface = "org.jboss.test.ws.jaxws.cxf.httpauth.Hello")
+
+public class HelloImpl implements Hello {
+
+ public int helloRequest(java.lang.String request) {
+ return 100;
+ }
+
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloRequest.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloRequest.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloRequest.java 2012-08-30 09:33:06 UTC (rev 16683)
@@ -0,0 +1,84 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.cxf.httpauth;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="request" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "request"
+})
+@XmlRootElement(name = "helloRequest")
+public class HelloRequest {
+
+ @XmlElement(required = true)
+ protected String request;
+
+ /**
+ * Gets the value of the request property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRequest() {
+ return request;
+ }
+
+ /**
+ * Sets the value of the request property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRequest(String value) {
+ this.request = value;
+ }
+
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloResponse.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloResponse.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/HelloResponse.java 2012-08-30 09:33:06 UTC (rev 16683)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.cxf.httpauth;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for helloResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="helloResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "helloResponse", propOrder = {
+ "_return"
+})
+public class HelloResponse {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/ObjectFactory.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/ObjectFactory.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/httpauth/ObjectFactory.java 2012-08-30 09:33:06 UTC (rev 16683)
@@ -0,0 +1,81 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.cxf.httpauth;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.cxf.http package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _HelloResponse_QNAME = new QName("http://jboss.org/http/security/types", "helloResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.cxf.http
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link HelloRequest }
+ *
+ */
+ public HelloRequest createHelloRequest() {
+ return new HelloRequest();
+ }
+
+ /**
+ * Create an instance of {@link HelloResponse }
+ *
+ */
+ public HelloResponse createHelloResponse() {
+ return new HelloResponse();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link HelloResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://jboss.org/http/security/types", name = "helloResponse")
+ public JAXBElement<HelloResponse> createHelloResponse(HelloResponse value) {
+ return new JAXBElement<HelloResponse>(_HelloResponse_QNAME, HelloResponse.class, null, value);
+ }
+
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/WEB-INF/ws-roles.properties
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/WEB-INF/ws-roles.properties (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/WEB-INF/ws-roles.properties 2012-08-30 09:33:06 UTC (rev 16683)
@@ -0,0 +1 @@
+jbossws=guest
\ No newline at end of file
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/WEB-INF/ws-users.properties
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/WEB-INF/ws-users.properties (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/WEB-INF/ws-users.properties 2012-08-30 09:33:06 UTC (rev 16683)
@@ -0,0 +1 @@
+jbossws=jbossws
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/WEB-INF/wsdl/hello.wsdl
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/WEB-INF/wsdl/hello.wsdl (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/WEB-INF/wsdl/hello.wsdl 2012-08-30 09:33:06 UTC (rev 16683)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
+ name="helloworld"
+ targetNamespace="http://jboss.org/http/security"
+ xmlns:tns="http://jboss.org/http/security"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:x1="http://jboss.org/http/security/types">
+ <types>
+ <xsd:schema
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://jboss.org/http/security/types"
+ elementFormDefault="qualified">
+
+ <complexType name="helloResponse">
+ <sequence>
+ <element name="return" type="xsd:int" />
+ </sequence>
+ </complexType>
+ <element name="helloResponse" type="x1:helloResponse"/>
+
+ <element name="helloRequest">
+ <complexType>
+ <sequence>
+ <element name="request" type="xsd:string" />
+ </sequence>
+ </complexType>
+ </element>
+ </xsd:schema>
+ </types>
+ <message name="helloRequest">
+ <part name="parameters" element="x1:helloRequest" />
+ </message>
+ <message name="helloResponse">
+ <part name="result" element="x1:helloResponse" />
+ </message>
+ <portType name="hello">
+ <operation name="helloRequest">
+ <input message="tns:helloRequest" />
+ <output message="tns:helloResponse" />
+ </operation>
+ </portType>
+ <binding name="HelloBinding" type="tns:hello">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+ <operation name="helloRequest">
+ <soap:operation soapAction="" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ </binding>
+ <service name="HelloService">
+ <port name="HelloPort" binding="tns:HelloBinding">
+ <soap:address location="http://localhost:8080/schemavalidation" />
+ </port>
+ </service>
+</definitions>
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/basic/jboss-web.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/basic/jboss-web.xml (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/basic/jboss-web.xml 2012-08-30 09:33:06 UTC (rev 16683)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-web>
+ <security-domain>ws-basic-domain</security-domain>
+ <security-role>
+ <role-name>guest</role-name>
+ <principal-name>jbossws</principal-name>
+ </security-role>
+</jboss-web>
\ No newline at end of file
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/basic/web.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/basic/web.xml (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/basic/web.xml 2012-08-30 09:33:06 UTC (rev 16683)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app
+ version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <servlet>
+ <servlet-name>HelloService</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.cxf.httpauth.HelloImpl</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>HelloService</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>HelloServiceContent</web-resource-name>
+ <url-pattern>/*</url-pattern>
+ </web-resource-collection>
+ <auth-constraint>
+ <role-name>guest</role-name>
+ </auth-constraint>
+ </security-constraint>
+
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ <realm-name>ws-basic-domain</realm-name>
+ </login-config>
+ <security-role>
+ <role-name>guest</role-name>
+ </security-role>
+</web-app>
\ No newline at end of file
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/digest/jboss-web.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/digest/jboss-web.xml (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/digest/jboss-web.xml 2012-08-30 09:33:06 UTC (rev 16683)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-web>
+ <security-domain>ws-digest-domain</security-domain>
+ <security-role>
+ <role-name>guest</role-name>
+ <principal-name>jbossws</principal-name>
+ </security-role>
+</jboss-web>
\ No newline at end of file
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/digest/web.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/digest/web.xml (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/httpauth/digest/web.xml 2012-08-30 09:33:06 UTC (rev 16683)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app
+ version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <servlet>
+ <servlet-name>HelloService</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.cxf.httpauth.HelloImpl</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>HelloService</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>HelloServiceContent</web-resource-name>
+ <url-pattern>/*</url-pattern>
+ </web-resource-collection>
+ <auth-constraint>
+ <role-name>guest</role-name>
+ </auth-constraint>
+ </security-constraint>
+
+ <login-config>
+ <auth-method>DIGEST</auth-method>
+ <realm-name>ws-digest-domain</realm-name>
+ </login-config>
+ <security-role>
+ <role-name>guest</role-name>
+ </security-role>
+</web-app>
\ No newline at end of file
12 years, 3 months
JBossWS SVN: r16682 - in stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests: src/test/java/org/jboss/test/ws/jaxws/bp12 and 5 other directories.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2012-08-30 04:52:04 -0400 (Thu, 30 Aug 2012)
New Revision: 16682
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/ComplexTypesDocTestCase.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/IComplexDataTypesDocLitW.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/IComplexDataTypesDocLitWImpl.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/IntArray.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/ObjectFactory.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayInt1D.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayInt1DResponse.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayString1D.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayString1DResponse.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/StringArray.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/web.xml
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/BaseDataTypesDocLitW0.xsd
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/ComplexDataTypesDocLitW.wsdl
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/ComplexDataTypesDocLitW0.xsd
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/ComplexDataTypesDocLitW2.xsd
Modified:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/scripts/cxf-jars-jaxws.xml
Log:
Add wsi bp test for complex doc scenerio
Modified: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/scripts/cxf-jars-jaxws.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/scripts/cxf-jars-jaxws.xml 2012-08-30 08:10:03 UTC (rev 16681)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/scripts/cxf-jars-jaxws.xml 2012-08-30 08:52:04 UTC (rev 16682)
@@ -80,8 +80,19 @@
<webinf dir="${tests.output.dir}/test-resources/jaxws/bp12/complexrpc/WEB-INF">
<include name="wsdl/*" />
</webinf>
- </war>
+ </war>
+ <!-- jaxws-bp12complex-doc -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-bp12complexdoc.war" webxml="${tests.output.dir}/test-resources/jaxws/bp12/complexdoc/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/bp12/complexdoc/*.class"/>
+ <exclude name="org/jboss/test/ws/jaxws/bp12/compelxdoc/*TestCase.class"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/bp12/complexdoc/WEB-INF">
+ <include name="wsdl/*" />
+ </webinf>
+ </war>
+
</target>
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/ComplexTypesDocTestCase.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/ComplexTypesDocTestCase.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/ComplexTypesDocTestCase.java 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexdoc;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSCXFTestSetup;
+import org.jboss.wsf.test.JBossWSTest;
+
+public class ComplexTypesDocTestCase extends JBossWSTest
+{
+ private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-bp12complexdoc/ComplexDoc";
+
+ public static Test suite()
+ {
+ return new JBossWSCXFTestSetup(ComplexTypesDocTestCase.class, "jaxws-bp12complexdoc.war");
+ }
+
+ public void testAllTypes() throws Exception
+ {
+ // construct proxy
+ QName serviceName = new QName("http://tempuri.org/", "ComplexDataTypesDocLitWService");
+ URL wsdlURL = new URL(serviceURL + "?wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ IComplexDataTypesDocLitW port = (IComplexDataTypesDocLitW) service.getPort(IComplexDataTypesDocLitW.class);
+ // invoke method
+ ((BindingProvider) port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
+ "http://localhost:8080/jaxws-bp12complexdoc/ComplexDoc");
+
+ System.out.println("Invoking retArrayString1D...");
+ StringArray inArrayString1D = new StringArray();
+ inArrayString1D.getString().add("the first string");
+ inArrayString1D.getString().add("the second string");
+ inArrayString1D.getString().add("the third string");
+ StringArray retArrayString1D = port.retArrayString1D(inArrayString1D);
+ System.out.println("retArrayString1D.result=" + retArrayString1D.getString().size());
+
+ System.out.println("Invoking retArrayInt1D...");
+ IntArray inArrayInt1D = new IntArray();
+ inArrayInt1D.getInt().add(100);
+ inArrayInt1D.getInt().add(200);
+ inArrayInt1D.getInt().add(300);
+ IntArray retArrayInt1D = port.retArrayInt1D(inArrayInt1D);
+ System.out.println("retArrayInt1D.result=" + retArrayInt1D.getInt().size());
+
+
+
+ }
+}
\ No newline at end of file
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/IComplexDataTypesDocLitW.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/IComplexDataTypesDocLitW.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/IComplexDataTypesDocLitW.java 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexdoc;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.Action;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+@WebService(targetNamespace = "http://tempuri.org/", name = "IComplexDataTypesDocLitW")
+(a)XmlSeeAlso({ObjectFactory.class})
+public interface IComplexDataTypesDocLitW {
+
+ @WebResult(name = "RetArrayString1DResult", targetNamespace = "http://tempuri.org/")
+ @Action(input = "http://tempuri.org/IComplexDataTypesDocLitW/RetArrayString1D", output = "http://tempuri.org/IComplexDataTypesDocLitW/RetArrayString1DResponse")
+ @RequestWrapper(localName = "RetArrayString1D", targetNamespace = "http://tempuri.org/", className = "org.jboss.test.ws.jaxws.bp12.complexdoc.RetArrayString1D")
+ @WebMethod(operationName = "RetArrayString1D", action = "http://tempuri.org/IComplexDataTypesDocLitW/RetArrayString1D")
+ @ResponseWrapper(localName = "RetArrayString1DResponse", targetNamespace = "http://tempuri.org/", className = "org.jboss.test.ws.jaxws.bp12.complexdoc.RetArrayString1DResponse")
+ public org.jboss.test.ws.jaxws.bp12.complexdoc.StringArray retArrayString1D(
+ @WebParam(name = "inArrayString1D", targetNamespace = "http://tempuri.org/")
+ org.jboss.test.ws.jaxws.bp12.complexdoc.StringArray inArrayString1D
+ );
+
+ @WebResult(name = "RetArrayInt1DResult", targetNamespace = "http://tempuri.org/")
+ @Action(input = "http://tempuri.org/IComplexDataTypesDocLitW/RetArrayInt1D", output = "http://tempuri.org/IComplexDataTypesDocLitW/RetArrayInt1DResponse")
+ @RequestWrapper(localName = "RetArrayInt1D", targetNamespace = "http://tempuri.org/", className = "org.jboss.test.ws.jaxws.bp12.complexdoc.RetArrayInt1D")
+ @WebMethod(operationName = "RetArrayInt1D", action = "http://tempuri.org/IComplexDataTypesDocLitW/RetArrayInt1D")
+ @ResponseWrapper(localName = "RetArrayInt1DResponse", targetNamespace = "http://tempuri.org/", className = "org.jboss.test.ws.jaxws.bp12.complexdoc.RetArrayInt1DResponse")
+ public org.jboss.test.ws.jaxws.bp12.complexdoc.IntArray retArrayInt1D(
+ @WebParam(name = "inArrayInt1D", targetNamespace = "http://tempuri.org/")
+ org.jboss.test.ws.jaxws.bp12.complexdoc.IntArray inArrayInt1D
+ );
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/IComplexDataTypesDocLitWImpl.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/IComplexDataTypesDocLitWImpl.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/IComplexDataTypesDocLitWImpl.java 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexdoc;
+
+
+(a)javax.jws.WebService(
+ serviceName = "ComplexDataTypesDocLitWService",
+ portName = "CustomBinding_IComplexDataTypesDocLitW",
+ targetNamespace = "http://tempuri.org/",
+ wsdlLocation = "WEB-INF/wsdl/ComplexDataTypesDocLitW.wsdl",
+ endpointInterface = "org.jboss.test.ws.jaxws.bp12.complexdoc.IComplexDataTypesDocLitW")
+
+public class IComplexDataTypesDocLitWImpl implements IComplexDataTypesDocLitW {
+ /* (non-Javadoc)
+ * @see org.jboss.test.ws.jaxws.bp12.complexdoc.IComplexDataTypesDocLitW#retArrayString1D(org.jboss.test.ws.jaxws.bp12.complexdoc.StringArray inArrayString1D )*
+ */
+ public StringArray retArrayString1D(StringArray inArrayString1D) {
+ return inArrayString1D;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.test.ws.jaxws.bp12.complexdoc.IComplexDataTypesDocLitW#retArrayInt1D(org.jboss.test.ws.jaxws.bp12.complexdoc.IntArray inArrayInt1D )*
+ */
+ public IntArray retArrayInt1D(IntArray inArrayInt1D) {
+ return inArrayInt1D;
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/IntArray.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/IntArray.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/IntArray.java 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,89 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexdoc;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for IntArray complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="IntArray">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="int" type="{http://www.w3.org/2001/XMLSchema}int" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "IntArray", namespace = "http://schemas.example.com/2003/10/Serialization/Arrays", propOrder = {
+ "_int"
+})
+public class IntArray {
+
+ @XmlElement(name = "int", type = Integer.class)
+ protected List<Integer> _int;
+
+ /**
+ * Gets the value of the int property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the int property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getInt().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Integer }
+ *
+ *
+ */
+ public List<Integer> getInt() {
+ if (_int == null) {
+ _int = new ArrayList<Integer>();
+ }
+ return this._int;
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/ObjectFactory.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/ObjectFactory.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/ObjectFactory.java 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,357 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexdoc;
+
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.datatype.Duration;
+import javax.xml.datatype.XMLGregorianCalendar;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.bp12.complexdoc package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _IntArray_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/Arrays", "IntArray");
+ private final static QName _UnsignedShort_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "unsignedShort");
+ private final static QName _Double_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "double");
+ private final static QName _Long_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "long");
+ private final static QName _Decimal_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "decimal");
+ private final static QName _Float_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "float");
+ private final static QName _AnyURI_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "anyURI");
+ private final static QName _Int_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "int");
+ private final static QName _QName_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "QName");
+ private final static QName _UnsignedInt_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "unsignedInt");
+ private final static QName _AnyType_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "anyType");
+ private final static QName _UnsignedByte_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "unsignedByte");
+ private final static QName _DateTime_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "dateTime");
+ private final static QName _Boolean_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "boolean");
+ private final static QName _UnsignedLong_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "unsignedLong");
+ private final static QName _Base64Binary_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "base64Binary");
+ private final static QName _Duration_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "duration");
+ private final static QName _Short_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "short");
+ private final static QName _StringArray_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/Arrays", "StringArray");
+ private final static QName _String_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "string");
+ private final static QName _Byte_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "byte");
+ private final static QName _RetArrayString1DResponseRetArrayString1DResult_QNAME = new QName("http://tempuri.org/", "RetArrayString1DResult");
+ private final static QName _RetArrayInt1DResponseRetArrayInt1DResult_QNAME = new QName("http://tempuri.org/", "RetArrayInt1DResult");
+ private final static QName _RetArrayInt1DInArrayInt1D_QNAME = new QName("http://tempuri.org/", "inArrayInt1D");
+ private final static QName _RetArrayString1DInArrayString1D_QNAME = new QName("http://tempuri.org/", "inArrayString1D");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.bp12.complexdoc
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link RetArrayInt1DResponse }
+ *
+ */
+ public RetArrayInt1DResponse createRetArrayInt1DResponse() {
+ return new RetArrayInt1DResponse();
+ }
+
+ /**
+ * Create an instance of {@link IntArray }
+ *
+ */
+ public IntArray createIntArray() {
+ return new IntArray();
+ }
+
+ /**
+ * Create an instance of {@link RetArrayString1D }
+ *
+ */
+ public RetArrayString1D createRetArrayString1D() {
+ return new RetArrayString1D();
+ }
+
+ /**
+ * Create an instance of {@link StringArray }
+ *
+ */
+ public StringArray createStringArray() {
+ return new StringArray();
+ }
+
+ /**
+ * Create an instance of {@link RetArrayString1DResponse }
+ *
+ */
+ public RetArrayString1DResponse createRetArrayString1DResponse() {
+ return new RetArrayString1DResponse();
+ }
+
+ /**
+ * Create an instance of {@link RetArrayInt1D }
+ *
+ */
+ public RetArrayInt1D createRetArrayInt1D() {
+ return new RetArrayInt1D();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link IntArray }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/Arrays", name = "IntArray")
+ public JAXBElement<IntArray> createIntArray(IntArray value) {
+ return new JAXBElement<IntArray>(_IntArray_QNAME, IntArray.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "unsignedShort")
+ public JAXBElement<Integer> createUnsignedShort(Integer value) {
+ return new JAXBElement<Integer>(_UnsignedShort_QNAME, Integer.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "double")
+ public JAXBElement<Double> createDouble(Double value) {
+ return new JAXBElement<Double>(_Double_QNAME, Double.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "long")
+ public JAXBElement<Long> createLong(Long value) {
+ return new JAXBElement<Long>(_Long_QNAME, Long.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "decimal")
+ public JAXBElement<BigDecimal> createDecimal(BigDecimal value) {
+ return new JAXBElement<BigDecimal>(_Decimal_QNAME, BigDecimal.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Float }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "float")
+ public JAXBElement<Float> createFloat(Float value) {
+ return new JAXBElement<Float>(_Float_QNAME, Float.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "anyURI")
+ public JAXBElement<String> createAnyURI(String value) {
+ return new JAXBElement<String>(_AnyURI_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "int")
+ public JAXBElement<Integer> createInt(Integer value) {
+ return new JAXBElement<Integer>(_Int_QNAME, Integer.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "QName")
+ public JAXBElement<QName> createQName(QName value) {
+ return new JAXBElement<QName>(_QName_QNAME, QName.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "unsignedInt")
+ public JAXBElement<Long> createUnsignedInt(Long value) {
+ return new JAXBElement<Long>(_UnsignedInt_QNAME, Long.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "anyType")
+ public JAXBElement<Object> createAnyType(Object value) {
+ return new JAXBElement<Object>(_AnyType_QNAME, Object.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "unsignedByte")
+ public JAXBElement<Short> createUnsignedByte(Short value) {
+ return new JAXBElement<Short>(_UnsignedByte_QNAME, Short.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "dateTime")
+ public JAXBElement<XMLGregorianCalendar> createDateTime(XMLGregorianCalendar value) {
+ return new JAXBElement<XMLGregorianCalendar>(_DateTime_QNAME, XMLGregorianCalendar.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "boolean")
+ public JAXBElement<Boolean> createBoolean(Boolean value) {
+ return new JAXBElement<Boolean>(_Boolean_QNAME, Boolean.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "unsignedLong")
+ public JAXBElement<BigInteger> createUnsignedLong(BigInteger value) {
+ return new JAXBElement<BigInteger>(_UnsignedLong_QNAME, BigInteger.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "base64Binary")
+ public JAXBElement<byte[]> createBase64Binary(byte[] value) {
+ return new JAXBElement<byte[]>(_Base64Binary_QNAME, byte[].class, null, ((byte[]) value));
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Duration }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "duration")
+ public JAXBElement<Duration> createDuration(Duration value) {
+ return new JAXBElement<Duration>(_Duration_QNAME, Duration.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "short")
+ public JAXBElement<Short> createShort(Short value) {
+ return new JAXBElement<Short>(_Short_QNAME, Short.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link StringArray }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/Arrays", name = "StringArray")
+ public JAXBElement<StringArray> createStringArray(StringArray value) {
+ return new JAXBElement<StringArray>(_StringArray_QNAME, StringArray.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "string")
+ public JAXBElement<String> createString(String value) {
+ return new JAXBElement<String>(_String_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Byte }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "byte")
+ public JAXBElement<Byte> createByte(Byte value) {
+ return new JAXBElement<Byte>(_Byte_QNAME, Byte.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link StringArray }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetArrayString1DResult", scope = RetArrayString1DResponse.class)
+ public JAXBElement<StringArray> createRetArrayString1DResponseRetArrayString1DResult(StringArray value) {
+ return new JAXBElement<StringArray>(_RetArrayString1DResponseRetArrayString1DResult_QNAME, StringArray.class, RetArrayString1DResponse.class, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link IntArray }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://tempuri.org/", name = "RetArrayInt1DResult", scope = RetArrayInt1DResponse.class)
+ public JAXBElement<IntArray> createRetArrayInt1DResponseRetArrayInt1DResult(IntArray value) {
+ return new JAXBElement<IntArray>(_RetArrayInt1DResponseRetArrayInt1DResult_QNAME, IntArray.class, RetArrayInt1DResponse.class, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link IntArray }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://tempuri.org/", name = "inArrayInt1D", scope = RetArrayInt1D.class)
+ public JAXBElement<IntArray> createRetArrayInt1DInArrayInt1D(IntArray value) {
+ return new JAXBElement<IntArray>(_RetArrayInt1DInArrayInt1D_QNAME, IntArray.class, RetArrayInt1D.class, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link StringArray }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://tempuri.org/", name = "inArrayString1D", scope = RetArrayString1D.class)
+ public JAXBElement<StringArray> createRetArrayString1DInArrayString1D(StringArray value) {
+ return new JAXBElement<StringArray>(_RetArrayString1DInArrayString1D_QNAME, StringArray.class, RetArrayString1D.class, value);
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayInt1D.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayInt1D.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayInt1D.java 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,85 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexdoc;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="inArrayInt1D" type="{http://schemas.example.com/2003/10/Serialization/Arrays}IntArray" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "inArrayInt1D"
+})
+@XmlRootElement(name = "RetArrayInt1D")
+public class RetArrayInt1D {
+
+ @XmlElementRef(name = "inArrayInt1D", namespace = "http://tempuri.org/", type = JAXBElement.class)
+ protected JAXBElement<IntArray> inArrayInt1D;
+
+ /**
+ * Gets the value of the inArrayInt1D property.
+ *
+ * @return
+ * possible object is
+ * {@link JAXBElement }{@code <}{@link IntArray }{@code >}
+ *
+ */
+ public JAXBElement<IntArray> getInArrayInt1D() {
+ return inArrayInt1D;
+ }
+
+ /**
+ * Sets the value of the inArrayInt1D property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JAXBElement }{@code <}{@link IntArray }{@code >}
+ *
+ */
+ public void setInArrayInt1D(JAXBElement<IntArray> value) {
+ this.inArrayInt1D = value;
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayInt1DResponse.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayInt1DResponse.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayInt1DResponse.java 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,85 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexdoc;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="RetArrayInt1DResult" type="{http://schemas.example.com/2003/10/Serialization/Arrays}IntArray" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "retArrayInt1DResult"
+})
+@XmlRootElement(name = "RetArrayInt1DResponse")
+public class RetArrayInt1DResponse {
+
+ @XmlElementRef(name = "RetArrayInt1DResult", namespace = "http://tempuri.org/", type = JAXBElement.class)
+ protected JAXBElement<IntArray> retArrayInt1DResult;
+
+ /**
+ * Gets the value of the retArrayInt1DResult property.
+ *
+ * @return
+ * possible object is
+ * {@link JAXBElement }{@code <}{@link IntArray }{@code >}
+ *
+ */
+ public JAXBElement<IntArray> getRetArrayInt1DResult() {
+ return retArrayInt1DResult;
+ }
+
+ /**
+ * Sets the value of the retArrayInt1DResult property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JAXBElement }{@code <}{@link IntArray }{@code >}
+ *
+ */
+ public void setRetArrayInt1DResult(JAXBElement<IntArray> value) {
+ this.retArrayInt1DResult = value;
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayString1D.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayString1D.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayString1D.java 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,85 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexdoc;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="inArrayString1D" type="{http://schemas.example.com/2003/10/Serialization/Arrays}StringArray" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "inArrayString1D"
+})
+@XmlRootElement(name = "RetArrayString1D")
+public class RetArrayString1D {
+
+ @XmlElementRef(name = "inArrayString1D", namespace = "http://tempuri.org/", type = JAXBElement.class)
+ protected JAXBElement<StringArray> inArrayString1D;
+
+ /**
+ * Gets the value of the inArrayString1D property.
+ *
+ * @return
+ * possible object is
+ * {@link JAXBElement }{@code <}{@link StringArray }{@code >}
+ *
+ */
+ public JAXBElement<StringArray> getInArrayString1D() {
+ return inArrayString1D;
+ }
+
+ /**
+ * Sets the value of the inArrayString1D property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JAXBElement }{@code <}{@link StringArray }{@code >}
+ *
+ */
+ public void setInArrayString1D(JAXBElement<StringArray> value) {
+ this.inArrayString1D = value;
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayString1DResponse.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayString1DResponse.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/RetArrayString1DResponse.java 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,85 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexdoc;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="RetArrayString1DResult" type="{http://schemas.example.com/2003/10/Serialization/Arrays}StringArray" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "retArrayString1DResult"
+})
+@XmlRootElement(name = "RetArrayString1DResponse")
+public class RetArrayString1DResponse {
+
+ @XmlElementRef(name = "RetArrayString1DResult", namespace = "http://tempuri.org/", type = JAXBElement.class)
+ protected JAXBElement<StringArray> retArrayString1DResult;
+
+ /**
+ * Gets the value of the retArrayString1DResult property.
+ *
+ * @return
+ * possible object is
+ * {@link JAXBElement }{@code <}{@link StringArray }{@code >}
+ *
+ */
+ public JAXBElement<StringArray> getRetArrayString1DResult() {
+ return retArrayString1DResult;
+ }
+
+ /**
+ * Sets the value of the retArrayString1DResult property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JAXBElement }{@code <}{@link StringArray }{@code >}
+ *
+ */
+ public void setRetArrayString1DResult(JAXBElement<StringArray> value) {
+ this.retArrayString1DResult = value;
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/StringArray.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/StringArray.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexdoc/StringArray.java 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,89 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexdoc;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for StringArray complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="StringArray">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="string" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "StringArray", namespace = "http://schemas.example.com/2003/10/Serialization/Arrays", propOrder = {
+ "string"
+})
+public class StringArray {
+
+ @XmlElement(nillable = true)
+ protected List<String> string;
+
+ /**
+ * Gets the value of the string property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the string property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getString().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getString() {
+ if (string == null) {
+ string = new ArrayList<String>();
+ }
+ return this.string;
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/web.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/web.xml (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/web.xml 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">
+
+ <servlet>
+ <servlet-name>ComplexDoc</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.bp12.complexdoc.IComplexDataTypesDocLitWImpl</servlet-class>
+ </servlet>
+
+
+ <servlet-mapping>
+ <servlet-name>ComplexDoc</servlet-name>
+ <url-pattern>/ComplexDoc</url-pattern>
+ </servlet-mapping>
+</web-app>
\ No newline at end of file
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/BaseDataTypesDocLitW0.xsd
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/BaseDataTypesDocLitW0.xsd (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/BaseDataTypesDocLitW0.xsd 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.example.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.example.com/2003/10/Serialization/">
+ <xs:element name="anyType" nillable="true" type="xs:anyType"/>
+ <xs:element name="anyURI" nillable="true" type="xs:anyURI"/>
+ <xs:element name="base64Binary" nillable="true" type="xs:base64Binary"/>
+ <xs:element name="boolean" nillable="true" type="xs:boolean"/>
+ <xs:element name="byte" nillable="true" type="xs:byte"/>
+ <xs:element name="dateTime" nillable="true" type="xs:dateTime"/>
+ <xs:element name="decimal" nillable="true" type="xs:decimal"/>
+ <xs:element name="double" nillable="true" type="xs:double"/>
+ <xs:element name="float" nillable="true" type="xs:float"/>
+ <xs:element name="int" nillable="true" type="xs:int"/>
+ <xs:element name="long" nillable="true" type="xs:long"/>
+ <xs:element name="QName" nillable="true" type="xs:QName"/>
+ <xs:element name="short" nillable="true" type="xs:short"/>
+ <xs:element name="string" nillable="true" type="xs:string"/>
+ <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte"/>
+ <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt"/>
+ <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong"/>
+ <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort"/>
+ <xs:simpleType name="duration">
+ <xs:restriction base="xs:duration">
+ <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?"/>
+ <xs:minInclusive value="-P10675199DT2H48M5.4775808S"/>
+ <xs:maxInclusive value="P10675199DT2H48M5.4775807S"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:element name="duration" nillable="true" type="tns:duration"/>
+</xs:schema>
\ No newline at end of file
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/ComplexDataTypesDocLitW.wsdl
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/ComplexDataTypesDocLitW.wsdl (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/ComplexDataTypesDocLitW.wsdl 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wsdl:definitions name="ComplexDataTypesDocLitWService" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utilit..." xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://tempuri.org/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
+ <wsdl:types>
+ <xsd:schema targetNamespace="http://tempuri.org/Imports">
+ <xsd:import schemaLocation="ComplexDataTypesDocLitW0.xsd" namespace="http://tempuri.org/"/>
+ <xsd:import schemaLocation="BaseDataTypesDocLitW0.xsd" namespace="http://schemas.example.com/2003/10/Serialization/"/>
+ <xsd:import schemaLocation="ComplexDataTypesDocLitW2.xsd" namespace="http://schemas.example.com/2003/10/Serialization/Arrays"/>
+ </xsd:schema>
+ </wsdl:types>
+ <wsdl:message name="IComplexDataTypesDocLitW_RetArrayString1D_InputMessage">
+ <wsdl:part name="parameters" element="tns:RetArrayString1D"/>
+ </wsdl:message>
+ <wsdl:message name="IComplexDataTypesDocLitW_RetArrayString1D_OutputMessage">
+ <wsdl:part name="parameters" element="tns:RetArrayString1DResponse"/>
+ </wsdl:message>
+ <wsdl:message name="IComplexDataTypesDocLitW_RetArrayInt1D_InputMessage">
+ <wsdl:part name="parameters" element="tns:RetArrayInt1D"/>
+ </wsdl:message>
+ <wsdl:message name="IComplexDataTypesDocLitW_RetArrayInt1D_OutputMessage">
+ <wsdl:part name="parameters" element="tns:RetArrayInt1DResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="IComplexDataTypesDocLitW">
+ <wsdl:operation name="RetArrayString1D">
+ <wsdl:input wsam:Action="http://tempuri.org/IComplexDataTypesDocLitW/RetArrayString1D" message="tns:IComplexDataTypesDocLitW_RetArrayString1D_InputMessage"/>
+ <wsdl:output wsam:Action="http://tempuri.org/IComplexDataTypesDocLitW/RetArrayString1DResponse" message="tns:IComplexDataTypesDocLitW_RetArrayString1D_OutputMessage"/>
+ </wsdl:operation>
+ <wsdl:operation name="RetArrayInt1D">
+ <wsdl:input wsam:Action="http://tempuri.org/IComplexDataTypesDocLitW/RetArrayInt1D" message="tns:IComplexDataTypesDocLitW_RetArrayInt1D_InputMessage"/>
+ <wsdl:output wsam:Action="http://tempuri.org/IComplexDataTypesDocLitW/RetArrayInt1DResponse" message="tns:IComplexDataTypesDocLitW_RetArrayInt1D_OutputMessage"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="CustomBinding_IComplexDataTypesDocLitW" type="tns:IComplexDataTypesDocLitW">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="RetArrayString1D">
+ <soap:operation soapAction="http://tempuri.org/IComplexDataTypesDocLitW/RetArrayString1D" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="RetArrayInt1D">
+ <soap:operation soapAction="http://tempuri.org/IComplexDataTypesDocLitW/RetArrayInt1D" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="ComplexDataTypesDocLitWService">
+ <wsdl:port name="CustomBinding_IComplexDataTypesDocLitW" binding="tns:CustomBinding_IComplexDataTypesDocLitW">
+ <soap:address location="http://localhost/Soap11/ComplexDataTypesDocLitW"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/ComplexDataTypesDocLitW0.xsd
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/ComplexDataTypesDocLitW0.xsd (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/ComplexDataTypesDocLitW0.xsd 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/">
+ <xs:import schemaLocation="ComplexDataTypesDocLitW2.xsd" namespace="http://schemas.example.com/2003/10/Serialization/Arrays"/>
+ <xs:element name="RetArrayString1D">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="inArrayString1D" nillable="true" type="q1:StringArray" xmlns:q1="http://schemas.example.com/2003/10/Serialization/Arrays"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="RetArrayString1DResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="RetArrayString1DResult" nillable="true" type="q2:StringArray" xmlns:q2="http://schemas.example.com/2003/10/Serialization/Arrays"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="RetArrayInt1D">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="inArrayInt1D" nillable="true" type="q3:IntArray" xmlns:q3="http://schemas.example.com/2003/10/Serialization/Arrays"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="RetArrayInt1DResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="RetArrayInt1DResult" nillable="true" type="q4:IntArray" xmlns:q4="http://schemas.example.com/2003/10/Serialization/Arrays"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
\ No newline at end of file
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/ComplexDataTypesDocLitW2.xsd
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/ComplexDataTypesDocLitW2.xsd (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexdoc/WEB-INF/wsdl/ComplexDataTypesDocLitW2.xsd 2012-08-30 08:52:04 UTC (rev 16682)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.example.com/2003/10/Serialization/Arrays" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.example.com/2003/10/Serialization/Arrays">
+ <xs:complexType name="StringArray">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="StringArray" nillable="true" type="tns:StringArray"/>
+ <xs:complexType name="IntArray">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="int" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="IntArray" nillable="true" type="tns:IntArray"/>
+</xs:schema>
\ No newline at end of file
12 years, 3 months
JBossWS SVN: r16681 - in stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests: src/test/java/org/jboss/test/ws/jaxws/bp12 and 5 other directories.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2012-08-30 04:10:03 -0400 (Thu, 30 Aug 2012)
New Revision: 16681
Added:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/ComplexTypesRPCTestCase.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/IComplexDataTypesRpcLit.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/IComplexDataTypesRpcLitImpl.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/IntArray.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/ObjectFactory.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/StringArray.java
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/web.xml
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/wsdl/
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/wsdl/BaseDataTypesDocLitW0.xsd
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/wsdl/ComplexDataTypesDocLitW2.xsd
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/wsdl/ComplexDataTypesRpcLit.wsdl
Modified:
stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/scripts/cxf-jars-jaxws.xml
Log:
Add wsi bp test for complex rpc scenario
Modified: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/scripts/cxf-jars-jaxws.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/scripts/cxf-jars-jaxws.xml 2012-08-30 07:19:30 UTC (rev 16680)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/scripts/cxf-jars-jaxws.xml 2012-08-30 08:10:03 UTC (rev 16681)
@@ -70,6 +70,18 @@
<include name="wsdl/*" />
</webinf>
</war>
+
+ <!-- jaxws-bp12complex-rpc -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-bp12complexrpc.war" webxml="${tests.output.dir}/test-resources/jaxws/bp12/complexrpc/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/bp12/complexrpc/*.class"/>
+ <exclude name="org/jboss/test/ws/jaxws/bp12/compelxrpc/*TestCase.class"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/bp12/complexrpc/WEB-INF">
+ <include name="wsdl/*" />
+ </webinf>
+ </war>
+
</target>
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/ComplexTypesRPCTestCase.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/ComplexTypesRPCTestCase.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/ComplexTypesRPCTestCase.java 2012-08-30 08:10:03 UTC (rev 16681)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexrpc;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSCXFTestSetup;
+import org.jboss.wsf.test.JBossWSTest;
+
+public class ComplexTypesRPCTestCase extends JBossWSTest
+{
+ private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-bp12complexrpc/ComplexRPC";
+
+ public static Test suite()
+ {
+ return new JBossWSCXFTestSetup(ComplexTypesRPCTestCase.class, "jaxws-bp12complexrpc.war");
+ }
+
+ public void testAllTypes() throws Exception
+ {
+ // construct proxy
+ QName serviceName = new QName("http://tempuri.org/", "ComplexDataTypesRpcLitService");
+ URL wsdlURL = new URL(serviceURL + "?wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ IComplexDataTypesRpcLit port = (IComplexDataTypesRpcLit) service.getPort(IComplexDataTypesRpcLit.class);
+ // invoke method
+ ((BindingProvider) port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
+ "http://localhost:8080/jaxws-bp12complexrpc/ComplexRPC");
+
+ System.out.println("Invoking retArrayString1D...");
+ StringArray inArrayString1D = new StringArray();
+ inArrayString1D.getString().add("the first string");
+ inArrayString1D.getString().add("the second string");
+ inArrayString1D.getString().add("the third string");
+ StringArray retArrayString1D = port.retArrayString1D(inArrayString1D);
+ System.out.println("retArrayString1D.result=" + retArrayString1D.getString().size());
+
+ System.out.println("Invoking retArrayInt1D...");
+ IntArray inArrayInt1D = new IntArray();
+ inArrayInt1D.getInt().add(100);
+ inArrayInt1D.getInt().add(200);
+ inArrayInt1D.getInt().add(300);
+ IntArray retArrayInt1D = port.retArrayInt1D(inArrayInt1D);
+ System.out.println("retArrayInt1D.result=" + retArrayInt1D.getInt().size());
+
+ }
+}
\ No newline at end of file
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/IComplexDataTypesRpcLit.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/IComplexDataTypesRpcLit.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/IComplexDataTypesRpcLit.java 2012-08-30 08:10:03 UTC (rev 16681)
@@ -0,0 +1,58 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexrpc;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.Action;
+
+/**
+ * This class was generated by Apache CXF 2.6.0-SNAPSHOT
+ * 2012-08-30T15:04:33.797+08:00
+ * Generated source version: 2.6.0-SNAPSHOT
+ *
+ */
+@WebService(targetNamespace = "http://tempuri.org/", name = "IComplexDataTypesRpcLit")
+(a)XmlSeeAlso({ObjectFactory.class})
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface IComplexDataTypesRpcLit {
+
+ @WebResult(name = "RetArrayString1DResult", targetNamespace = "http://tempuri.org/", partName = "RetArrayString1DResult")
+ @Action(input = "http://tempuri.org/IComplexDataTypesRpcLit/RetArrayString1D", output = "http://tempuri.org/IComplexDataTypesRpcLit/RetArrayString1DResponse")
+ @WebMethod(operationName = "RetArrayString1D", action = "http://tempuri.org/IComplexDataTypesRpcLit/RetArrayString1D")
+ public StringArray retArrayString1D(
+ @WebParam(partName = "inArrayString1D", name = "inArrayString1D")
+ StringArray inArrayString1D
+ );
+
+ @WebResult(name = "RetArrayInt1DResult", targetNamespace = "http://tempuri.org/", partName = "RetArrayInt1DResult")
+ @Action(input = "http://tempuri.org/IComplexDataTypesRpcLit/RetArrayInt1D", output = "http://tempuri.org/IComplexDataTypesRpcLit/RetArrayInt1DResponse")
+ @WebMethod(operationName = "RetArrayInt1D", action = "http://tempuri.org/IComplexDataTypesRpcLit/RetArrayInt1D")
+ public IntArray retArrayInt1D(
+ @WebParam(partName = "inArrayInt1D", name = "inArrayInt1D")
+ IntArray inArrayInt1D
+ );
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/IComplexDataTypesRpcLitImpl.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/IComplexDataTypesRpcLitImpl.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/IComplexDataTypesRpcLitImpl.java 2012-08-30 08:10:03 UTC (rev 16681)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexrpc;
+
+
+(a)javax.jws.WebService(
+ serviceName = "ComplexDataTypesRpcLitService",
+ portName = "CustomBinding_IComplexDataTypesRpcLit",
+ targetNamespace = "http://tempuri.org/",
+ wsdlLocation = "WEB-INF/wsdl/ComplexDataTypesRpcLit.wsdl",
+ endpointInterface = "org.jboss.test.ws.jaxws.bp12.complexrpc.IComplexDataTypesRpcLit")
+
+public class IComplexDataTypesRpcLitImpl implements IComplexDataTypesRpcLit {
+
+ /* (non-Javadoc)
+ * @see org.jboss.test.ws.jaxws.bp12.complexrpc.IComplexDataTypesRpcLit#retArrayString1D(org.jboss.test.ws.jaxws.bp12.complexrpc.StringArray inArrayString1D )*
+ */
+ public StringArray retArrayString1D(StringArray inArrayString1D) {
+ return inArrayString1D;
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.test.ws.jaxws.bp12.complexrpc.IComplexDataTypesRpcLit#retArrayInt1D(org.jboss.test.ws.jaxws.bp12.complexrpc.IntArray inArrayInt1D )*
+ */
+ public IntArray retArrayInt1D(IntArray inArrayInt1D) {
+ return inArrayInt1D;
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/IntArray.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/IntArray.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/IntArray.java 2012-08-30 08:10:03 UTC (rev 16681)
@@ -0,0 +1,89 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexrpc;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for IntArray complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="IntArray">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="int" type="{http://www.w3.org/2001/XMLSchema}int" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "IntArray", propOrder = {
+ "_int"
+})
+public class IntArray {
+
+ @XmlElement(name = "int", type = Integer.class)
+ protected List<Integer> _int;
+
+ /**
+ * Gets the value of the int property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the int property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getInt().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Integer }
+ *
+ *
+ */
+ public List<Integer> getInt() {
+ if (_int == null) {
+ _int = new ArrayList<Integer>();
+ }
+ return this._int;
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/ObjectFactory.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/ObjectFactory.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/ObjectFactory.java 2012-08-30 08:10:03 UTC (rev 16681)
@@ -0,0 +1,285 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexrpc;
+
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.datatype.Duration;
+import javax.xml.datatype.XMLGregorianCalendar;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.bp12.complexrpc package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _IntArray_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/Arrays", "IntArray");
+ private final static QName _UnsignedShort_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "unsignedShort");
+ private final static QName _Double_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "double");
+ private final static QName _Long_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "long");
+ private final static QName _Decimal_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "decimal");
+ private final static QName _Float_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "float");
+ private final static QName _AnyURI_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "anyURI");
+ private final static QName _Int_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "int");
+ private final static QName _QName_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "QName");
+ private final static QName _UnsignedInt_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "unsignedInt");
+ private final static QName _AnyType_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "anyType");
+ private final static QName _UnsignedByte_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "unsignedByte");
+ private final static QName _DateTime_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "dateTime");
+ private final static QName _Boolean_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "boolean");
+ private final static QName _UnsignedLong_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "unsignedLong");
+ private final static QName _Base64Binary_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "base64Binary");
+ private final static QName _Duration_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "duration");
+ private final static QName _Short_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "short");
+ private final static QName _StringArray_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/Arrays", "StringArray");
+ private final static QName _String_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "string");
+ private final static QName _Byte_QNAME = new QName("http://schemas.example.com/2003/10/Serialization/", "byte");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.bp12.complexrpc
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link IntArray }
+ *
+ */
+ public IntArray createIntArray() {
+ return new IntArray();
+ }
+
+ /**
+ * Create an instance of {@link StringArray }
+ *
+ */
+ public StringArray createStringArray() {
+ return new StringArray();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link IntArray }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/Arrays", name = "IntArray")
+ public JAXBElement<IntArray> createIntArray(IntArray value) {
+ return new JAXBElement<IntArray>(_IntArray_QNAME, IntArray.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "unsignedShort")
+ public JAXBElement<Integer> createUnsignedShort(Integer value) {
+ return new JAXBElement<Integer>(_UnsignedShort_QNAME, Integer.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "double")
+ public JAXBElement<Double> createDouble(Double value) {
+ return new JAXBElement<Double>(_Double_QNAME, Double.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "long")
+ public JAXBElement<Long> createLong(Long value) {
+ return new JAXBElement<Long>(_Long_QNAME, Long.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "decimal")
+ public JAXBElement<BigDecimal> createDecimal(BigDecimal value) {
+ return new JAXBElement<BigDecimal>(_Decimal_QNAME, BigDecimal.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Float }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "float")
+ public JAXBElement<Float> createFloat(Float value) {
+ return new JAXBElement<Float>(_Float_QNAME, Float.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "anyURI")
+ public JAXBElement<String> createAnyURI(String value) {
+ return new JAXBElement<String>(_AnyURI_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "int")
+ public JAXBElement<Integer> createInt(Integer value) {
+ return new JAXBElement<Integer>(_Int_QNAME, Integer.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "QName")
+ public JAXBElement<QName> createQName(QName value) {
+ return new JAXBElement<QName>(_QName_QNAME, QName.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "unsignedInt")
+ public JAXBElement<Long> createUnsignedInt(Long value) {
+ return new JAXBElement<Long>(_UnsignedInt_QNAME, Long.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "anyType")
+ public JAXBElement<Object> createAnyType(Object value) {
+ return new JAXBElement<Object>(_AnyType_QNAME, Object.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "unsignedByte")
+ public JAXBElement<Short> createUnsignedByte(Short value) {
+ return new JAXBElement<Short>(_UnsignedByte_QNAME, Short.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "dateTime")
+ public JAXBElement<XMLGregorianCalendar> createDateTime(XMLGregorianCalendar value) {
+ return new JAXBElement<XMLGregorianCalendar>(_DateTime_QNAME, XMLGregorianCalendar.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "boolean")
+ public JAXBElement<Boolean> createBoolean(Boolean value) {
+ return new JAXBElement<Boolean>(_Boolean_QNAME, Boolean.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "unsignedLong")
+ public JAXBElement<BigInteger> createUnsignedLong(BigInteger value) {
+ return new JAXBElement<BigInteger>(_UnsignedLong_QNAME, BigInteger.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "base64Binary")
+ public JAXBElement<byte[]> createBase64Binary(byte[] value) {
+ return new JAXBElement<byte[]>(_Base64Binary_QNAME, byte[].class, null, ((byte[]) value));
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Duration }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "duration")
+ public JAXBElement<Duration> createDuration(Duration value) {
+ return new JAXBElement<Duration>(_Duration_QNAME, Duration.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "short")
+ public JAXBElement<Short> createShort(Short value) {
+ return new JAXBElement<Short>(_Short_QNAME, Short.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link StringArray }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/Arrays", name = "StringArray")
+ public JAXBElement<StringArray> createStringArray(StringArray value) {
+ return new JAXBElement<StringArray>(_StringArray_QNAME, StringArray.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "string")
+ public JAXBElement<String> createString(String value) {
+ return new JAXBElement<String>(_String_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link Byte }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://schemas.example.com/2003/10/Serialization/", name = "byte")
+ public JAXBElement<Byte> createByte(Byte value) {
+ return new JAXBElement<Byte>(_Byte_QNAME, Byte.class, null, value);
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/StringArray.java
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/StringArray.java (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/java/org/jboss/test/ws/jaxws/bp12/complexrpc/StringArray.java 2012-08-30 08:10:03 UTC (rev 16681)
@@ -0,0 +1,89 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.bp12.complexrpc;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for StringArray complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="StringArray">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="string" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "StringArray", propOrder = {
+ "string"
+})
+public class StringArray {
+
+ @XmlElement(nillable = true)
+ protected List<String> string;
+
+ /**
+ * Gets the value of the string property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the string property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getString().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getString() {
+ if (string == null) {
+ string = new ArrayList<String>();
+ }
+ return this.string;
+ }
+
+}
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/web.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/web.xml (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/web.xml 2012-08-30 08:10:03 UTC (rev 16681)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">
+
+ <servlet>
+ <servlet-name>ComplexRPC</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.bp12.complexrpc.IComplexDataTypesRpcLitImpl</servlet-class>
+ </servlet>
+
+
+ <servlet-mapping>
+ <servlet-name>ComplexRPC</servlet-name>
+ <url-pattern>/ComplexRPC</url-pattern>
+ </servlet-mapping>
+</web-app>
\ No newline at end of file
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/wsdl/BaseDataTypesDocLitW0.xsd
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/wsdl/BaseDataTypesDocLitW0.xsd (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/wsdl/BaseDataTypesDocLitW0.xsd 2012-08-30 08:10:03 UTC (rev 16681)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.example.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.example.com/2003/10/Serialization/">
+ <xs:element name="anyType" nillable="true" type="xs:anyType"/>
+ <xs:element name="anyURI" nillable="true" type="xs:anyURI"/>
+ <xs:element name="base64Binary" nillable="true" type="xs:base64Binary"/>
+ <xs:element name="boolean" nillable="true" type="xs:boolean"/>
+ <xs:element name="byte" nillable="true" type="xs:byte"/>
+ <xs:element name="dateTime" nillable="true" type="xs:dateTime"/>
+ <xs:element name="decimal" nillable="true" type="xs:decimal"/>
+ <xs:element name="double" nillable="true" type="xs:double"/>
+ <xs:element name="float" nillable="true" type="xs:float"/>
+ <xs:element name="int" nillable="true" type="xs:int"/>
+ <xs:element name="long" nillable="true" type="xs:long"/>
+ <xs:element name="QName" nillable="true" type="xs:QName"/>
+ <xs:element name="short" nillable="true" type="xs:short"/>
+ <xs:element name="string" nillable="true" type="xs:string"/>
+ <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte"/>
+ <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt"/>
+ <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong"/>
+ <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort"/>
+ <xs:simpleType name="duration">
+ <xs:restriction base="xs:duration">
+ <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?"/>
+ <xs:minInclusive value="-P10675199DT2H48M5.4775808S"/>
+ <xs:maxInclusive value="P10675199DT2H48M5.4775807S"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:element name="duration" nillable="true" type="tns:duration"/>
+</xs:schema>
\ No newline at end of file
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/wsdl/ComplexDataTypesDocLitW2.xsd
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/wsdl/ComplexDataTypesDocLitW2.xsd (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/wsdl/ComplexDataTypesDocLitW2.xsd 2012-08-30 08:10:03 UTC (rev 16681)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.example.com/2003/10/Serialization/Arrays" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.example.com/2003/10/Serialization/Arrays">
+ <xs:complexType name="StringArray">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="StringArray" nillable="true" type="tns:StringArray"/>
+ <xs:complexType name="IntArray">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" name="int" type="xs:int"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="IntArray" nillable="true" type="tns:IntArray"/>
+</xs:schema>
\ No newline at end of file
Added: stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/wsdl/ComplexDataTypesRpcLit.wsdl
===================================================================
--- stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/wsdl/ComplexDataTypesRpcLit.wsdl (rev 0)
+++ stack/cxf/branches/jbossws-cxf-bp-test/modules/testsuite/bp12-tests/src/test/resources/jaxws/bp12/complexrpc/WEB-INF/wsdl/ComplexDataTypesRpcLit.wsdl 2012-08-30 08:10:03 UTC (rev 16681)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wsdl:definitions name="ComplexDataTypesRpcLitService" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://tempuri.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
+ <wsdl:types>
+ <xsd:schema targetNamespace="http://tempuri.org/Imports">
+ <xsd:import schemaLocation="BaseDataTypesDocLitW0.xsd" namespace="http://schemas.example.com/2003/10/Serialization/"/>
+ <xsd:import schemaLocation="ComplexDataTypesDocLitW2.xsd" namespace="http://schemas.example.com/2003/10/Serialization/Arrays"/>
+ </xsd:schema>
+ </wsdl:types>
+ <wsdl:message name="IComplexDataTypesRpcLit_RetArrayString1D_InputMessage">
+ <wsdl:part name="inArrayString1D" type="q1:StringArray" xmlns:q1="http://schemas.example.com/2003/10/Serialization/Arrays"/>
+ </wsdl:message>
+ <wsdl:message name="IComplexDataTypesRpcLit_RetArrayString1D_OutputMessage">
+ <wsdl:part name="RetArrayString1DResult" type="q2:StringArray" xmlns:q2="http://schemas.example.com/2003/10/Serialization/Arrays"/>
+ </wsdl:message>
+ <wsdl:message name="IComplexDataTypesRpcLit_RetArrayInt1D_InputMessage">
+ <wsdl:part name="inArrayInt1D" type="q3:IntArray" xmlns:q3="http://schemas.example.com/2003/10/Serialization/Arrays"/>
+ </wsdl:message>
+ <wsdl:message name="IComplexDataTypesRpcLit_RetArrayInt1D_OutputMessage">
+ <wsdl:part name="RetArrayInt1DResult" type="q4:IntArray" xmlns:q4="http://schemas.example.com/2003/10/Serialization/Arrays"/>
+ </wsdl:message>
+ <wsdl:portType name="IComplexDataTypesRpcLit">
+ <wsdl:operation name="RetArrayString1D" parameterOrder="inArrayString1D">
+ <wsdl:input wsam:Action="http://tempuri.org/IComplexDataTypesRpcLit/RetArrayString1D" message="tns:IComplexDataTypesRpcLit_RetArrayString1D_InputMessage"/>
+ <wsdl:output wsam:Action="http://tempuri.org/IComplexDataTypesRpcLit/RetArrayString1DResponse" message="tns:IComplexDataTypesRpcLit_RetArrayString1D_OutputMessage"/>
+ </wsdl:operation>
+ <wsdl:operation name="RetArrayInt1D" parameterOrder="inArrayInt1D">
+ <wsdl:input wsam:Action="http://tempuri.org/IComplexDataTypesRpcLit/RetArrayInt1D" message="tns:IComplexDataTypesRpcLit_RetArrayInt1D_InputMessage"/>
+ <wsdl:output wsam:Action="http://tempuri.org/IComplexDataTypesRpcLit/RetArrayInt1DResponse" message="tns:IComplexDataTypesRpcLit_RetArrayInt1D_OutputMessage"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="CustomBinding_IComplexDataTypesRpcLit" type="tns:IComplexDataTypesRpcLit">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
+ <wsdl:operation name="RetArrayString1D">
+ <soap:operation soapAction="http://tempuri.org/IComplexDataTypesRpcLit/RetArrayString1D" style="rpc"/>
+ <wsdl:input>
+ <soap:body use="literal" namespace="http://tempuri.org/"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" namespace="http://tempuri.org/"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="RetArrayInt1D">
+ <soap:operation soapAction="http://tempuri.org/IComplexDataTypesRpcLit/RetArrayInt1D" style="rpc"/>
+ <wsdl:input>
+ <soap:body use="literal" namespace="http://tempuri.org/"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" namespace="http://tempuri.org/"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="ComplexDataTypesRpcLitService">
+ <wsdl:port name="CustomBinding_IComplexDataTypesRpcLit" binding="tns:CustomBinding_IComplexDataTypesRpcLit">
+ <soap:address location="http://localhost/Soap11/ComplexDataTypesRpcLit"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file
12 years, 3 months
JBossWS SVN: r16680 - stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2012-08-30 03:19:30 -0400 (Thu, 30 Aug 2012)
New Revision: 16680
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloBasicSecTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloDigestTestCase.java
Log:
Minor change : modify the test name
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloBasicSecTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloBasicSecTestCase.java 2012-08-30 02:04:38 UTC (rev 16679)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloBasicSecTestCase.java 2012-08-30 07:19:30 UTC (rev 16680)
@@ -54,7 +54,7 @@
return testSetup;
}
- public void testSchemaValidation() throws Exception
+ public void testBasicAuth() throws Exception
{
QName serviceName = new QName("http://jboss.org/http/security", "HelloService");
URL wsdlURL = getResourceURL("jaxws/cxf/http/WEB-INF/wsdl/hello.wsdl");
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloDigestTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloDigestTestCase.java 2012-08-30 02:04:38 UTC (rev 16679)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloDigestTestCase.java 2012-08-30 07:19:30 UTC (rev 16680)
@@ -59,7 +59,7 @@
return testSetup;
}
- public void testSchemaValidation() throws Exception
+ public void testDigest() throws Exception
{
QName serviceName = new QName("http://jboss.org/http/security", "HelloService");
URL wsdlURL = getResourceURL("jaxws/cxf/http/WEB-INF/wsdl/hello.wsdl");
12 years, 3 months
JBossWS SVN: r16679 - in stack/cxf/trunk/modules/testsuite/cxf-tests: src/test/java/org/jboss/test/ws/jaxws/cxf and 7 other directories.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2012-08-29 22:04:38 -0400 (Wed, 29 Aug 2012)
New Revision: 16679
Added:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/Hello.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloBasicSecTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloDigestTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloRequest.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloResponse.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/ObjectFactory.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/WEB-INF/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/WEB-INF/ws-roles.properties
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/WEB-INF/ws-users.properties
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/WEB-INF/wsdl/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/WEB-INF/wsdl/hello.wsdl
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/basic/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/basic/jboss-web.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/basic/web.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/digest/
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/digest/jboss-web.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/digest/web.xml
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml
Log:
[JBWS-2932]:add http basic auth and digest access test
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml 2012-08-29 15:44:13 UTC (rev 16678)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml 2012-08-30 02:04:38 UTC (rev 16679)
@@ -150,7 +150,42 @@
<include name="org/jboss/test/ws/jaxws/cxf/httpproxy/HelloWorld*.class"/>
</classes>
</war>
+
+ <!-- jaxws-cxf-http-basic -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-cxf-basic-sec.war" webxml="${tests.output.dir}/test-resources/jaxws/cxf/http/basic/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/cxf/http/*.class"/>
+ <exclude name="org/jboss/test/ws/jaxws/cxf/http/*TestCase.class"/>
+ </classes>
+ <zipfileset
+ dir="${tests.output.dir}/test-resources/jaxws/cxf/http/WEB-INF/wsdl/"
+ prefix="WEB-INF/wsdl/"/>
+ <zipfileset
+ dir="${tests.output.dir}/test-resources/jaxws/cxf/http/basic"
+ prefix="WEB-INF/"/>
+ <manifest>
+ <attribute name="Dependencies" value="org.apache.cxf.impl"/> <!-- cxf impl required due to custom interceptor in deployment -->
+ </manifest>
+ </war>
+
+ <!-- jaxws-cxf-http-digest -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-cxf-digest-sec.war" webxml="${tests.output.dir}/test-resources/jaxws/cxf/http/digest/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/cxf/http/*.class"/>
+ <exclude name="org/jboss/test/ws/jaxws/cxf/http/*TestCase.class"/>
+ </classes>
+ <zipfileset
+ dir="${tests.output.dir}/test-resources/jaxws/cxf/http/WEB-INF/wsdl/"
+ prefix="WEB-INF/wsdl/"/>
+ <zipfileset
+ dir="${tests.output.dir}/test-resources/jaxws/cxf/http/digest"
+ prefix="WEB-INF/"/>
+ <manifest>
+ <attribute name="Dependencies" value="org.apache.cxf.impl"/> <!-- cxf impl required due to custom interceptor in deployment -->
+ </manifest>
+ </war>
+
<!-- jaxws-cxf-jaxbintros -->
<jar destfile="${tests.output.dir}/test-libs/jaxws-cxf-jaxbintros.jar">
<fileset dir="${tests.output.dir}/test-classes">
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/Hello.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/Hello.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/Hello.java 2012-08-30 02:04:38 UTC (rev 16679)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.cxf.http;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+@WebService(targetNamespace = "http://jboss.org/http/security", name = "hello")
+(a)XmlSeeAlso({ObjectFactory.class})
+public interface Hello {
+
+ @WebResult(name = "return", targetNamespace = "http://jboss.org/http/security/types")
+ @RequestWrapper(localName = "helloRequest", targetNamespace = "http://jboss.org/http/security/types", className = "org.jboss.test.ws.jaxws.cxf.http.HelloRequest")
+ @WebMethod
+ @ResponseWrapper(localName = "helloResponse", targetNamespace = "http://jboss.org/http/security/types", className = "org.jboss.test.ws.jaxws.cxf.http.HelloResponse")
+ public int helloRequest(
+ @WebParam(name = "request", targetNamespace = "http://jboss.org/http/security/types")
+ java.lang.String request
+ );
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloBasicSecTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloBasicSecTestCase.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloBasicSecTestCase.java 2012-08-30 02:04:38 UTC (rev 16679)
@@ -0,0 +1,70 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.cxf.http;
+
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSCXFTestSetup;
+import org.jboss.wsf.test.JBossWSTest;
+/**
+ * @author ema(a)redhat.com
+ */
+public class HelloBasicSecTestCase extends JBossWSTest
+{
+ private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-cxf-basic-sec";
+
+ public static Test suite()
+ {
+ JBossWSCXFTestSetup testSetup;
+ testSetup = new JBossWSCXFTestSetup(HelloBasicSecTestCase.class, "jaxws-cxf-basic-sec.war");
+ Map<String, String> authenticationOptions = new HashMap<String, String>();
+ authenticationOptions.put("usersProperties",
+ getResourceFile("jaxws/cxf/http/WEB-INF/ws-users.properties").getAbsolutePath());
+ authenticationOptions.put("rolesProperties",
+ getResourceFile("jaxws/cxf/http/WEB-INF/ws-roles.properties").getAbsolutePath());
+ authenticationOptions.put("password-stacking", "useFirstPass");
+ testSetup.addSecurityDomainRequirement("ws-basic-domain", authenticationOptions);
+ return testSetup;
+ }
+
+ public void testSchemaValidation() throws Exception
+ {
+ QName serviceName = new QName("http://jboss.org/http/security", "HelloService");
+ URL wsdlURL = getResourceURL("jaxws/cxf/http/WEB-INF/wsdl/hello.wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ Hello proxy = (Hello)service.getPort(Hello.class);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "jbossws");
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "jbossws");
+ int result = proxy.helloRequest("number");
+ assertEquals(100, result);
+
+ }
+}
\ No newline at end of file
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloDigestTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloDigestTestCase.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloDigestTestCase.java 2012-08-30 02:04:38 UTC (rev 16679)
@@ -0,0 +1,77 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.cxf.http;
+
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.apache.cxf.frontend.ClientProxy;
+import org.apache.cxf.transport.http.HTTPConduit;
+import org.apache.cxf.transport.http.auth.DigestAuthSupplier;
+import org.jboss.wsf.test.JBossWSCXFTestSetup;
+import org.jboss.wsf.test.JBossWSTest;
+
+public class HelloDigestTestCase extends JBossWSTest
+{
+ private final String serviceURL = "http://" + getServerHost() + ":8080/jaxws-cxf-digest-sec";
+
+ public static Test suite()
+ {
+ JBossWSCXFTestSetup testSetup;
+ testSetup = new JBossWSCXFTestSetup(HelloDigestTestCase.class, "jaxws-cxf-digest-sec.war");
+ Map<String, String> authenticationOptions = new HashMap<String, String>();
+ authenticationOptions.put("usersProperties",
+ getResourceFile("jaxws/cxf/http/WEB-INF/ws-users.properties").getAbsolutePath());
+ authenticationOptions.put("rolesProperties",
+ getResourceFile("jaxws/cxf/http/WEB-INF/ws-roles.properties").getAbsolutePath());
+ authenticationOptions.put("hashAlgorithm", "MD5");
+ authenticationOptions.put("hashEncoding", "RFC2617");
+ authenticationOptions.put("hashUserPassword", "false");
+ authenticationOptions.put("hashStorePassword", "true");
+ authenticationOptions.put("storeDigestCallback", "org.jboss.security.auth.callback.RFC2617Digest");
+ testSetup.addSecurityDomainRequirement("ws-digest-domain", authenticationOptions);
+ return testSetup;
+ }
+
+ public void testSchemaValidation() throws Exception
+ {
+ QName serviceName = new QName("http://jboss.org/http/security", "HelloService");
+ URL wsdlURL = getResourceURL("jaxws/cxf/http/WEB-INF/wsdl/hello.wsdl");
+ Service service = Service.create(wsdlURL, serviceName);
+ Hello proxy = (Hello)service.getPort(Hello.class);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "jbossws");
+ ((BindingProvider)proxy).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "jbossws");
+ HTTPConduit cond = (HTTPConduit)ClientProxy.getClient(proxy).getConduit();
+ cond.setAuthSupplier(new DigestAuthSupplier());
+ int result = proxy.helloRequest("number");
+ assertEquals(100, result);
+
+ }
+}
\ No newline at end of file
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloImpl.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloImpl.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloImpl.java 2012-08-30 02:04:38 UTC (rev 16679)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.cxf.http;
+
+import javax.jws.WebService;
+
+@WebService(
+ serviceName = "HelloService",
+ portName = "HelloPort",
+ targetNamespace = "http://jboss.org/http/security",
+ wsdlLocation = "WEB-INF/wsdl/hello.wsdl",
+ endpointInterface = "org.jboss.test.ws.jaxws.cxf.http.Hello")
+
+public class HelloImpl implements Hello {
+
+ public int helloRequest(java.lang.String request) {
+ return 100;
+ }
+
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloRequest.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloRequest.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloRequest.java 2012-08-30 02:04:38 UTC (rev 16679)
@@ -0,0 +1,84 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.cxf.http;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="request" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "request"
+})
+@XmlRootElement(name = "helloRequest")
+public class HelloRequest {
+
+ @XmlElement(required = true)
+ protected String request;
+
+ /**
+ * Gets the value of the request property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRequest() {
+ return request;
+ }
+
+ /**
+ * Sets the value of the request property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRequest(String value) {
+ this.request = value;
+ }
+
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloResponse.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloResponse.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/HelloResponse.java 2012-08-30 02:04:38 UTC (rev 16679)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.cxf.http;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for helloResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="helloResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "helloResponse", propOrder = {
+ "_return"
+})
+public class HelloResponse {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/ObjectFactory.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/ObjectFactory.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/http/ObjectFactory.java 2012-08-30 02:04:38 UTC (rev 16679)
@@ -0,0 +1,81 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, 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.cxf.http;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.cxf.http package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _HelloResponse_QNAME = new QName("http://jboss.org/http/security/types", "helloResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.cxf.http
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link HelloRequest }
+ *
+ */
+ public HelloRequest createHelloRequest() {
+ return new HelloRequest();
+ }
+
+ /**
+ * Create an instance of {@link HelloResponse }
+ *
+ */
+ public HelloResponse createHelloResponse() {
+ return new HelloResponse();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link HelloResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://jboss.org/http/security/types", name = "helloResponse")
+ public JAXBElement<HelloResponse> createHelloResponse(HelloResponse value) {
+ return new JAXBElement<HelloResponse>(_HelloResponse_QNAME, HelloResponse.class, null, value);
+ }
+
+}
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/WEB-INF/ws-roles.properties
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/WEB-INF/ws-roles.properties (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/WEB-INF/ws-roles.properties 2012-08-30 02:04:38 UTC (rev 16679)
@@ -0,0 +1 @@
+jbossws=guest
\ No newline at end of file
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/WEB-INF/ws-users.properties
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/WEB-INF/ws-users.properties (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/WEB-INF/ws-users.properties 2012-08-30 02:04:38 UTC (rev 16679)
@@ -0,0 +1 @@
+jbossws=jbossws
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/WEB-INF/wsdl/hello.wsdl
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/WEB-INF/wsdl/hello.wsdl (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/WEB-INF/wsdl/hello.wsdl 2012-08-30 02:04:38 UTC (rev 16679)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions
+ name="helloworld"
+ targetNamespace="http://jboss.org/http/security"
+ xmlns:tns="http://jboss.org/http/security"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:x1="http://jboss.org/http/security/types">
+ <types>
+ <xsd:schema
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://jboss.org/http/security/types"
+ elementFormDefault="qualified">
+
+ <complexType name="helloResponse">
+ <sequence>
+ <element name="return" type="xsd:int" />
+ </sequence>
+ </complexType>
+ <element name="helloResponse" type="x1:helloResponse"/>
+
+ <element name="helloRequest">
+ <complexType>
+ <sequence>
+ <element name="request" type="xsd:string" />
+ </sequence>
+ </complexType>
+ </element>
+ </xsd:schema>
+ </types>
+ <message name="helloRequest">
+ <part name="parameters" element="x1:helloRequest" />
+ </message>
+ <message name="helloResponse">
+ <part name="result" element="x1:helloResponse" />
+ </message>
+ <portType name="hello">
+ <operation name="helloRequest">
+ <input message="tns:helloRequest" />
+ <output message="tns:helloResponse" />
+ </operation>
+ </portType>
+ <binding name="HelloBinding" type="tns:hello">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
+ <operation name="helloRequest">
+ <soap:operation soapAction="" />
+ <input>
+ <soap:body use="literal" />
+ </input>
+ <output>
+ <soap:body use="literal" />
+ </output>
+ </operation>
+ </binding>
+ <service name="HelloService">
+ <port name="HelloPort" binding="tns:HelloBinding">
+ <soap:address location="http://localhost:8080/schemavalidation" />
+ </port>
+ </service>
+</definitions>
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/basic/jboss-web.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/basic/jboss-web.xml (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/basic/jboss-web.xml 2012-08-30 02:04:38 UTC (rev 16679)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-web>
+ <security-domain>ws-basic-domain</security-domain>
+ <security-role>
+ <role-name>guest</role-name>
+ <principal-name>jbossws</principal-name>
+ </security-role>
+</jboss-web>
\ No newline at end of file
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/basic/web.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/basic/web.xml (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/basic/web.xml 2012-08-30 02:04:38 UTC (rev 16679)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app
+ version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <servlet>
+ <servlet-name>HelloService</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.cxf.http.HelloImpl</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>HelloService</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>HelloServiceContent</web-resource-name>
+ <url-pattern>/*</url-pattern>
+ </web-resource-collection>
+ <auth-constraint>
+ <role-name>guest</role-name>
+ </auth-constraint>
+ </security-constraint>
+
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ <realm-name>ws-basic-domain</realm-name>
+ </login-config>
+ <security-role>
+ <role-name>guest</role-name>
+ </security-role>
+</web-app>
\ No newline at end of file
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/digest/jboss-web.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/digest/jboss-web.xml (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/digest/jboss-web.xml 2012-08-30 02:04:38 UTC (rev 16679)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-web>
+ <security-domain>ws-digest-domain</security-domain>
+ <security-role>
+ <role-name>guest</role-name>
+ <principal-name>jbossws</principal-name>
+ </security-role>
+</jboss-web>
\ No newline at end of file
Added: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/digest/web.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/digest/web.xml (rev 0)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/cxf/http/digest/web.xml 2012-08-30 02:04:38 UTC (rev 16679)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app
+ version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <servlet>
+ <servlet-name>HelloService</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.cxf.http.HelloImpl</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>HelloService</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>HelloServiceContent</web-resource-name>
+ <url-pattern>/*</url-pattern>
+ </web-resource-collection>
+ <auth-constraint>
+ <role-name>guest</role-name>
+ </auth-constraint>
+ </security-constraint>
+
+ <login-config>
+ <auth-method>DIGEST</auth-method>
+ <realm-name>ws-digest-domain</realm-name>
+ </login-config>
+ <security-role>
+ <role-name>guest</role-name>
+ </security-role>
+</web-app>
\ No newline at end of file
12 years, 3 months
JBossWS SVN: r16678 - stack/cxf/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2012-08-29 11:44:13 -0400 (Wed, 29 Aug 2012)
New Revision: 16678
Modified:
stack/cxf/trunk/modules/testsuite/pom.xml
Log:
[JBWS-3493] Enabling test
Modified: stack/cxf/trunk/modules/testsuite/pom.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/pom.xml 2012-08-29 15:36:07 UTC (rev 16677)
+++ stack/cxf/trunk/modules/testsuite/pom.xml 2012-08-29 15:44:13 UTC (rev 16678)
@@ -813,9 +813,6 @@
<!--# [JBWS-2480] Soap attachments are dropped on server response-->
<exclude>org/jboss/test/ws/jaxws/jbws1283/**</exclude>
- <!-- # [JBWS-3493] WS-Trust tests w/ PicketLink STS require PL 2.1.2.Final or greater -->
- <exclude>org/jboss/test/ws/jaxws/samples/wsse/policy/trust/WSTrustPicketLinkTestCase*</exclude>
-
<!-- # Tests migrated from JBossWS-Native specific testsuite which are meant to pass with JBossWS-CXF too, but are still to be fixed -->
<exclude>org/jboss/test/ws/jaxws/jbws2978/**</exclude>
</excludes>
12 years, 3 months