[jboss-svn-commits] JBossWS SVN: r996 - in trunk/src/test/java/org/jboss/test/ws/interop/microsoft: . security security/wsse10 security/wsse10Encrypt

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Sep 19 06:26:52 EDT 2006


Author: heiko.braun at jboss.com
Date: 2006-09-19 06:26:42 -0400 (Tue, 19 Sep 2006)
New Revision: 996

Added:
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/Echo.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/EchoResponse.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/IPingServiceSign.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/Ping.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/PingResponseBody.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/PingService10Sign.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/SignTestCase.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/TestService.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/Echo.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EchoResponse.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EncryptTestCase.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/IPingService.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingResponseType.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingService10.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingType.java
   trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/TestService.java
Log:
Updated interop test clients and endpoints

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/Echo.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/Echo.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/Echo.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10;
+
+
+public class Echo {
+    protected java.lang.String request;
+    
+    public Echo() {
+    }
+    
+    public Echo(java.lang.String request) {
+        this.request = request;
+    }
+    
+    public java.lang.String getRequest() {
+        return request;
+    }
+    
+    public void setRequest(java.lang.String request) {
+        this.request = request;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/Echo.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/EchoResponse.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/EchoResponse.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/EchoResponse.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10;
+
+
+public class EchoResponse {
+    protected java.lang.String echoResult;
+    
+    public EchoResponse() {
+    }
+    
+    public EchoResponse(java.lang.String echoResult) {
+        this.echoResult = echoResult;
+    }
+    
+    public java.lang.String getEchoResult() {
+        return echoResult;
+    }
+    
+    public void setEchoResult(java.lang.String echoResult) {
+        this.echoResult = echoResult;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/EchoResponse.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/IPingServiceSign.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/IPingServiceSign.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/IPingServiceSign.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,13 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10;
+
+public interface IPingServiceSign extends java.rmi.Remote {
+    public org.jboss.test.ws.interop.microsoft.security.wsse10.PingResponseBody ping(org.jboss.test.ws.interop.microsoft.security.wsse10.Ping ping) throws 
+         java.rmi.RemoteException;
+    public org.jboss.test.ws.interop.microsoft.security.wsse10.EchoResponse echo(org.jboss.test.ws.interop.microsoft.security.wsse10.Echo parameters) throws 
+         java.rmi.RemoteException;
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/IPingServiceSign.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/Ping.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/Ping.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/Ping.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,46 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10;
+
+
+public class Ping {
+    protected java.lang.String scenario;
+    protected java.lang.String origin;
+    protected java.lang.String text;
+    
+    public Ping() {
+    }
+    
+    public Ping(java.lang.String scenario, java.lang.String origin, java.lang.String text) {
+        this.scenario = scenario;
+        this.origin = origin;
+        this.text = text;
+    }
+    
+    public java.lang.String getScenario() {
+        return scenario;
+    }
+    
+    public void setScenario(java.lang.String scenario) {
+        this.scenario = scenario;
+    }
+    
+    public java.lang.String getOrigin() {
+        return origin;
+    }
+    
+    public void setOrigin(java.lang.String origin) {
+        this.origin = origin;
+    }
+    
+    public java.lang.String getText() {
+        return text;
+    }
+    
+    public void setText(java.lang.String text) {
+        this.text = text;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/Ping.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/PingResponseBody.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/PingResponseBody.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/PingResponseBody.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,46 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10;
+
+
+public class PingResponseBody {
+    protected java.lang.String scenario;
+    protected java.lang.String origin;
+    protected java.lang.String text;
+    
+    public PingResponseBody() {
+    }
+    
+    public PingResponseBody(java.lang.String scenario, java.lang.String origin, java.lang.String text) {
+        this.scenario = scenario;
+        this.origin = origin;
+        this.text = text;
+    }
+    
+    public java.lang.String getScenario() {
+        return scenario;
+    }
+    
+    public void setScenario(java.lang.String scenario) {
+        this.scenario = scenario;
+    }
+    
+    public java.lang.String getOrigin() {
+        return origin;
+    }
+    
+    public void setOrigin(java.lang.String origin) {
+        this.origin = origin;
+    }
+    
+    public java.lang.String getText() {
+        return text;
+    }
+    
+    public void setText(java.lang.String text) {
+        this.text = text;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/PingResponseBody.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/PingService10Sign.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/PingService10Sign.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/PingService10Sign.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,12 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10;
+
+import javax.xml.rpc.*;
+
+public interface PingService10Sign extends javax.xml.rpc.Service {
+    public org.jboss.test.ws.interop.microsoft.security.wsse10.IPingServiceSign getMutualCertificate10Sign_IPingServiceSign() throws ServiceException;
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/PingService10Sign.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/SignTestCase.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/SignTestCase.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/SignTestCase.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,94 @@
+/*
+* 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;
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.JBossWSTestSetup;
+import org.jboss.test.ws.interop.microsoft.ClientScenario;
+import org.jboss.test.ws.interop.microsoft.InteropConfigFactory;
+
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
+/**
+ * @author Heiko Braun, <heiko at openj.net>
+ * @since 07-Mar-2006
+ */
+public class SignTestCase extends JBossWSTest  {
+
+   IPingServiceSign port;
+   PingService10Sign service;
+
+   public static Test suite()
+   {
+      return JBossWSTestSetup.newTestSetup(SignTestCase.class, "jbossws-interop-wsse10-client.jar");
+   }
+
+   protected void setUp() throws Exception
+   {
+      super.setUp();
+
+      if (port == null)
+      {
+         InitialContext iniCtx = getInitialContext();
+         Service signService = (Service)iniCtx.lookup("java:comp/env/service/interop/IPingServiceSign");
+         port = (IPingServiceSign)signService.getPort(IPingServiceSign.class);
+         configureClient();
+      }
+
+      System.setProperty("org.jboss.ws.wsse.keyStore", "resources/interop/microsoft/security/wsse10Shared/META-INF/alice.jks");
+      System.setProperty("org.jboss.ws.wsse.trustStore", "resources/interop/microsoft/security/wsse10Shared/META-INF/wsse10.truststore");
+      System.setProperty("org.jboss.ws.wsse.keyStorePassword", "password");
+      System.setProperty("org.jboss.ws.wsse.trustStorePassword", "password");
+      System.setProperty("org.jboss.ws.wsse.keyStoreType", "jks");
+      System.setProperty("org.jboss.ws.wsse.trustStoreType", "jks");
+   }
+
+   private void configureClient() {
+
+      InteropConfigFactory factory = InteropConfigFactory.newInstance();
+      ClientScenario scenario = factory.createClientScenario(System.getProperty("client.scenario"));
+      if(scenario!=null)
+      {
+         log.info("Using scenario: " + scenario);
+         ((Stub)port)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, scenario.getTargetEndpoint().toString());
+      }
+      else
+      {
+         throw new IllegalStateException("Failed to load client scenario");
+      }
+   }
+
+   // Scenario 3.2. X509 Mutual Authentication, Sign Only
+   public void testSignOnly() throws Exception{
+
+      PingResponseBody pingResponse = port.ping(
+            new Ping("SignOnly", "JBossWS", "Hello World")
+      );
+      assertNotNull(pingResponse);
+
+      EchoResponse echoResponse = port.echo( new Echo("JBossWS Sign Only"));
+      assertNotNull(echoResponse);
+   }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/SignTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/TestService.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/TestService.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/TestService.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -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: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10/TestService.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/Echo.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/Echo.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/Echo.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+
+
+public class Echo {
+    protected java.lang.String request;
+    
+    public Echo() {
+    }
+    
+    public Echo(java.lang.String request) {
+        this.request = request;
+    }
+    
+    public java.lang.String getRequest() {
+        return request;
+    }
+    
+    public void setRequest(java.lang.String request) {
+        this.request = request;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/Echo.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EchoResponse.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EchoResponse.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EchoResponse.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+
+
+public class EchoResponse {
+    protected java.lang.String echoResult;
+    
+    public EchoResponse() {
+    }
+        
+    public EchoResponse(java.lang.String echoResult) {
+        this.echoResult = echoResult;
+    }
+    
+    public java.lang.String getEchoResult() {
+        return echoResult;
+    }
+    
+    public void setEchoResult(java.lang.String echoResult) {
+        this.echoResult = echoResult;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EchoResponse.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EncryptTestCase.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EncryptTestCase.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EncryptTestCase.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,91 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+
+import junit.framework.Test;
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.JBossWSTestSetup;
+import org.jboss.test.ws.interop.microsoft.ClientScenario;
+import org.jboss.test.ws.interop.microsoft.InteropConfigFactory;
+
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
+/**
+ * @author Heiko Braun <heiko.braun at jboss.com>
+ * @version $Id$
+ * @since Aug 23, 2006
+ */
+public class EncryptTestCase extends JBossWSTest  {
+
+   IPingService port;
+
+   public static Test suite()
+   {
+      return JBossWSTestSetup.newTestSetup(EncryptTestCase.class, "jbossws-interop-wsse10Encrypt-client.jar");
+   }
+
+   protected void setUp() throws Exception
+   {
+      super.setUp();
+
+      if (port == null)
+      {
+         InitialContext iniCtx = getInitialContext();
+         Service signService = (Service)iniCtx.lookup("java:comp/env/service/interop/IPingServiceSignEncrypt");
+         port = (IPingService)signService.getPort(IPingService.class);
+         configureClient();
+      }
+
+      System.setProperty("org.jboss.ws.wsse.keyStore", "resources/interop/microsoft/security/wsse10Shared/META-INF/alice.jks");
+      System.setProperty("org.jboss.ws.wsse.trustStore", "resources/interop/microsoft/security/wsse10Shared/META-INF/wsse10.truststore");
+      System.setProperty("org.jboss.ws.wsse.keyStorePassword", "password");
+      System.setProperty("org.jboss.ws.wsse.trustStorePassword", "password");
+      System.setProperty("org.jboss.ws.wsse.keyStoreType", "jks");
+      System.setProperty("org.jboss.ws.wsse.trustStoreType", "jks");
+   }
+
+   private void configureClient() {
+
+      InteropConfigFactory factory = InteropConfigFactory.newInstance();
+      ClientScenario scenario = factory.createClientScenario(System.getProperty("client.scenario"));
+      if(scenario!=null)
+      {
+         log.info("Using scenario: " + scenario);
+         ((Stub)port)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, scenario.getTargetEndpoint().toString());
+      }
+      else
+      {
+         throw new IllegalStateException("Failed to load client scenario");
+      }
+   }
+
+   // Scenario 3.3. X509 Mutual Authentication, Sign Then Encrypt
+   public void testSignEncrypt() throws Exception
+   {
+      PingResponseType pingResponse = port.ping(
+          new PingType("signEncrypt", "JBossWS", "Hello World")
+      );
+      assertNotNull(pingResponse);
+   }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EncryptTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/IPingService.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/IPingService.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/IPingService.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,13 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+
+public interface IPingService extends java.rmi.Remote {
+    public org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt.PingResponseType ping(org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt.PingType parameters) throws 
+         java.rmi.RemoteException;
+    public org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt.EchoResponse echo(org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt.Echo parameters) throws 
+         java.rmi.RemoteException;
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/IPingService.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingResponseType.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingResponseType.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingResponseType.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,46 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+
+
+public class PingResponseType {
+    protected java.lang.String scenario;
+    protected java.lang.String origin;
+    protected java.lang.String text;
+    
+    public PingResponseType() {
+    }
+    
+    public PingResponseType(java.lang.String scenario, java.lang.String origin, java.lang.String text) {
+        this.scenario = scenario;
+        this.origin = origin;
+        this.text = text;
+    }
+    
+    public java.lang.String getScenario() {
+        return scenario;
+    }
+    
+    public void setScenario(java.lang.String scenario) {
+        this.scenario = scenario;
+    }
+    
+    public java.lang.String getOrigin() {
+        return origin;
+    }
+    
+    public void setOrigin(java.lang.String origin) {
+        this.origin = origin;
+    }
+    
+    public java.lang.String getText() {
+        return text;
+    }
+    
+    public void setText(java.lang.String text) {
+        this.text = text;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingResponseType.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingService10.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingService10.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingService10.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,12 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+
+import javax.xml.rpc.*;
+
+public interface PingService10 extends javax.xml.rpc.Service {
+    public org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt.IPingService getMutualCertificate10SignEncrypt_IPingService() throws ServiceException;
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingService10.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingType.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingType.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingType.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,46 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+
+
+public class PingType {
+    protected java.lang.String scenario;
+    protected java.lang.String origin;
+    protected java.lang.String text;
+    
+    public PingType() {
+    }
+    
+    public PingType(java.lang.String scenario, java.lang.String origin, java.lang.String text) {
+        this.scenario = scenario;
+        this.origin = origin;
+        this.text = text;
+    }
+    
+    public java.lang.String getScenario() {
+        return scenario;
+    }
+    
+    public void setScenario(java.lang.String scenario) {
+        this.scenario = scenario;
+    }
+    
+    public java.lang.String getOrigin() {
+        return origin;
+    }
+    
+    public void setOrigin(java.lang.String origin) {
+        this.origin = origin;
+    }
+    
+    public java.lang.String getText() {
+        return text;
+    }
+    
+    public void setText(java.lang.String text) {
+        this.text = text;
+    }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingType.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/TestService.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/TestService.java	2006-09-19 10:25:51 UTC (rev 995)
+++ trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/TestService.java	2006-09-19 10:26:42 UTC (rev 996)
@@ -0,0 +1,41 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+
+import java.rmi.RemoteException;
+
+/**
+ * Scenario 3.3. X509 Mutual Authentication, Sign Then Encrypt
+ * 
+ * @author Heiko Braun <heiko.braun at jboss.com>
+ * @version $Id$
+ * @since Aug 23, 2006
+ */
+public class TestService implements IPingService{
+   public PingResponseType ping(PingType parameters) throws RemoteException {
+      return new PingResponseType(parameters.getScenario(), parameters.getOrigin(), parameters.getText());
+   }
+
+   public EchoResponse echo(Echo parameters) throws RemoteException {
+      return new EchoResponse(parameters.getRequest());
+   }
+}


Property changes on: trunk/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/TestService.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF




More information about the jboss-svn-commits mailing list