Author: alessio.soldano(a)jboss.com
Date: 2007-10-26 12:50:37 -0400 (Fri, 26 Oct 2007)
New Revision: 4900
Added:
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/AbstractWSSEBase.java
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/IPingService.java
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/ObjectFactory.java
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/PingService10.java
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/TestService.java
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/UsernameTokenHTTPSTestCase.java
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/META-INF/
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurity_schema.xsd
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurty10.wsdl
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurty_portType.wsdl
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/META-INF/
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/META-INF/jboss-wsse-client.xml
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/META-INF/scenarios.xml
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/jboss-web.xml
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/jboss-wsse-server.xml
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/web.xml
Modified:
stack/native/branches/asoldano/trunk/ant-import-tests/build-jars-jaxws.xml
Log:
WCF interoperability tests, scenario 3.1
Modified: stack/native/branches/asoldano/trunk/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/branches/asoldano/trunk/ant-import-tests/build-jars-jaxws.xml 2007-10-26
16:47:53 UTC (rev 4899)
+++ stack/native/branches/asoldano/trunk/ant-import-tests/build-jars-jaxws.xml 2007-10-26
16:50:37 UTC (rev 4900)
@@ -790,7 +790,33 @@
<jar
destfile="${tests.output.dir}/libs/jbossws-interop-wsse10Sign-client.jar">
<metainf
dir="${tests.output.dir}/resources/interop/wsse/sign/META-INF"/>
</jar>
+
+
+ <!-- jbossws-interop-nov2007-wsseUsernameTokenHTTPS.war -->
+ <war
warfile="${tests.output.dir}/libs/jbossws-interop-nov2007-wsseUsernameTokenHTTPS.war"
+
webxml="${tests.output.dir}/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/classes">
+ <include name="org/jboss/test/ws/interop/nov2007/wsse/**/*.class"/>
+ <include name="org/jboss/test/ws/interop/*.class"/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF">
+ <include name="jboss-wsse-server.xml"/>
+ <include name="jboss-web.xml"/>
+ </webinf>
+ <webinf
dir="${tests.output.dir}/resources/interop/nov2007/wsse/shared/WEB-INF">
+ <include name="wsdl/**.*"/>
+ </webinf>
+
+ <fileset dir="${tests.output.dir}/resources/interop/nov2007/wsse/">
+ <include name="*.*"/>
+ </fileset>
+ </war>
+ <!-- jbossws-interop-nov2007-wsseUsernameTokenHTTPS-client.jar -->
+ <jar
destfile="${tests.output.dir}/libs/jbossws-interop-nov2007-wsseUsernameTokenHTTPS-client.jar">
+ <metainf
dir="${tests.output.dir}/resources/interop/nov2007/wsse/usernameTokenHTTPS/META-INF"/>
+ </jar>
+
<!-- wrap up in an *.ear for easier deployment -->
<ear destfile="${tests.output.dir}/libs/jbossws-interop.ear"
appxml="${tests.output.dir}/resources/interop/root/META-INF/application.xml">
<fileset dir="${tests.output.dir}/libs"
includes="*interop*.war"/>
Added:
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/AbstractWSSEBase.java
===================================================================
---
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/AbstractWSSEBase.java
(rev 0)
+++
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/AbstractWSSEBase.java 2007-10-26
16:50:37 UTC (rev 4900)
@@ -0,0 +1,103 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.interop.nov2007.wsse;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.net.URLClassLoader;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+
+import org.jboss.test.ws.interop.ClientScenario;
+import org.jboss.test.ws.interop.InteropConfigFactory;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+
+/**
+ * @author Alessio Soldano <alessio.soldano(a)jboss.com>
+ *
+ * @version $Id:$
+ * @since 26-Oct-2007
+ */
+public abstract class AbstractWSSEBase extends JBossWSTest
+{
+
+ protected IPingService port;
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+
+ if (port == null)
+ {
+ URL wsdlLocation = new
File("resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurty10.wsdl").toURL();
+ QName serviceName = new
QName("http://tempuri.org/",
"PingService10");
+ Service service = Service.create(wsdlLocation, serviceName);
+ port = (IPingService)service.getPort(getScenarioPortQName(),
IPingService.class);
+ configureClient();
+ }
+
+ scenarioSetup(port);
+ }
+
+ protected abstract void scenarioSetup(IPingService port);
+
+ protected abstract QName getScenarioPortQName();
+
+ protected void configureClient()
+ {
+
+ InteropConfigFactory factory = InteropConfigFactory.newInstance();
+ ClientScenario scenario =
factory.createClientScenario(System.getProperty("client.scenario"));
+ if (scenario != null)
+ {
+ System.out.println("SCENARIO: "+scenario);
+ log.info("Using scenario: " + scenario);
+
((BindingProvider)port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
scenario.getTargetEndpoint().toString());
+ }
+ else
+ {
+ throw new IllegalStateException("Failed to load client scenario");
+ }
+
+ }
+
+ protected static void addClientConfToClasspath(String s)
+ {
+ try
+ {
+ // wrap the classloader upfront to allow inclusion of the client.jar
+ JBossWSTestHelper helper = new JBossWSTestHelper();
+ ClassLoader parent = Thread.currentThread().getContextClassLoader();
+ URLClassLoader replacement = new URLClassLoader(new URL[] {
helper.getArchiveURL(s) }, parent);
+ Thread.currentThread().setContextClassLoader(replacement);
+
+ }
+ catch (MalformedURLException e)
+ {
+ throw new IllegalStateException(e);
+ }
+ }
+}
Property changes on:
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/AbstractWSSEBase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/IPingService.java
===================================================================
---
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/IPingService.java
(rev 0)
+++
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/IPingService.java 2007-10-26
16:50:37 UTC (rev 4900)
@@ -0,0 +1,36 @@
+
+package org.jboss.test.ws.interop.nov2007.wsse;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.ws.Action;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.1-b03-
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "IPingService", targetNamespace =
"http://xmlsoap.org/Ping")
+@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
+public interface IPingService {
+
+
+ /**
+ *
+ * @param ping
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod(operationName = "Ping", action =
"http://xmlsoap.org/Ping")
+ @WebResult(name = "PingResponse", targetNamespace =
"http://xmlsoap.org/Ping", partName = "PingResponse")
+ @Action(input = "http://xmlsoap.org/Ping", output =
"http://xmlsoap.org/PingResponse")
+ public String ping(
+ @WebParam(name = "Ping", targetNamespace =
"http://xmlsoap.org/Ping", partName = "Ping")
+ String ping);
+
+}
Property changes on:
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/IPingService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/ObjectFactory.java
===================================================================
---
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/ObjectFactory.java
(rev 0)
+++
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/ObjectFactory.java 2007-10-26
16:50:37 UTC (rev 4900)
@@ -0,0 +1,55 @@
+
+package org.jboss.test.ws.interop.nov2007.wsse;
+
+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.interop.nov2007.wsse 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 _Ping_QNAME = new
QName("http://xmlsoap.org/Ping", "Ping");
+ private final static QName _PingResponse_QNAME = new
QName("http://xmlsoap.org/Ping", "PingResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.jboss.test.ws.interop.nov2007.wsse
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://xmlsoap.org/Ping", name =
"Ping")
+ public JAXBElement<String> createPing(String value) {
+ return new JAXBElement<String>(_Ping_QNAME, String.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://xmlsoap.org/Ping", name =
"PingResponse")
+ public JAXBElement<String> createPingResponse(String value) {
+ return new JAXBElement<String>(_PingResponse_QNAME, String.class, null,
value);
+ }
+
+}
Property changes on:
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/ObjectFactory.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/PingService10.java
===================================================================
---
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/PingService10.java
(rev 0)
+++
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/PingService10.java 2007-10-26
16:50:37 UTC (rev 4900)
@@ -0,0 +1,83 @@
+
+package org.jboss.test.ws.interop.nov2007.wsse;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.1-b03-
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "PingService10", targetNamespace =
"http://tempuri.org/", wsdlLocation =
"file:/dati/jbossws/stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurty10.wsdl")
+public class PingService10
+ extends Service
+{
+
+ private final static URL PINGSERVICE10_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new
URL("file:/dati/jbossws/stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurty10.wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ PINGSERVICE10_WSDL_LOCATION = url;
+ }
+
+ public PingService10(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public PingService10() {
+ super(PINGSERVICE10_WSDL_LOCATION, new
QName("http://tempuri.org/",
"PingService10"));
+ }
+
+ /**
+ *
+ * @return
+ * returns IPingService
+ */
+ @WebEndpoint(name = "Username_IPingService_port")
+ public IPingService getUsernameIPingServicePort() {
+ return (IPingService)super.getPort(new
QName("http://tempuri.org/",
"Username_IPingService_port"), IPingService.class);
+ }
+
+ /**
+ *
+ * @return
+ * returns IPingService
+ */
+ @WebEndpoint(name = "MutualCertificate10SignEncrypt_IPingService_port")
+ public IPingService getMutualCertificate10SignEncryptIPingServicePort() {
+ return (IPingService)super.getPort(new
QName("http://tempuri.org/",
"MutualCertificate10SignEncrypt_IPingService_port"), IPingService.class);
+ }
+
+ /**
+ *
+ * @return
+ * returns IPingService
+ */
+ @WebEndpoint(name =
"MutualCertificate10SignEncryptRsa15TripleDes_IPingService_port")
+ public IPingService getMutualCertificate10SignEncryptRsa15TripleDesIPingServicePort()
{
+ return (IPingService)super.getPort(new
QName("http://tempuri.org/",
"MutualCertificate10SignEncryptRsa15TripleDes_IPingService_port"),
IPingService.class);
+ }
+
+ /**
+ *
+ * @return
+ * returns IPingService
+ */
+ @WebEndpoint(name = "MutualCertificate10Sign_IPingService_port")
+ public IPingService getMutualCertificate10SignIPingServicePort() {
+ return (IPingService)super.getPort(new
QName("http://tempuri.org/",
"MutualCertificate10Sign_IPingService_port"), IPingService.class);
+ }
+
+}
Property changes on:
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/PingService10.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/TestService.java
===================================================================
---
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/TestService.java
(rev 0)
+++
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/TestService.java 2007-10-26
16:50:37 UTC (rev 4900)
@@ -0,0 +1,62 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.interop.nov2007.wsse;
+
+import javax.jws.WebService;
+
+import org.jboss.ws.annotation.EndpointConfig;
+
+
+/**
+ * WCF Interoperability Plug-fest - November 2007
+ *
+ * IPingService test implementation
+ *
+ * @author Alessio Soldano <alessio.soldano(a)jboss.com>
+ *
+ * @version $Id:$
+ * @since 26-Oct-2007
+ */
+//@WebService(
+// serviceName = "PingService10",
+// name = "IPingService",
+// targetNamespace = "http://tempuri.org/",
+// endpointInterface =
"org.jboss.test.ws.interop.nov2007.wsse.IPingService",
+// portName = "Username_IPingService_port")
+@WebService(
+ wsdlLocation = "WEB-INF/wsdl/WSSecurty10.wsdl",
+ serviceName = "PingService10",
+ name = "IPingService",
+ targetNamespace = "http://tempuri.org/",
+ endpointInterface =
"org.jboss.test.ws.interop.nov2007.wsse.IPingService",
+ portName = "Username_IPingService_port")
+@EndpointConfig(configName = "Standard WSSecurity Endpoint")
+public class TestService implements IPingService
+{
+
+ public String ping(String ping)
+ {
+ System.out.println("ping: "+ping);
+ return ping;
+ }
+
+}
Property changes on:
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/TestService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/UsernameTokenHTTPSTestCase.java
===================================================================
---
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/UsernameTokenHTTPSTestCase.java
(rev 0)
+++
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/UsernameTokenHTTPSTestCase.java 2007-10-26
16:50:37 UTC (rev 4900)
@@ -0,0 +1,89 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.interop.nov2007.wsse;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+
+import junit.framework.Test;
+
+import org.jboss.ws.core.StubExt;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * WCF Interoperability Plug-fest - November 2007
+ *
+ * Scenario 1.1:
+ * Client authenticates by passing UsernameToken in Request. Request and Response are
protected by HTTPS.
+ * SOAP Version: 1.1
+ * Addressing: No
+ * Timestamp: Yes
+ * Username: Alice
+ * Password: abcd!1234
+ *
+ * Notes:
+ * - Username and password are not actually verified in the test implementation
+ *
+ *
+ * @author Alessio Soldano <alessio.soldano(a)jboss.com>
+ *
+ * @version $Id:$
+ * @since 26-Oct-2007
+ */
+public class UsernameTokenHTTPSTestCase extends AbstractWSSEBase
+{
+
+ public static Test suite()
+ {
+
addClientConfToClasspath("jbossws-interop-nov2007-wsseUsernameTokenHTTPS-client.jar");
+ return new JBossWSTestSetup(UsernameTokenHTTPSTestCase.class,
"jbossws-interop-nov2007-wsseUsernameTokenHTTPS.war");
+ }
+
+ public void testScenario() throws Exception
+ {
+ String text = "Hello!";
+ String result = port.ping(text);
+ assertNotNull(result);
+ assertEquals(text, result);
+ }
+
+ @Override
+ protected void scenarioSetup(IPingService port)
+ {
+ ((StubExt)port).setConfigName("Standard WSSecurity Client");
+ //TODO!! read truststore conf for SSL from the scenario configuration
+ System.setProperty("javax.net.ssl.trustStore",
"/dati/jboss-4.2/server/default/truststore_ale");
+ System.setProperty("javax.net.ssl.trustStorePassword",
"changeit");
+ System.setProperty("javax.net.ssl.trustStoreType", "jks");
+ System.setProperty("org.jboss.security.ignoreHttpsHost",
"true");
+
+ ((BindingProvider)port).getRequestContext().put(BindingProvider.USERNAME_PROPERTY,
"Alice");
+ ((BindingProvider)port).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY,
"abcd!1234");
+ }
+
+ @Override
+ protected QName getScenarioPortQName()
+ {
+ return new
QName("http://tempuri.org/",
"Username_IPingService_port");
+ }
+
+}
Property changes on:
stack/native/branches/asoldano/trunk/src/test/java/org/jboss/test/ws/interop/nov2007/wsse/UsernameTokenHTTPSTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurity_schema.xsd
===================================================================
---
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurity_schema.xsd
(rev 0)
+++
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurity_schema.xsd 2007-10-26
16:50:37 UTC (rev 4900)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema elementFormDefault="qualified"
targetNamespace="http://xmlsoap.org/Ping"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://xmlsoap.org/Ping">
+ <xs:element name="Ping" type="xs:string"/>
+ <xs:element name="PingResponse" type="xs:string"/>
+</xs:schema>
\ No newline at end of file
Property changes on:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurity_schema.xsd
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurty10.wsdl
===================================================================
---
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurty10.wsdl
(rev 0)
+++
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurty10.wsdl 2007-10-26
16:50:37 UTC (rev 4900)
@@ -0,0 +1,347 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wsdl:definitions name="PingService10"
targetNamespace="http://tempuri.org/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:i0="http://xmlsoap.org/Ping" xmlns:tns="http://tempuri.org/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:ci="http://schemas.microsoft.com/ws/2005/01/WSDL/Extensions/Co...
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-w...
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
+ <wsp:Policy wsu:Id="Username_IPingService_policy">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <wspe:Utf816FFFECharacterEncoding
xmlns:wspe="http://schemas.xmlsoap.org/ws/2004/09/policy/encoding&qu...
+ <sp:TransportBinding
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <wsp:Policy>
+ <sp:TransportToken>
+ <wsp:Policy>
+ <sp:HttpsToken
RequireClientCertificate="false"/>
+ </wsp:Policy>
+ </sp:TransportToken>
+ <sp:AlgorithmSuite>
+ <wsp:Policy>
+ <sp:Basic256/>
+ </wsp:Policy>
+ </sp:AlgorithmSuite>
+ <sp:Layout>
+ <wsp:Policy>
+ <sp:Strict/>
+ </wsp:Policy>
+ </sp:Layout>
+ <sp:IncludeTimestamp/>
+ </wsp:Policy>
+ </sp:TransportBinding>
+ <sp:SignedSupportingTokens
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <wsp:Policy>
+ <sp:UsernameToken
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolic...
+ <wsp:Policy>
+ <sp:WssUsernameToken10/>
+ </wsp:Policy>
+ </sp:UsernameToken>
+ </wsp:Policy>
+ </sp:SignedSupportingTokens>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
+ <wsp:UsingPolicy/>
+ <wsp:Policy
wsu:Id="MutualCertificate10SignEncrypt_IPingService_policy">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <sp:AsymmetricBinding
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <wsp:Policy>
+ <sp:InitiatorToken>
+ <wsp:Policy>
+ <sp:X509Token
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolic...
+ <wsp:Policy>
+ <sp:RequireDerivedKeys/>
+ <sp:WssX509V3Token10/>
+ </wsp:Policy>
+ </sp:X509Token>
+ </wsp:Policy>
+ </sp:InitiatorToken>
+ <sp:RecipientToken>
+ <wsp:Policy>
+ <sp:X509Token
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolic...
+ <wsp:Policy>
+ <sp:RequireDerivedKeys/>
+ <sp:WssX509V3Token10/>
+ </wsp:Policy>
+ </sp:X509Token>
+ </wsp:Policy>
+ </sp:RecipientToken>
+ <sp:AlgorithmSuite>
+ <wsp:Policy>
+ <sp:Basic256/>
+ </wsp:Policy>
+ </sp:AlgorithmSuite>
+ <sp:Layout>
+ <wsp:Policy>
+ <sp:Strict/>
+ </wsp:Policy>
+ </sp:Layout>
+ <sp:IncludeTimestamp/>
+ <sp:OnlySignEntireHeadersAndBody/>
+ </wsp:Policy>
+ </sp:AsymmetricBinding>
+ <sp:Wss10
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <wsp:Policy>
+ <sp:MustSupportRefKeyIdentifier/>
+ <sp:MustSupportRefIssuerSerial/>
+ </wsp:Policy>
+ </sp:Wss10>
+ <sp:Trust10
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <wsp:Policy>
+ <sp:MustSupportIssuedTokens/>
+ <sp:RequireClientEntropy/>
+ <sp:RequireServerEntropy/>
+ </wsp:Policy>
+ </sp:Trust10>
+ <wspe:Utf816FFFECharacterEncoding
xmlns:wspe="http://schemas.xmlsoap.org/ws/2004/09/policy/encoding&qu...
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
+ <wsp:Policy
wsu:Id="MutualCertificate10SignEncrypt_IPingService_Ping_Input_policy">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <sp:SignedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <sp:Body/>
+ </sp:SignedParts>
+ <sp:EncryptedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <sp:Body/>
+ </sp:EncryptedParts>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
+ <wsp:Policy
wsu:Id="MutualCertificate10SignEncrypt_IPingService_Ping_output_policy">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <sp:SignedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <sp:Body/>
+ </sp:SignedParts>
+ <sp:EncryptedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <sp:Body/>
+ </sp:EncryptedParts>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
+ <wsp:Policy
wsu:Id="MutualCertificate10SignEncryptRsa15TripleDes_IPingService_policy">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <sp:AsymmetricBinding
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <wsp:Policy>
+ <sp:InitiatorToken>
+ <wsp:Policy>
+ <sp:X509Token
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolic...
+ <wsp:Policy>
+ <sp:RequireDerivedKeys/>
+ <sp:WssX509V3Token10/>
+ </wsp:Policy>
+ </sp:X509Token>
+ </wsp:Policy>
+ </sp:InitiatorToken>
+ <sp:RecipientToken>
+ <wsp:Policy>
+ <sp:X509Token
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolic...
+ <wsp:Policy>
+ <sp:RequireDerivedKeys/>
+ <sp:WssX509V3Token10/>
+ </wsp:Policy>
+ </sp:X509Token>
+ </wsp:Policy>
+ </sp:RecipientToken>
+ <sp:AlgorithmSuite>
+ <wsp:Policy>
+ <sp:TripleDesRsa15/>
+ </wsp:Policy>
+ </sp:AlgorithmSuite>
+ <sp:Layout>
+ <wsp:Policy>
+ <sp:Strict/>
+ </wsp:Policy>
+ </sp:Layout>
+ <sp:IncludeTimestamp/>
+ <sp:OnlySignEntireHeadersAndBody/>
+ </wsp:Policy>
+ </sp:AsymmetricBinding>
+ <sp:Wss10
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <wsp:Policy>
+ <sp:MustSupportRefKeyIdentifier/>
+ <sp:MustSupportRefIssuerSerial/>
+ </wsp:Policy>
+ </sp:Wss10>
+ <sp:Trust10
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <wsp:Policy>
+ <sp:MustSupportIssuedTokens/>
+ <sp:RequireClientEntropy/>
+ <sp:RequireServerEntropy/>
+ </wsp:Policy>
+ </sp:Trust10>
+ <wspe:Utf816FFFECharacterEncoding
xmlns:wspe="http://schemas.xmlsoap.org/ws/2004/09/policy/encoding&qu...
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
+ <wsp:Policy
wsu:Id="MutualCertificate10SignEncryptRsa15TripleDes_IPingService_Ping_Input_policy">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <sp:SignedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <sp:Body/>
+ </sp:SignedParts>
+ <sp:EncryptedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <sp:Body/>
+ </sp:EncryptedParts>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
+ <wsp:Policy
wsu:Id="MutualCertificate10SignEncryptRsa15TripleDes_IPingService_Ping_output_policy">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <sp:SignedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <sp:Body/>
+ </sp:SignedParts>
+ <sp:EncryptedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <sp:Body/>
+ </sp:EncryptedParts>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
+ <wsp:Policy wsu:Id="MutualCertificate10Sign_IPingService_policy">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <sp:AsymmetricBinding
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <wsp:Policy>
+ <sp:InitiatorToken>
+ <wsp:Policy>
+ <sp:X509Token
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolic...
+ <wsp:Policy>
+ <sp:WssX509V3Token10/>
+ </wsp:Policy>
+ </sp:X509Token>
+ </wsp:Policy>
+ </sp:InitiatorToken>
+ <sp:RecipientToken>
+ <wsp:Policy>
+ <sp:X509Token
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolic...
+ <wsp:Policy>
+ <sp:WssX509V3Token10/>
+ </wsp:Policy>
+ </sp:X509Token>
+ </wsp:Policy>
+ </sp:RecipientToken>
+ <sp:AlgorithmSuite>
+ <wsp:Policy>
+ <sp:Basic256/>
+ </wsp:Policy>
+ </sp:AlgorithmSuite>
+ <sp:Layout>
+ <wsp:Policy>
+ <sp:Strict/>
+ </wsp:Policy>
+ </sp:Layout>
+ <sp:IncludeTimestamp/>
+ <sp:OnlySignEntireHeadersAndBody/>
+ </wsp:Policy>
+ </sp:AsymmetricBinding>
+ <sp:Wss10
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <wsp:Policy>
+ <sp:MustSupportRefKeyIdentifier/>
+ <sp:MustSupportRefIssuerSerial/>
+ </wsp:Policy>
+ </sp:Wss10>
+ <sp:Trust10
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <wsp:Policy>
+ <sp:MustSupportIssuedTokens/>
+ <sp:RequireClientEntropy/>
+ <sp:RequireServerEntropy/>
+ </wsp:Policy>
+ </sp:Trust10>
+ <wspe:Utf816FFFECharacterEncoding
xmlns:wspe="http://schemas.xmlsoap.org/ws/2004/09/policy/encoding&qu...
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
+ <wsp:Policy
wsu:Id="MutualCertificate10Sign_IPingService_Ping_Input_policy">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <sp:SignedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <sp:Body/>
+ </sp:SignedParts>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
+ <wsp:Policy
wsu:Id="MutualCertificate10Sign_IPingService_Ping_output_policy">
+ <wsp:ExactlyOne>
+ <wsp:All>
+ <sp:SignedParts
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"...
+ <sp:Body/>
+ </sp:SignedParts>
+ </wsp:All>
+ </wsp:ExactlyOne>
+ </wsp:Policy>
+ <wsdl:import
namespace="http://xmlsoap.org/Ping"
location="WSSecurty_portType.wsdl"/>
+ <wsdl:types/>
+ <wsdl:binding name="Username_IPingService"
type="i0:IPingService">
+ <wsp:PolicyReference URI="#Username_IPingService_policy"/>
+ <!--soap:binding
transport="http://schemas.microsoft.com/soap/https"/-->
+ <soap:binding
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="Ping">
+ <soap:operation
soapAction="http://xmlsoap.org/Ping"
style="document"/>
+ <wsdl:input name="PingRequest">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="PingResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="MutualCertificate10SignEncrypt_IPingService"
type="i0:IPingService">
+ <wsp:PolicyReference
URI="#MutualCertificate10SignEncrypt_IPingService_policy"/>
+ <soap:binding
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="Ping">
+ <soap:operation
soapAction="http://xmlsoap.org/Ping"
style="document"/>
+ <wsdl:input name="PingRequest">
+ <wsp:PolicyReference
URI="#MutualCertificate10SignEncrypt_IPingService_Ping_Input_policy"/>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="PingResponse">
+ <wsp:PolicyReference
URI="#MutualCertificate10SignEncrypt_IPingService_Ping_output_policy"/>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding
name="MutualCertificate10SignEncryptRsa15TripleDes_IPingService"
type="i0:IPingService">
+ <wsp:PolicyReference
URI="#MutualCertificate10SignEncryptRsa15TripleDes_IPingService_policy"/>
+ <soap:binding
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="Ping">
+ <soap:operation
soapAction="http://xmlsoap.org/Ping"
style="document"/>
+ <wsdl:input name="PingRequest">
+ <wsp:PolicyReference
URI="#MutualCertificate10SignEncryptRsa15TripleDes_IPingService_Ping_Input_policy"/>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="PingResponse">
+ <wsp:PolicyReference
URI="#MutualCertificate10SignEncryptRsa15TripleDes_IPingService_Ping_output_policy"/>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="MutualCertificate10Sign_IPingService"
type="i0:IPingService">
+ <wsp:PolicyReference
URI="#MutualCertificate10Sign_IPingService_policy"/>
+ <soap:binding
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="Ping">
+ <soap:operation
soapAction="http://xmlsoap.org/Ping"
style="document"/>
+ <wsdl:input name="PingRequest">
+ <wsp:PolicyReference
URI="#MutualCertificate10Sign_IPingService_Ping_Input_policy"/>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="PingResponse">
+ <wsp:PolicyReference
URI="#MutualCertificate10Sign_IPingService_Ping_output_policy"/>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="PingService10">
+ <wsdl:port name="Username_IPingService_port"
binding="tns:Username_IPingService">
+ <soap:address
location="https://kirillgdev04.redmond.corp.microsoft.com/WSSecurity...
+ </wsdl:port>
+ <wsdl:port name="MutualCertificate10SignEncrypt_IPingService_port"
binding="tns:MutualCertificate10SignEncrypt_IPingService">
+ <soap:address
location="http://kirillgdev04.redmond.corp.microsoft.com/WSSecurity/...
+ </wsdl:port>
+ <wsdl:port
name="MutualCertificate10SignEncryptRsa15TripleDes_IPingService_port"
binding="tns:MutualCertificate10SignEncryptRsa15TripleDes_IPingService">
+ <soap:address
location="http://kirillgdev04.redmond.corp.microsoft.com/WSSecurity/...
+ </wsdl:port>
+ <wsdl:port name="MutualCertificate10Sign_IPingService_port"
binding="tns:MutualCertificate10Sign_IPingService">
+ <soap:address
location="http://kirillgdev04.redmond.corp.microsoft.com/WSSecurity/...
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Property changes on:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurty10.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurty_portType.wsdl
===================================================================
---
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurty_portType.wsdl
(rev 0)
+++
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurty_portType.wsdl 2007-10-26
16:50:37 UTC (rev 4900)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wsdl:definitions
targetNamespace="http://xmlsoap.org/Ping"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://xmlsoap.org/Ping"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:ci="http://schemas.microsoft.com/ws/2005/01/WSDL/Extensions/Co...
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-w...
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
+ <wsdl:types>
+ <xsd:schema
targetNamespace="http://xmlsoap.org/Ping/Imports">
+ <xsd:import schemaLocation="WSSecurity_schema.xsd"
namespace="http://xmlsoap.org/Ping"/>
+ </xsd:schema>
+ </wsdl:types>
+ <wsdl:message name="PingRequest">
+ <wsdl:part name="Ping" element="tns:Ping"/>
+ </wsdl:message>
+ <wsdl:message name="PingResponse">
+ <wsdl:part name="PingResponse"
element="tns:PingResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="IPingService">
+ <wsdl:operation name="Ping">
+ <wsdl:input
wsa:Action="http://xmlsoap.org/Ping"
name="PingRequest" message="tns:PingRequest"/>
+ <wsdl:output
wsa:Action="http://xmlsoap.org/PingResponse"
name="PingResponse" message="tns:PingResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+</wsdl:definitions>
\ No newline at end of file
Property changes on:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/shared/WEB-INF/wsdl/WSSecurty_portType.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/META-INF/jboss-wsse-client.xml
===================================================================
---
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/META-INF/jboss-wsse-client.xml
(rev 0)
+++
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/META-INF/jboss-wsse-client.xml 2007-10-26
16:50:37 UTC (rev 4900)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-ws-security
xmlns="http://www.jboss.com/ws-security/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.jboss.com/ws-security/config
http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
+ <config>
+ <username/>
+ <timestamp ttl="300"/>
+ </config>
+</jboss-ws-security>
\ No newline at end of file
Property changes on:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/META-INF/jboss-wsse-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/META-INF/scenarios.xml
===================================================================
---
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/META-INF/scenarios.xml
(rev 0)
+++
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/META-INF/scenarios.xml 2007-10-26
16:50:37 UTC (rev 4900)
@@ -0,0 +1,8 @@
+<client-scenarios>
+ <scenario name="default" description="Testing local
endpoint">
+
<target-endpoint>https://localhost:8443/nov2007/wsseUsernameTokenHTTPS/endpoint</target-endpoint>
+ </scenario>
+ <scenario name="default-munich" description="Testing Munich
endpoint">
+
<target-endpoint>https://jbossws.demo.jboss.com:8443/wsse10Sign/endpoint</target-endpoint>
+ </scenario>
+</client-scenarios>
Property changes on:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/META-INF/scenarios.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/jboss-web.xml
===================================================================
---
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/jboss-web.xml
(rev 0)
+++
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/jboss-web.xml 2007-10-26
16:50:37 UTC (rev 4900)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <context-root>/nov2007/wsseUsernameTokenHTTPS</context-root>
+</jboss-web>
\ No newline at end of file
Property changes on:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/jboss-web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/jboss-wsse-server.xml
===================================================================
---
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/jboss-wsse-server.xml
(rev 0)
+++
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/jboss-wsse-server.xml 2007-10-26
16:50:37 UTC (rev 4900)
@@ -0,0 +1,8 @@
+<jboss-ws-security
xmlns="http://www.jboss.com/ws-security/config"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.jboss.com/ws-security/config
+
http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
+ <config>
+ <timestamp ttl="300"/>
+ </config>
+</jboss-ws-security>
\ No newline at end of file
Property changes on:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/jboss-wsse-server.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/web.xml
===================================================================
---
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/web.xml
(rev 0)
+++
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/web.xml 2007-10-26
16:50:37 UTC (rev 4900)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <display-name>wsseUsernameTokenHTTPSService App</display-name>
+
+ <servlet>
+ <servlet-name>UsernameTokenHTTPSEndpoint</servlet-name>
+
<servlet-class>org.jboss.test.ws.interop.nov2007.wsse.TestService</servlet-class>
+ <load-on-startup>0</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>UsernameTokenHTTPSEndpoint</servlet-name>
+ <url-pattern>/endpoint</url-pattern>
+ </servlet-mapping>
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>UsernameTokenHTTPSEndpoint</web-resource-name>
+ <url-pattern>/endpoint</url-pattern>
+ <http-method>POST</http-method>
+ </web-resource-collection>
+ <user-data-constraint>
+ <transport-guarantee>CONFIDENTIAL</transport-guarantee>
+ </user-data-constraint>
+ </security-constraint>
+
+</web-app>
\ No newline at end of file
Property changes on:
stack/native/branches/asoldano/trunk/src/test/resources/interop/nov2007/wsse/usernameTokenHTTPS/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF