[jboss-svn-commits] JBossWS SVN: r825 - in branches/jbossws-1.0/src/test: ant java/org/jboss/test/ws/interop/microsoft/security/wsse10 resources/interop/microsoft/security/wsse10/META-INF resources/interop/microsoft/security/wsse10/WEB-INF resources/interop/microsoft/security/wsse10Encrypt/WEB-INF
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Aug 24 05:36:04 EDT 2006
Author: heiko.braun at jboss.com
Date: 2006-08-24 05:35:52 -0400 (Thu, 24 Aug 2006)
New Revision: 825
Added:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/TestService.java
branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/jboss-web.xml
branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/jboss-wsse-server.xml
branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/web.xml
branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/webservices.xml
Modified:
branches/jbossws-1.0/src/test/ant/build-interop-jars.xml
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/SignTestCase.java
branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/META-INF/scenarios.xml
branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10Encrypt/WEB-INF/webservices.xml
Log:
wsse 10 sign test case endpoint
Modified: branches/jbossws-1.0/src/test/ant/build-interop-jars.xml
===================================================================
--- branches/jbossws-1.0/src/test/ant/build-interop-jars.xml 2006-08-24 09:15:38 UTC (rev 824)
+++ branches/jbossws-1.0/src/test/ant/build-interop-jars.xml 2006-08-24 09:35:52 UTC (rev 825)
@@ -280,7 +280,7 @@
</war>
- <!-- wsse10 client -->
+ <!-- wsse10 sign client -->
<jar jarfile="${build.test.dir}/libs/jbossws-interop-wsse10-client.jar">
<fileset dir="${build.test.dir}/classes">
<include name="org/jboss/test/ws/interop/microsoft/security/**/*.class"/>
@@ -298,6 +298,29 @@
</metainf>
</jar>
+ <!-- wsse10Sign.war -->
+ <war warfile="${build.test.dir}/libs/jbossws-interop-wsse10Sign.war"
+ webxml="${test.resources.dir}/interop/microsoft/security/wsse10/WEB-INF/web.xml">
+ <classes dir="${build.test.dir}/classes">
+ <include name="org/jboss/test/ws/interop/microsoft/security/wsse10/**/*.class"/>
+ <include name="org/jboss/test/ws/interop/microsoft/*.class"/>
+ </classes>
+ <webinf dir="${test.resources.dir}/interop/microsoft/security/wsse10/WEB-INF">
+ <include name="jaxrpc-mapping.xml"/>
+ <include name="webservices.xml"/>
+ <include name="wsdl/**.*"/>
+ <include name="jboss-web.xml"/>
+ <include name="jboss-wsse-server.xml"/>
+ </webinf>
+ <webinf dir="${test.resources.dir}/interop/microsoft/security/wsse10Shared/META-INF">
+ <include name="alice.jks"/>
+ <include name="wsse10.truststore"/>
+ </webinf>
+ <fileset dir="${test.resources.dir}/interop/microsoft/security/wsse10">
+ <include name="*.*"/>
+ </fileset>
+ </war>
+
<!-- wsse10Encrypt client -->
<jar jarfile="${build.test.dir}/libs/jbossws-interop-wsse10Encrypt-client.jar">
<fileset dir="${build.test.dir}/classes">
Modified: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/SignTestCase.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/SignTestCase.java 2006-08-24 09:15:38 UTC (rev 824)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/SignTestCase.java 2006-08-24 09:35:52 UTC (rev 825)
@@ -1,3 +1,24 @@
+/*
+* 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.microsoft.security.wsse10;
import junit.framework.Test;
Added: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/TestService.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/TestService.java 2006-08-24 09:15:38 UTC (rev 824)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/TestService.java 2006-08-24 09:35:52 UTC (rev 825)
@@ -0,0 +1,39 @@
+/*
+* 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.microsoft.security.wsse10;
+
+import java.rmi.RemoteException;
+
+/**
+ * @author Heiko Braun <heiko.braun at jboss.com>
+ * @version $Id$
+ * @since Aug 24, 2006
+ */
+public class TestService implements IPingServiceSign {
+ public PingResponseBody ping(Ping ping) throws RemoteException {
+ return new PingResponseBody(ping.getScenario(), ping.getOrigin(), ping.getText());
+ }
+
+ public EchoResponse echo(Echo parameters) throws RemoteException {
+ return new EchoResponse(parameters.getRequest());
+ }
+}
Property changes on: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/TestService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/META-INF/scenarios.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/META-INF/scenarios.xml 2006-08-24 09:15:38 UTC (rev 824)
+++ branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/META-INF/scenarios.xml 2006-08-24 09:35:52 UTC (rev 825)
@@ -1,6 +1,6 @@
<client-scenarios>
<scenario name="default" description="Testing local WSA endpoints">
- <target-endpoint>http://localhost:8080/wsa10/wsaTestService</target-endpoint>
+ <target-endpoint>http://localhost:8080/wsse10Sign/endpoint</target-endpoint>
</scenario>
<scenario name="msft-public" decsription="Testing MSFT public interop endpoints">
<target-endpoint>http://131.107.72.15/Security_WsSecurity_Service_Indigo/WsSecurity10Sign.svc/MutualCertificate10Sign</target-endpoint>
Added: branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/jboss-web.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/jboss-web.xml 2006-08-24 09:15:38 UTC (rev 824)
+++ branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/jboss-web.xml 2006-08-24 09:35:52 UTC (rev 825)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-web>
+ <context-root>/wsse10Sign</context-root>
+ <depends>jboss.ws:service=WebServiceDeployerJSE</depends>
+</jboss-web>
\ No newline at end of file
Property changes on: branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/jboss-web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/jboss-wsse-server.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/jboss-wsse-server.xml 2006-08-24 09:15:38 UTC (rev 824)
+++ branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/jboss-wsse-server.xml 2006-08-24 09:35:52 UTC (rev 825)
@@ -0,0 +1,17 @@
+<jboss-ws-security xmlns="http://www.jboss.com/ws-security/config"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.com/ws-security/config
+ http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
+ <key-store-file>WEB-INF/alice.jks</key-store-file>
+ <key-store-password>password</key-store-password>
+ <trust-store-file>WEB-INF/wsse10.truststore</trust-store-file>
+ <trust-store-password>password</trust-store-password>
+
+ <config>
+ <sign type="x509v3" alias="1"/>
+ <requires>
+ <signature/>
+ </requires>
+ </config>
+
+</jboss-ws-security>
Property changes on: branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/jboss-wsse-server.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/web.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/web.xml 2006-08-24 09:15:38 UTC (rev 824)
+++ branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/web.xml 2006-08-24 09:35:52 UTC (rev 825)
@@ -0,0 +1,23 @@
+<?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>wsse10SignTestService App</display-name>
+
+ <context-param>
+ <param-name>jbossws-config-name</param-name>
+ <param-value>Standard Secure Endpoint</param-value>
+ </context-param>
+
+ <servlet>
+ <servlet-name>ServiceServlet</servlet-name>
+ <servlet-class>org.jboss.test.ws.interop.microsoft.security.wsse10.TestService</servlet-class>
+ <load-on-startup>0</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>ServiceServlet</servlet-name>
+ <url-pattern>/endpoint</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
Property changes on: branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/webservices.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/webservices.xml 2006-08-24 09:15:38 UTC (rev 824)
+++ branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/webservices.xml 2006-08-24 09:35:52 UTC (rev 825)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<webservices xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsdl="http://tempuri.org/"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+ http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
+ version="1.1">
+
+ <webservice-description>
+
+ <webservice-description-name>wsse10SignTestService</webservice-description-name>
+ <wsdl-file>WEB-INF/wsdl/WsSecurity10Sign.wsdl</wsdl-file>
+ <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+
+ <port-component>
+ <port-component-name>signPort</port-component-name>
+ <wsdl-port>wsdl:MutualCertificate10Sign_IPingServiceSign</wsdl-port>
+ <service-endpoint-interface>org.jboss.test.ws.interop.microsoft.security.wsse10.IPingServiceSign</service-endpoint-interface>
+ <service-impl-bean>
+ <servlet-link>ServiceServlet</servlet-link>
+ </service-impl-bean>
+ </port-component>
+
+ </webservice-description>
+</webservices>
\ No newline at end of file
Property changes on: branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10/WEB-INF/webservices.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10Encrypt/WEB-INF/webservices.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10Encrypt/WEB-INF/webservices.xml 2006-08-24 09:15:38 UTC (rev 824)
+++ branches/jbossws-1.0/src/test/resources/interop/microsoft/security/wsse10Encrypt/WEB-INF/webservices.xml 2006-08-24 09:35:52 UTC (rev 825)
@@ -13,7 +13,7 @@
<jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
<port-component>
- <port-component-name>wsaTestPort</port-component-name>
+ <port-component-name>encryptPort</port-component-name>
<wsdl-port>wsdl:MutualCertificate10SignEncrypt_IPingService</wsdl-port>
<service-endpoint-interface>org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt.IPingService</service-endpoint-interface>
<service-impl-bean>
More information about the jboss-svn-commits
mailing list