JBossWS SVN: r7741 - stack/native/branches/jbossws-native-2.0.1.SP2_CP01_JBPAPP-928/src/main/java/org/jboss/wsf/stack/jbws.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-06-26 10:32:23 -0400 (Thu, 26 Jun 2008)
New Revision: 7741
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP01_JBPAPP-928/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java
Log:
[JBPAPP-928] Log IOException dropped by RequestHandlerImpl.
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP01_JBPAPP-928/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP01_JBPAPP-928/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java 2008-06-26 14:29:52 UTC (rev 7740)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP01_JBPAPP-928/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java 2008-06-26 14:32:23 UTC (rev 7741)
@@ -155,7 +155,7 @@
}
catch (IOException ioex)
{
- log.error("Cannot close output stream");
+ log.error("Cannot close output stream", ioex);
}
}
}
@@ -203,7 +203,7 @@
}
catch (IOException ioex)
{
- log.error("Cannot close output stream");
+ log.error("Cannot close output stream", ioex);
}
}
}
15 years, 10 months
JBossWS SVN: r7740 - stack/native/branches/jbossws-native-2.0.1.SP2_CP01_JBPAPP-928.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-06-26 10:29:52 -0400 (Thu, 26 Jun 2008)
New Revision: 7740
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP01_JBPAPP-928/version.properties
Log:
[JBPAPP-928] Set version.
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP01_JBPAPP-928/version.properties
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP01_JBPAPP-928/version.properties 2008-06-26 14:23:02 UTC (rev 7739)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP01_JBPAPP-928/version.properties 2008-06-26 14:29:52 UTC (rev 7740)
@@ -5,8 +5,8 @@
specification.vendor=JBoss (http://www.jboss.org)
specification.version=jbossws-2.0
-version.id=2.0.1.SP2_CP01
-repository.id=2.0.1.SP2_CP01
+version.id=2.0.1.SP2_CP01_JBPAPP-928
+repository.id=2.0.1.SP2_CP01_JBPAPP-928
implementation.title=JBoss Web Services - Native
implementation.url=http://www.jboss.org/products/jbossws
15 years, 10 months
JBossWS SVN: r7739 - stack/native/branches.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-06-26 10:23:02 -0400 (Thu, 26 Jun 2008)
New Revision: 7739
Added:
stack/native/branches/jbossws-native-2.0.1.SP2_CP01_JBPAPP-928/
Log:
[JBPAPP-928] Branch.
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP01_JBPAPP-928 (from rev 7738, stack/native/tags/jbossws-native-2.0.1.SP2_CP01)
15 years, 10 months
JBossWS SVN: r7738 - in container/jboss50/trunk/src/main: resources/jbossws-jboss50-container.jar/META-INF and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2008-06-26 07:42:44 -0400 (Thu, 26 Jun 2008)
New Revision: 7738
Modified:
container/jboss50/trunk/src/main/java/org/jboss/wsf/container/jboss50/transport/EndpointAPIHttpTransportManager.java
container/jboss50/trunk/src/main/resources/jbossws-jboss50-container.jar/META-INF/jbossws-container-beans.xml
Log:
[JBAS-5257] refactoring
Modified: container/jboss50/trunk/src/main/java/org/jboss/wsf/container/jboss50/transport/EndpointAPIHttpTransportManager.java
===================================================================
--- container/jboss50/trunk/src/main/java/org/jboss/wsf/container/jboss50/transport/EndpointAPIHttpTransportManager.java 2008-06-25 15:55:22 UTC (rev 7737)
+++ container/jboss50/trunk/src/main/java/org/jboss/wsf/container/jboss50/transport/EndpointAPIHttpTransportManager.java 2008-06-26 11:42:44 UTC (rev 7738)
@@ -37,7 +37,11 @@
import org.jboss.wsf.spi.deployment.WSFDeploymentException;
import org.jboss.wsf.spi.management.ServerConfig;
import org.jboss.wsf.spi.management.ServerConfigFactory;
-import org.jboss.wsf.spi.transport.*;
+import org.jboss.wsf.spi.transport.TransportManager;
+import org.jboss.wsf.spi.transport.ListenerRef;
+import org.jboss.wsf.spi.transport.TransportSpec;
+import org.jboss.wsf.spi.transport.HttpSpec;
+import org.jboss.wsf.spi.transport.HttpListenerRef;
import javax.xml.ws.WebServiceException;
import java.net.URI;
@@ -52,7 +56,6 @@
{
private static Logger log = Logger.getLogger(EndpointAPIHttpTransportManager.class);
private static final String PROCESSED_BY_DEPLOYMENT_FACTORY = "processed.by.deployment.factory";
- private WebAppDeploymentFactory deploymentFactory;
private WebAppGenerator generator;
private DeploymentFactory factory = new DeploymentFactory();
@@ -74,15 +77,16 @@
// Create JBossWebMetaData and attach it to the DeploymentUnit
Deployment topLevelDeployment = endpoint.getService().getDeployment();
- // TODO: JBWS-2188
+ // Pass on to the main deployer
Boolean alreadyDeployed = (Boolean)topLevelDeployment.getProperty(PROCESSED_BY_DEPLOYMENT_FACTORY);
if ((alreadyDeployed == null) || (false == alreadyDeployed))
{
- JBossWebMetaData jbwMetaData = generator.create(topLevelDeployment);
- deploymentFactory.create(topLevelDeployment, jbwMetaData);
+ generator.create(topLevelDeployment);
+ deploy(topLevelDeployment);
topLevelDeployment.setProperty(PROCESSED_BY_DEPLOYMENT_FACTORY, Boolean.TRUE);
}
+
// Server config
SPIProvider provider = SPIProviderResolver.getInstance().getProvider();
ServerConfigFactory spi = provider.getSPI(ServerConfigFactory.class);
@@ -103,9 +107,6 @@
throw new RuntimeException("Failed to create ListenerRef", e);
}
- // Pass on to the main deployer
- deploy(topLevelDeployment);
-
// Map listenerRef for destroy phase
deploymentRegistry.put( listenerRef.getUUID(), topLevelDeployment );
@@ -129,25 +130,12 @@
{
log.error(e.getMessage(), e);
}
- try
- {
- deploymentFactory.destroy(dep);
- }
- catch (Exception e)
- {
- log.error(e.getMessage(), e);
- }
dep.removeProperty(PROCESSED_BY_DEPLOYMENT_FACTORY);
}
}
deploymentRegistry.remove(ref.getUUID());
}
- public void setDeploymentFactory(WebAppDeploymentFactory deploymentFactory)
- {
- this.deploymentFactory = deploymentFactory;
- }
-
public void setGenerator(WebAppGenerator generator)
{
this.generator = generator;
@@ -173,7 +161,7 @@
{
webMetaDataModifier.modifyMetaData(dep);
- AbstractDeployment deployment = createSimpleDeployment(dep.getSimpleName());
+ final AbstractDeployment deployment = createSimpleDeployment(dep.getService().getContextRoot());
MutableAttachments mutableAttachments = (MutableAttachments)deployment.getPredeterminedManagedObjects();
mutableAttachments.addAttachment(HttpSpec.PROPERTY_GENERATED_WEBAPP, Boolean.TRUE);
mutableAttachments.addAttachment(ClassLoaderFactory.class, new ContextClassLoaderFactory());
@@ -190,7 +178,7 @@
{
try
{
- AbstractDeployment deployment = createSimpleDeployment(dep.getSimpleName());
+ AbstractDeployment deployment = createSimpleDeployment(dep.getService().getContextRoot());
mainDeployer.undeploy(deployment);
}
catch (Exception ex)
Modified: container/jboss50/trunk/src/main/resources/jbossws-jboss50-container.jar/META-INF/jbossws-container-beans.xml
===================================================================
--- container/jboss50/trunk/src/main/resources/jbossws-jboss50-container.jar/META-INF/jbossws-container-beans.xml 2008-06-25 15:55:22 UTC (rev 7737)
+++ container/jboss50/trunk/src/main/resources/jbossws-jboss50-container.jar/META-INF/jbossws-container-beans.xml 2008-06-26 11:42:44 UTC (rev 7738)
@@ -89,7 +89,6 @@
<bean name="EndpointAPIHttpTransport" class="org.jboss.wsf.container.jboss50.transport.EndpointAPIHttpTransportManager">
<property name="generator"><inject bean="WSWebAppGenerator"/></property>
- <property name="deploymentFactory"><inject bean="WSWebAppDeploymentFactory"/></property>
<property name="mainDeployer"><inject bean="MainDeployer"/></property>
<property name="webMetaDataModifier"><inject bean="WSWebMetaDataModifier"/></property>
</bean>
15 years, 10 months
JBossWS SVN: r7737 - in legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924: jbossws-core/src/java/org/jboss/ws/extensions/security and 12 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-06-25 11:55:22 -0400 (Wed, 25 Jun 2008)
New Revision: 7737
Added:
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/metadata/wsse/TimestampVerification.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316CallTestCase.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316ConfigurationTestCase.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpoint.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpointImpl.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestSecurityHandler.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/application-client.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/jboss-client.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/jaxrpc-mapping.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/jboss-wsse-server.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/web.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/webservices.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/wsdl/
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/wsdl/TestService.wsdl
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-empty-tv.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-full-tv.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-no-tv.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/wstools-config.xml
Removed:
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316CallTestCase.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316ConfigurationTestCase.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpoint.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpointImpl.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestSecurityHandler.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/application-client.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/jboss-client.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/jaxrpc-mapping.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/jboss-wsse-server.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/web.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/webservices.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/wsdl/
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/wsdl/TestService.wsdl
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-empty-tv.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-full-tv.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-no-tv.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/wstools-config.xml
Modified:
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/build/version.properties
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/extensions/security/SecurityDecoder.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/metadata/wsse/WSSecurityConfiguration.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/metadata/wsse/WSSecurityOMFactory.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/resources/schema/jboss-ws-security_1_0.xsd
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/ant-import/build-jars-jaxrpc.xml
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/wsse/MicrosoftInteropTestCase.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/wsse/RoundTripTestCase.java
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/wsse/SunInteropTestCase.java
Log:
[JBPAPP-924] Add support for a configurable time tolerance value that handles clock skew.
Modified: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/build/version.properties
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/build/version.properties 2008-06-25 14:27:02 UTC (rev 7736)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/build/version.properties 2008-06-25 15:55:22 UTC (rev 7737)
@@ -5,8 +5,8 @@
specification.vendor=JBoss (http://www.jboss.org)
specification.version=jbossws-1.2
-version.id=1.2.1.GA_CP02
-repository.id=1.2.1.GA_CP02
+version.id=1.2.1.GA_CP02_JBPAPP-924
+repository.id=1.2.1.GA_CP02_JBPAPP-924
implementation.title=JBoss Web Services (JBossWS)
implementation.url=http://www.jboss.org/products/jbossws
Modified: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/extensions/security/SecurityDecoder.java
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/extensions/security/SecurityDecoder.java 2008-06-25 14:27:02 UTC (rev 7736)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/extensions/security/SecurityDecoder.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -34,6 +34,7 @@
import org.jboss.ws.extensions.security.element.Timestamp;
import org.jboss.ws.extensions.security.element.Token;
import org.jboss.ws.extensions.security.element.UsernameToken;
+import org.jboss.ws.metadata.wsse.TimestampVerification;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
@@ -52,15 +53,19 @@
private Document message;
private SecurityStore store;
+
+ private TimestampVerification timestampVerification;
private HashSet<String> signedIds = new HashSet<String>();
private HashSet<String> encryptedIds = new HashSet<String>();
- public SecurityDecoder(SecurityStore store)
+
+ public SecurityDecoder(SecurityStore store, TimestampVerification timestampVerification)
{
org.apache.xml.security.Init.init();
this.store = store;
+ this.timestampVerification = timestampVerification;
}
/**
@@ -70,9 +75,10 @@
* @param SecurityStore the security store that contains key and trust information
* @param now The timestamp to use as the current time when validating a message expiration
*/
- public SecurityDecoder(SecurityStore store, Calendar now)
+
+ public SecurityDecoder(SecurityStore store, Calendar now, TimestampVerification timestampVerification)
{
- this(store);
+ this(store, timestampVerification);
this.now = now;
}
@@ -99,7 +105,7 @@
if (timestamp != null)
{
TimestampVerificationOperation operation =
- (now == null) ? new TimestampVerificationOperation() : new TimestampVerificationOperation(now);
+ (now == null) ? new TimestampVerificationOperation(timestampVerification) : new TimestampVerificationOperation(now);
operation.process(message, timestamp);
}
Modified: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java 2008-06-25 14:27:02 UTC (rev 7736)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/extensions/security/TimestampVerificationOperation.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -23,16 +23,22 @@
import java.util.Calendar;
+import org.jboss.logging.Logger;
import org.jboss.ws.extensions.security.element.Timestamp;
+import org.jboss.ws.metadata.wsse.TimestampVerification;
import org.w3c.dom.Document;
-
public class TimestampVerificationOperation
{
+ private static final Logger log = Logger.getLogger(TimestampVerificationOperation.class);
+
+ private TimestampVerification timestampVerification;
+
private Calendar now = null;
- public TimestampVerificationOperation()
+ public TimestampVerificationOperation(TimestampVerification timestampVerification)
{
+ this.timestampVerification = timestampVerification;
}
/**
@@ -48,14 +54,48 @@
public void process(Document message, Timestamp timestamp) throws WSSecurityException
{
- Calendar expired = timestamp.getExpires();
+ Calendar expires = timestamp.getExpires();
Calendar created = timestamp.getCreated();
+
Calendar now = (this.now == null) ? Calendar.getInstance() : this.now;
- if (created.after(now))
+ boolean rejectCreated = created.after(now);
+ if (rejectCreated && timestampVerification != null && timestampVerification.getCreatedTolerance() > 0)
+ {
+ Calendar tolerantCreatedNow = (Calendar)now.clone();
+ tolerantCreatedNow.add(Calendar.SECOND, (int)timestampVerification.getCreatedTolerance());
+
+ rejectCreated = created.after(tolerantCreatedNow);
+
+ if (rejectCreated == false && timestampVerification.isWarnCreated())
+ {
+ log.warn("Accepting Timestamp with 'Created' after now but within configured tolerance.");
+ }
+ }
+
+ if (rejectCreated)
+ {
throw new WSSecurityException("Invalid timestamp, message claimed to be created after now");
+ }
- if (expired != null && ! now.before(expired))
+ boolean rejectExpires = expires != null && !now.before(expires);
+ if (rejectExpires && timestampVerification != null && timestampVerification.getExpiresTolerance() > 0)
+ {
+ Calendar tolerantExpiresNow = (Calendar)now.clone();
+ tolerantExpiresNow.add(Calendar.SECOND, (int)timestampVerification.getExpiresTolerance() * -1);
+
+ rejectExpires = !tolerantExpiresNow.before(expires);
+
+ if (rejectExpires == false && timestampVerification.isWarnExpires())
+ {
+ log.warn("Accepting Timestamp with 'Expires' in past but within configured tolerance.");
+ }
+ }
+
+ if (rejectExpires)
+ {
throw new FailedCheckException("Expired message.");
+ }
+
}
}
Modified: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java 2008-06-25 14:27:02 UTC (rev 7736)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -140,7 +140,7 @@
{
SecurityStore securityStore = new SecurityStore(config.getKeyStoreURL(), config.getKeyStoreType(), config.getKeyStorePassword(), config.getTrustStoreURL(),
config.getTrustStoreType(), config.getTrustStorePassword());
- SecurityDecoder decoder = new SecurityDecoder(securityStore);
+ SecurityDecoder decoder = new SecurityDecoder(securityStore, config.getTimestampVerification());
decoder.decode(soapMessage.getSOAPPart(), secHeaderElement);
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/metadata/wsse/TimestampVerification.java (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/metadata/wsse/TimestampVerification.java)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/metadata/wsse/TimestampVerification.java (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/metadata/wsse/TimestampVerification.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,95 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2008, 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.ws.metadata.wsse;
+
+import java.io.Serializable;
+
+/**
+ * Represents the "timestamp-verification" tag.
+ *
+ * @author <a href="mailto:darran.lofthouse@jboss.com">Darran Lofthouse</a>
+ * @version $Revision$
+ * @since Aril 14 2008
+ */
+public class TimestampVerification implements Serializable
+{
+
+ private static final long serialVersionUID = -1097288149565604697L;
+
+ private long createdTolerance;
+
+ private boolean warnCreated;
+
+ private long expiresTolerance;
+
+ private boolean warnExpires;
+
+ public TimestampVerification(long createdTolerance, boolean warnCreated, long expiresTolerance, boolean warnExpires)
+ {
+ this.createdTolerance = createdTolerance;
+ this.warnCreated = warnCreated;
+ this.expiresTolerance = expiresTolerance;
+ this.warnExpires = warnExpires;
+ }
+
+ public long getCreatedTolerance()
+ {
+ return createdTolerance;
+ }
+
+ public void setCreatedTolerance(long createdTolerance)
+ {
+ this.createdTolerance = createdTolerance;
+ }
+
+ public boolean isWarnCreated()
+ {
+ return warnCreated;
+ }
+
+ public void setWarnCreated(boolean warnCreated)
+ {
+ this.warnCreated = warnCreated;
+ }
+
+ public long getExpiresTolerance()
+ {
+ return expiresTolerance;
+ }
+
+ public void setExpiresTolerance(long expiresTolerance)
+ {
+ this.expiresTolerance = expiresTolerance;
+ }
+
+ public boolean isWarnExpires()
+ {
+ return warnExpires;
+ }
+
+ public void setWarnExpires(boolean warnExpires)
+ {
+ this.warnExpires = warnExpires;
+ }
+
+}
Modified: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/metadata/wsse/WSSecurityConfiguration.java
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/metadata/wsse/WSSecurityConfiguration.java 2008-06-25 14:27:02 UTC (rev 7736)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/metadata/wsse/WSSecurityConfiguration.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -45,6 +45,7 @@
private URL trustStoreURL;
private String trustStoreType;
private String trustStorePassword;
+ private TimestampVerification timestampVerification;
public WSSecurityConfiguration()
{
@@ -154,4 +155,15 @@
{
this.trustStoreFile = trustStoreFile;
}
+
+ public TimestampVerification getTimestampVerification()
+ {
+ return timestampVerification;
+ }
+
+ public void setTimestampVerification(TimestampVerification timestampVerification)
+ {
+ this.timestampVerification = timestampVerification;
+ }
+
}
Modified: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/metadata/wsse/WSSecurityOMFactory.java
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/metadata/wsse/WSSecurityOMFactory.java 2008-06-25 14:27:02 UTC (rev 7736)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/java/org/jboss/ws/metadata/wsse/WSSecurityOMFactory.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -152,6 +152,34 @@
{
return new Port(attrs.getValue("", "name"));
}
+ if ("timestamp-verification".equals(localName))
+ {
+ //By default, the createdTolerance should be '0'
+ Long createdTolerance = new Long(0);
+ String createdToleranceAttr = attrs.getValue("", "createdTolerance");
+ if (createdToleranceAttr != null)
+ createdTolerance = (Long)SimpleTypeBindings.unmarshal(SimpleTypeBindings.XS_LONG_NAME, createdToleranceAttr, null);
+
+ //By default, we do log warnings if the tolerance is used.
+ Boolean warnCreated = new Boolean(true);
+ String warnCreatedAttr = attrs.getValue("", "warnCreated");
+ if (warnCreatedAttr != null)
+ warnCreated = (Boolean)SimpleTypeBindings.unmarshal(SimpleTypeBindings.XS_BOOLEAN_NAME, warnCreatedAttr, null);
+
+ //By default, the expiresTolerance should be '0'
+ Long expiresTolerance = new Long(0);
+ String expiresToleranceAttr = attrs.getValue("", "expiresTolerance");
+ if (expiresToleranceAttr != null)
+ expiresTolerance = (Long)SimpleTypeBindings.unmarshal(SimpleTypeBindings.XS_LONG_NAME, expiresToleranceAttr, null);
+
+ //By default, we do log warnings if the tolerance is used.
+ Boolean warnExpires = new Boolean(true);
+ String warnExpiresAttr = attrs.getValue("", "warnExpires");
+ if (warnExpiresAttr != null)
+ warnExpires = (Boolean)SimpleTypeBindings.unmarshal(SimpleTypeBindings.XS_BOOLEAN_NAME, warnExpiresAttr, null);
+
+ return new TimestampVerification(createdTolerance, warnCreated, expiresTolerance, warnExpires);
+ }
return null;
}
@@ -176,6 +204,16 @@
}
/**
+ * Called when parsing TimestampVerification is complete.
+ */
+ public void addChild(WSSecurityConfiguration configuration, TimestampVerification timestampVerification, UnmarshallingContext navigator, String namespaceURI,
+ String localName)
+ {
+ log.trace("addChild: [obj=" + configuration + ",child=" + timestampVerification + "]");
+ configuration.setTimestampVerification(timestampVerification);
+ }
+
+ /**
* Called when parsing of a new element started.
*/
public Object newChild(Config config, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs)
Modified: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/resources/schema/jboss-ws-security_1_0.xsd
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/resources/schema/jboss-ws-security_1_0.xsd 2008-06-25 14:27:02 UTC (rev 7736)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-core/src/resources/schema/jboss-ws-security_1_0.xsd 2008-06-25 15:55:22 UTC (rev 7737)
@@ -33,6 +33,11 @@
<xs:documentation>This specifies the trust store's password.</xs:documentation>
</xs:annotation>
</xs:element>
+ <xs:element name="timestamp-verification" type="timestampVerificationType" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>The tolerances and logging required when verifying the 'created' and 'expires' value of the timestamps.</xs:documentation>
+ </xs:annotation>
+ </xs:element>
<xs:element name="config" type="configType" minOccurs="0">
<xs:annotation>
<xs:documentation>The default security configuration that is applied to all operations on all ports. This is only used if there is no port/operation config.</xs:documentation>
@@ -46,6 +51,28 @@
</xs:sequence>
</xs:complexType>
</xs:element>
+ <xs:complexType name="timestampVerificationType">
+ <xs:attribute name="createdTolerance" type="xs:long" use="optional">
+ <xs:annotation>
+ <xs:documentation>The number of seconds in the future the created value on a message will be accepted.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="warnCreated" type="xs:boolean" use="optional">
+ <xs:annotation>
+ <xs:documentation>Specifies if a WARN should be logged if a message in the future is accepted within the configured 'createdTolerance'.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="expiresTolerance" type="xs:long" use="optional">
+ <xs:annotation>
+ <xs:documentation>The number of seconds tolerance when checking the expires value of the timestamp.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="warnExpires" type="xs:boolean" use="optional">
+ <xs:annotation>
+ <xs:documentation>Specifies if a WARN should be logged if an expired message is accepted that is within the 'expiresTolerance'.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
<xs:complexType name="configType" mixed="true">
<xs:all>
<xs:element name="timestamp" type="timestampType" minOccurs="0">
Modified: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/ant-import/build-jars-jaxrpc.xml
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/ant-import/build-jars-jaxrpc.xml 2008-06-25 14:27:02 UTC (rev 7736)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/ant-import/build-jars-jaxrpc.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -2386,7 +2386,35 @@
<include name="jaxrpc-mapping.xml"/>
</metainf>
</jar>
-
+
+ <!-- jaxrpc-jbws1316 -->
+ <war warfile="${tests.output.dir}/libs/jaxrpc-jbws1316.war" webxml="${tests.output.dir}/resources/jaxrpc/jbws1316/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/classes">
+ <include name="org/jboss/test/ws/jaxrpc/jbws1316/*.class"/>
+ <exclude name="org/jboss/test/ws/jaxrpc/jbws1316/*TestCase.class"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/resources/jaxrpc/jbws1316/WEB-INF">
+ <include name="webservices.xml"/>
+ <include name="jaxrpc-mapping.xml"/>
+ <include name="jboss-wsse-server.xml"/>
+ <include name="wsdl/**"/>
+ </webinf>
+ </war>
+ <jar destfile="${tests.output.dir}/libs/jaxrpc-jbws1316-client.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include name="org/jboss/test/ws/jaxrpc/jbws1316/*.class"/>
+ <exclude name="org/jboss/test/ws/jaxrpc/jbws1316/*TestCase.class"/>
+ </fileset>
+ <metainf dir="${tests.output.dir}/resources/jaxrpc/jbws1316/META-INF">
+ <include name="application-client.xml"/>
+ <include name="jboss-client.xml"/>
+ </metainf>
+ <metainf dir="${tests.output.dir}/resources/jaxrpc/jbws1316/WEB-INF">
+ <include name="wsdl/**"/>
+ <include name="jaxrpc-mapping.xml"/>
+ </metainf>
+ </jar>
+
<!-- jaxrpc-jbws1378 -->
<war warfile="${tests.output.dir}/libs/jaxrpc-jbws1378.war" webxml="${tests.output.dir}/resources/jaxrpc/jbws1378/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316 (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/jbws1316)
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316CallTestCase.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316CallTestCase.java 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316CallTestCase.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,136 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2008, 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.jaxrpc.jbws1316;
-
-import java.rmi.RemoteException;
-
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-import javax.xml.rpc.Stub;
-
-import junit.framework.Test;
-
-import org.jboss.wsf.test.JBossWSTest;
-import org.jboss.wsf.test.JBossWSTestSetup;
-
-/**
- * Test case to test reading the TimestampVerification configuration.
- *
- * @author <a href="mailto:darran.lofthouse@jboss.com">Darran Lofthouse</a>
- * @version $Revision$
- * @since Aril 14 2008
- */
-public class JBWS1316CallTestCase extends JBossWSTest
-{
-
- private static final String MESSAGE = "Hello JBWS1316!!";
-
- private static TestEndpoint port;
-
- public static Test suite()
- {
- return new JBossWSTestSetup(JBWS1316CallTestCase.class, "jaxrpc-jbws1316.war, jaxrpc-jbws1316-client.jar");
- }
-
- protected void setUp() throws Exception
- {
- super.setUp();
- if (port == null)
- {
- InitialContext iniCtx = getInitialContext();
- Service service = (Service)iniCtx.lookup("java:comp/env/service/TestService");
- port = (TestEndpoint)service.getPort(TestEndpoint.class);
- }
- }
-
- /**
- * Test that a message without a wsse:Security header is rejected.
- *
- * @throws Exception
- */
- public void testCall_NoSecurity() throws Exception
- {
- Stub stub = (Stub)port;
- stub._setProperty(TestSecurityHandler.JBWS1316_CREATED, null);
- stub._setProperty(TestSecurityHandler.JBWS1316_EXPIRES, null);
-
- try
- {
- port.echoMessage(MESSAGE);
- fail("Call should have failed due to no wsse:Security.");
- }
- catch (RemoteException e)
- {
- assertTrue(e.getMessage().contains("[InvalidSecurity]"));
- }
- }
-
- public void testCall_ValidTimestamp() throws Exception
- {
- long started = System.currentTimeMillis();
-
- Stub stub = (Stub)port;
- stub._setProperty(TestSecurityHandler.JBWS1316_CREATED, Integer.valueOf(0));
- stub._setProperty(TestSecurityHandler.JBWS1316_EXPIRES, Integer.valueOf(10));
-
- String response = port.echoMessage(MESSAGE);
- assertEquals("Expected Response", MESSAGE, response);
-
- long finished = System.currentTimeMillis();
- long duration = finished - started;
- assertTrue("Execution time less than 10s", duration < 10000);
- }
-
- public void testCall_FutureTimestamp() throws Exception
- {
- long started = System.currentTimeMillis();
-
- Stub stub = (Stub)port;
- stub._setProperty(TestSecurityHandler.JBWS1316_CREATED, Integer.valueOf(10));
- stub._setProperty(TestSecurityHandler.JBWS1316_EXPIRES, Integer.valueOf(20));
-
- String response = port.echoMessage(MESSAGE);
- assertEquals("Expected Response", MESSAGE, response);
-
- long finished = System.currentTimeMillis();
- long duration = finished - started;
- assertTrue("Execution time less than 10s", duration < 10000);
- }
-
- public void testCall_PastExpires() throws Exception
- {
- long started = System.currentTimeMillis();
-
- Stub stub = (Stub)port;
- stub._setProperty(TestSecurityHandler.JBWS1316_CREATED, Integer.valueOf(0));
- stub._setProperty(TestSecurityHandler.JBWS1316_EXPIRES, Integer.valueOf(-5));
-
- String response = port.echoMessage(MESSAGE);
- assertEquals("Expected Response", MESSAGE, response);
-
- long finished = System.currentTimeMillis();
- long duration = finished - started;
- assertTrue("Execution time less than 10s", duration < 10000);
- }
-
-}
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316CallTestCase.java (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316CallTestCase.java)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316CallTestCase.java (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316CallTestCase.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,136 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2008, 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.jaxrpc.jbws1316;
+
+import java.rmi.RemoteException;
+
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
+import junit.framework.Test;
+
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.JBossWSTestSetup;
+
+/**
+ * Test case to test reading the TimestampVerification configuration.
+ *
+ * @author <a href="mailto:darran.lofthouse@jboss.com">Darran Lofthouse</a>
+ * @version $Revision$
+ * @since Aril 14 2008
+ */
+public class JBWS1316CallTestCase extends JBossWSTest
+{
+
+ private static final String MESSAGE = "Hello JBWS1316!!";
+
+ private static TestEndpoint port;
+
+ public static Test suite()
+ {
+ return JBossWSTestSetup.newTestSetup(JBWS1316CallTestCase.class, "jaxrpc-jbws1316.war, jaxrpc-jbws1316-client.jar");
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ if (port == null)
+ {
+ InitialContext iniCtx = getInitialContext();
+ Service service = (Service)iniCtx.lookup("java:comp/env/service/TestService");
+ port = (TestEndpoint)service.getPort(TestEndpoint.class);
+ }
+ }
+
+ /**
+ * Test that a message without a wsse:Security header is rejected.
+ *
+ * @throws Exception
+ */
+ public void testCall_NoSecurity() throws Exception
+ {
+ Stub stub = (Stub)port;
+ stub._setProperty(TestSecurityHandler.JBWS1316_CREATED, null);
+ stub._setProperty(TestSecurityHandler.JBWS1316_EXPIRES, null);
+
+ try
+ {
+ port.echoMessage(MESSAGE);
+ fail("Call should have failed due to no wsse:Security.");
+ }
+ catch (RemoteException e)
+ {
+ assertTrue(e.getMessage().contains("[InvalidSecurity]"));
+ }
+ }
+
+ public void testCall_ValidTimestamp() throws Exception
+ {
+ long started = System.currentTimeMillis();
+
+ Stub stub = (Stub)port;
+ stub._setProperty(TestSecurityHandler.JBWS1316_CREATED, Integer.valueOf(0));
+ stub._setProperty(TestSecurityHandler.JBWS1316_EXPIRES, Integer.valueOf(10));
+
+ String response = port.echoMessage(MESSAGE);
+ assertEquals("Expected Response", MESSAGE, response);
+
+ long finished = System.currentTimeMillis();
+ long duration = finished - started;
+ assertTrue("Execution time less than 10s", duration < 10000);
+ }
+
+ public void testCall_FutureTimestamp() throws Exception
+ {
+ long started = System.currentTimeMillis();
+
+ Stub stub = (Stub)port;
+ stub._setProperty(TestSecurityHandler.JBWS1316_CREATED, Integer.valueOf(10));
+ stub._setProperty(TestSecurityHandler.JBWS1316_EXPIRES, Integer.valueOf(20));
+
+ String response = port.echoMessage(MESSAGE);
+ assertEquals("Expected Response", MESSAGE, response);
+
+ long finished = System.currentTimeMillis();
+ long duration = finished - started;
+ assertTrue("Execution time less than 10s", duration < 10000);
+ }
+
+ public void testCall_PastExpires() throws Exception
+ {
+ long started = System.currentTimeMillis();
+
+ Stub stub = (Stub)port;
+ stub._setProperty(TestSecurityHandler.JBWS1316_CREATED, Integer.valueOf(0));
+ stub._setProperty(TestSecurityHandler.JBWS1316_EXPIRES, Integer.valueOf(-5));
+
+ String response = port.echoMessage(MESSAGE);
+ assertEquals("Expected Response", MESSAGE, response);
+
+ long finished = System.currentTimeMillis();
+ long duration = finished - started;
+ assertTrue("Execution time less than 10s", duration < 10000);
+ }
+
+}
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316ConfigurationTestCase.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316ConfigurationTestCase.java 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316ConfigurationTestCase.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,103 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2008, 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.jaxrpc.jbws1316;
-
-import java.io.File;
-import java.io.IOException;
-
-import org.jboss.ws.metadata.wsse.TimestampVerification;
-import org.jboss.ws.metadata.wsse.WSSecurityConfiguration;
-import org.jboss.ws.metadata.wsse.WSSecurityOMFactory;
-import org.jboss.wsf.test.JBossWSTest;
-
-/**
- * Test case to test reading the TimestampVerification configuration.
- *
- * @author <a href="mailto:darran.lofthouse@jboss.com">Darran Lofthouse</a>
- * @version $Revision$
- * @since Aril 14 2008
- */
-public class JBWS1316ConfigurationTestCase extends JBossWSTest
-{
-
- private WSSecurityConfiguration load(final String fileName) throws IOException
- {
- File configFile = new File("resources/jaxrpc/jbws1316/config/" + fileName);
- WSSecurityOMFactory factory = WSSecurityOMFactory.newInstance();
-
- return factory.parse(configFile.toURL());
- }
-
- /**
- * Test loading a wsse configuration with no timestamp-verification
- * element.
- *
- * This test case verifies that no TimestampVerification will be set
- * and matches the scenario that would be encountered when reading
- * existing descriptors.
- */
- public void testLoadNoTimestampVerification() throws Exception
- {
- WSSecurityConfiguration config = load("jboss-wsse-no-tv.xml");
- assertNull("No TimestampVerification expected.", config.getTimestampVerification());
- }
-
- /**
- * Test loading a wsse configuration with an empty timestamp-verification
- * element.
- *
- * This test case verifies the default values that will be used when missing from
- * the timestamp-verification element.
- */
- public void testLoadEmptyTimestampVerification() throws Exception
- {
- WSSecurityConfiguration config = load("jboss-wsse-empty-tv.xml");
- assertNotNull("TimestampVerification Missing", config.getTimestampVerification());
-
- TimestampVerification tv = config.getTimestampVerification();
- assertEquals("Expected 'createdTolerance' to be '0'", 0, tv.getCreatedTolerance());
- assertTrue("Expected 'warnCreated' to default to 'true'", tv.isWarnCreated());
- assertEquals("Expected 'expiresTolerance' to be '0'", 0, tv.getExpiresTolerance());
- assertTrue("Expected 'warnExpires' to default to 'true'", tv.isWarnExpires());
- }
-
- /**
- * Test loading a wsse configuration with a full timestamp-verification
- * element.
- *
- * This test case verifies all the values are correctly loaded from the
- * timestamp-verification element.
- */
- public void testLoadFullTimestampVerification() throws Exception
- {
- WSSecurityConfiguration config = load("jboss-wsse-full-tv.xml");
- assertNotNull("TimestampVerification Missing", config.getTimestampVerification());
-
- TimestampVerification tv = config.getTimestampVerification();
- assertEquals("Expected 'createdTolerance' to be '5'", 5, tv.getCreatedTolerance());
- assertFalse("Expected 'warnCreated' to default to 'false'", tv.isWarnCreated());
- assertEquals("Expected 'expiresTolerance' to be '10'", 10, tv.getExpiresTolerance());
- assertFalse("Expected 'warnExpires' to default to 'false'", tv.isWarnExpires());
- }
-
-}
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316ConfigurationTestCase.java (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316ConfigurationTestCase.java)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316ConfigurationTestCase.java (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316ConfigurationTestCase.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,104 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2008, 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.jaxrpc.jbws1316;
+
+import java.io.File;
+import java.io.IOException;
+
+import org.jboss.ws.metadata.wsse.TimestampVerification;
+import org.jboss.ws.metadata.wsse.WSSecurityConfiguration;
+import org.jboss.ws.metadata.wsse.WSSecurityOMFactory;
+import org.jboss.test.ws.JBossWSTest;
+
+
+/**
+ * Test case to test reading the TimestampVerification configuration.
+ *
+ * @author <a href="mailto:darran.lofthouse@jboss.com">Darran Lofthouse</a>
+ * @version $Revision$
+ * @since Aril 14 2008
+ */
+public class JBWS1316ConfigurationTestCase extends JBossWSTest
+{
+
+ private WSSecurityConfiguration load(final String fileName) throws IOException
+ {
+ File configFile = new File("resources/jaxrpc/jbws1316/config/" + fileName);
+ WSSecurityOMFactory factory = WSSecurityOMFactory.newInstance();
+
+ return factory.parse(configFile.toURL());
+ }
+
+ /**
+ * Test loading a wsse configuration with no timestamp-verification
+ * element.
+ *
+ * This test case verifies that no TimestampVerification will be set
+ * and matches the scenario that would be encountered when reading
+ * existing descriptors.
+ */
+ public void testLoadNoTimestampVerification() throws Exception
+ {
+ WSSecurityConfiguration config = load("jboss-wsse-no-tv.xml");
+ assertNull("No TimestampVerification expected.", config.getTimestampVerification());
+ }
+
+ /**
+ * Test loading a wsse configuration with an empty timestamp-verification
+ * element.
+ *
+ * This test case verifies the default values that will be used when missing from
+ * the timestamp-verification element.
+ */
+ public void testLoadEmptyTimestampVerification() throws Exception
+ {
+ WSSecurityConfiguration config = load("jboss-wsse-empty-tv.xml");
+ assertNotNull("TimestampVerification Missing", config.getTimestampVerification());
+
+ TimestampVerification tv = config.getTimestampVerification();
+ assertEquals("Expected 'createdTolerance' to be '0'", 0, tv.getCreatedTolerance());
+ assertTrue("Expected 'warnCreated' to default to 'true'", tv.isWarnCreated());
+ assertEquals("Expected 'expiresTolerance' to be '0'", 0, tv.getExpiresTolerance());
+ assertTrue("Expected 'warnExpires' to default to 'true'", tv.isWarnExpires());
+ }
+
+ /**
+ * Test loading a wsse configuration with a full timestamp-verification
+ * element.
+ *
+ * This test case verifies all the values are correctly loaded from the
+ * timestamp-verification element.
+ */
+ public void testLoadFullTimestampVerification() throws Exception
+ {
+ WSSecurityConfiguration config = load("jboss-wsse-full-tv.xml");
+ assertNotNull("TimestampVerification Missing", config.getTimestampVerification());
+
+ TimestampVerification tv = config.getTimestampVerification();
+ assertEquals("Expected 'createdTolerance' to be '5'", 5, tv.getCreatedTolerance());
+ assertFalse("Expected 'warnCreated' to default to 'false'", tv.isWarnCreated());
+ assertEquals("Expected 'expiresTolerance' to be '10'", 10, tv.getExpiresTolerance());
+ assertFalse("Expected 'warnExpires' to default to 'false'", tv.isWarnExpires());
+ }
+
+}
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpoint.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpoint.java 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpoint.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2008, 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.jaxrpc.jbws1316;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-
-/**
- * Simple TestEndpoint to test the handling to WSSE timestamps.
- *
- * @author <a href="mailto:darran.lofthouse@jboss.com">Darran Lofthouse</a>
- * @version $Revision$
- * @since Aril 14 2008
- */
-public interface TestEndpoint extends Remote
-{
-
- public String echoMessage(final String message) throws RemoteException;
-
-}
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpoint.java (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpoint.java)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpoint.java (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpoint.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,40 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2008, 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.jaxrpc.jbws1316;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+/**
+ * Simple TestEndpoint to test the handling to WSSE timestamps.
+ *
+ * @author <a href="mailto:darran.lofthouse@jboss.com">Darran Lofthouse</a>
+ * @version $Revision$
+ * @since Aril 14 2008
+ */
+public interface TestEndpoint extends Remote
+{
+
+ public String echoMessage(final String message) throws RemoteException;
+
+}
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpointImpl.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpointImpl.java 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpointImpl.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,40 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2008, 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.jaxrpc.jbws1316;
-
-/**
- * Simple TestEndpoint to test the handling to WSSE timestamps.
- *
- * @author <a href="mailto:darran.lofthouse@jboss.com">Darran Lofthouse</a>
- * @version $Revision$
- * @since Aril 14 2008
- */
-public class TestEndpointImpl implements TestEndpoint
-{
-
- public String echoMessage(String message)
- {
- return message;
- }
-
-}
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpointImpl.java (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpointImpl.java)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpointImpl.java (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestEndpointImpl.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,40 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2008, 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.jaxrpc.jbws1316;
+
+/**
+ * Simple TestEndpoint to test the handling to WSSE timestamps.
+ *
+ * @author <a href="mailto:darran.lofthouse@jboss.com">Darran Lofthouse</a>
+ * @version $Revision$
+ * @since Aril 14 2008
+ */
+public class TestEndpointImpl implements TestEndpoint
+{
+
+ public String echoMessage(String message)
+ {
+ return message;
+ }
+
+}
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestSecurityHandler.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/jbws1316/TestSecurityHandler.java 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestSecurityHandler.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,115 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2008, 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.jaxrpc.jbws1316;
-
-import java.util.Calendar;
-import java.util.GregorianCalendar;
-import java.util.TimeZone;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.handler.GenericHandler;
-import javax.xml.rpc.handler.MessageContext;
-
-import org.jboss.ws.core.CommonMessageContext;
-import org.jboss.ws.core.soap.SOAPMessageImpl;
-import org.jboss.ws.extensions.security.Constants;
-import org.jboss.ws.extensions.security.Util;
-import org.jboss.xb.binding.SimpleTypeBindings;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-/**
- * Simple handler to add wsse:Security and Timestamp to header in controlled
- * way to test JBWS-1316 implementation.
- *
- * @author <a href="mailto:darran.lofthouse@jboss.com">Darran Lofthouse</a>
- * @version $Revision$
- * @since Aril 14 2008
- */
-public class TestSecurityHandler extends GenericHandler
-{
-
- public static final String JBWS1316_CREATED = "jbws1316.created";
-
- public static final String JBWS1316_EXPIRES = "jbws1316.expires";
-
- @Override
- public boolean handleRequest(MessageContext msgContext)
- {
- Integer createdValue = (Integer)msgContext.getProperty(JBWS1316_CREATED);
- Integer expiresValue = (Integer)msgContext.getProperty(JBWS1316_EXPIRES);
-
- // Created is bare minimum to add the header.
- if (createdValue == null)
- {
- return super.handleRequest(msgContext);
- }
-
- Calendar baseCalendar = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
-
- Calendar createdCalendar = (Calendar)baseCalendar.clone();
- createdCalendar.add(Calendar.SECOND, createdValue);
-
- Calendar expiresCalendar = null;
-
- if (expiresValue != null)
- {
- expiresCalendar = (Calendar)baseCalendar.clone();
- expiresCalendar.add(Calendar.SECOND, expiresValue);
- }
-
- CommonMessageContext ctx = (CommonMessageContext)msgContext;
- SOAPMessageImpl soapMessage = (SOAPMessageImpl)ctx.getSOAPMessage();
- Document message = soapMessage.getSOAPPart();
-
- Element soapHeader = Util.findOrCreateSoapHeader(message.getDocumentElement());
-
- Element wsseSecurityElement = message.createElementNS(Constants.WSSE_NS, Constants.WSSE_HEADER);
- Util.addNamespace(wsseSecurityElement, Constants.WSSE_PREFIX, Constants.WSSE_NS);
- Util.addNamespace(wsseSecurityElement, Constants.WSU_PREFIX, Constants.WSU_NS);
-
- Element wsseTimestampElement = message.createElementNS(Constants.WSU_NS, Constants.WSU_PREFIX + ":" + "Timestamp");
- wsseTimestampElement.setAttributeNS(Constants.WSU_NS, Constants.WSU_ID, "timestamp");
- Element child = message.createElementNS(Constants.WSU_NS, Constants.WSU_PREFIX + ":" + "Created");
- child.appendChild(message.createTextNode(SimpleTypeBindings.marshalDateTime(createdCalendar)));
- wsseTimestampElement.appendChild(child);
- if (expiresCalendar != null)
- {
- child = message.createElementNS(Constants.WSU_NS, Constants.WSU_PREFIX + ":" + "Expires");
- child.appendChild(message.createTextNode(SimpleTypeBindings.marshalDateTime(expiresCalendar)));
- wsseTimestampElement.appendChild(child);
- }
- wsseSecurityElement.appendChild(wsseTimestampElement);
-
- soapHeader.insertBefore(wsseSecurityElement, soapHeader.getFirstChild());
-
- return true;
- }
-
- @Override
- public QName[] getHeaders()
- {
- return null;
- }
-
-}
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestSecurityHandler.java (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxrpc/jbws1316/TestSecurityHandler.java)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestSecurityHandler.java (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/jbws1316/TestSecurityHandler.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,115 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2008, 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.jaxrpc.jbws1316;
+
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+import java.util.TimeZone;
+
+import javax.xml.namespace.QName;
+import javax.xml.rpc.handler.GenericHandler;
+import javax.xml.rpc.handler.MessageContext;
+
+import org.jboss.ws.core.CommonMessageContext;
+import org.jboss.ws.core.soap.SOAPMessageImpl;
+import org.jboss.ws.extensions.security.Constants;
+import org.jboss.ws.extensions.security.Util;
+import org.jboss.xb.binding.SimpleTypeBindings;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
+/**
+ * Simple handler to add wsse:Security and Timestamp to header in controlled
+ * way to test JBWS-1316 implementation.
+ *
+ * @author <a href="mailto:darran.lofthouse@jboss.com">Darran Lofthouse</a>
+ * @version $Revision$
+ * @since Aril 14 2008
+ */
+public class TestSecurityHandler extends GenericHandler
+{
+
+ public static final String JBWS1316_CREATED = "jbws1316.created";
+
+ public static final String JBWS1316_EXPIRES = "jbws1316.expires";
+
+ @Override
+ public boolean handleRequest(MessageContext msgContext)
+ {
+ Integer createdValue = (Integer)msgContext.getProperty(JBWS1316_CREATED);
+ Integer expiresValue = (Integer)msgContext.getProperty(JBWS1316_EXPIRES);
+
+ // Created is bare minimum to add the header.
+ if (createdValue == null)
+ {
+ return super.handleRequest(msgContext);
+ }
+
+ Calendar baseCalendar = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
+
+ Calendar createdCalendar = (Calendar)baseCalendar.clone();
+ createdCalendar.add(Calendar.SECOND, createdValue);
+
+ Calendar expiresCalendar = null;
+
+ if (expiresValue != null)
+ {
+ expiresCalendar = (Calendar)baseCalendar.clone();
+ expiresCalendar.add(Calendar.SECOND, expiresValue);
+ }
+
+ CommonMessageContext ctx = (CommonMessageContext)msgContext;
+ SOAPMessageImpl soapMessage = (SOAPMessageImpl)ctx.getSOAPMessage();
+ Document message = soapMessage.getSOAPPart();
+
+ Element soapHeader = Util.findOrCreateSoapHeader(message.getDocumentElement());
+
+ Element wsseSecurityElement = message.createElementNS(Constants.WSSE_NS, Constants.WSSE_HEADER);
+ Util.addNamespace(wsseSecurityElement, Constants.WSSE_PREFIX, Constants.WSSE_NS);
+ Util.addNamespace(wsseSecurityElement, Constants.WSU_PREFIX, Constants.WSU_NS);
+
+ Element wsseTimestampElement = message.createElementNS(Constants.WSU_NS, Constants.WSU_PREFIX + ":" + "Timestamp");
+ wsseTimestampElement.setAttributeNS(Constants.WSU_NS, Constants.WSU_ID, "timestamp");
+ Element child = message.createElementNS(Constants.WSU_NS, Constants.WSU_PREFIX + ":" + "Created");
+ child.appendChild(message.createTextNode(SimpleTypeBindings.marshalDateTime(createdCalendar)));
+ wsseTimestampElement.appendChild(child);
+ if (expiresCalendar != null)
+ {
+ child = message.createElementNS(Constants.WSU_NS, Constants.WSU_PREFIX + ":" + "Expires");
+ child.appendChild(message.createTextNode(SimpleTypeBindings.marshalDateTime(expiresCalendar)));
+ wsseTimestampElement.appendChild(child);
+ }
+ wsseSecurityElement.appendChild(wsseTimestampElement);
+
+ soapHeader.insertBefore(wsseSecurityElement, soapHeader.getFirstChild());
+
+ return true;
+ }
+
+ @Override
+ public QName[] getHeaders()
+ {
+ return null;
+ }
+
+}
Modified: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/wsse/MicrosoftInteropTestCase.java
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/wsse/MicrosoftInteropTestCase.java 2008-06-25 14:27:02 UTC (rev 7736)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/wsse/MicrosoftInteropTestCase.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -95,7 +95,7 @@
cal.set(Calendar.MINUTE, 22);
cal.set(Calendar.SECOND, 25);
- SecurityDecoder decoder = new SecurityDecoder(new SecurityStore(), cal);
+ SecurityDecoder decoder = new SecurityDecoder(new SecurityStore(), cal, null);
decoder.decode(soapEnv.getOwnerDocument());
decoder.complete();
Modified: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/wsse/RoundTripTestCase.java
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/wsse/RoundTripTestCase.java 2008-06-25 14:27:02 UTC (rev 7736)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/wsse/RoundTripTestCase.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -102,7 +102,8 @@
env = soapMsg.getSOAPPart().getEnvelope();
doc = env.getOwnerDocument();
- SecurityDecoder decoder = new SecurityDecoder(new SecurityStore());
+
+ SecurityDecoder decoder = new SecurityDecoder(new SecurityStore(), null);
decoder.decode(doc);
decoder.verify(buildRequireOperations());
decoder.complete();
Modified: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/wsse/SunInteropTestCase.java
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/wsse/SunInteropTestCase.java 2008-06-25 14:27:02 UTC (rev 7736)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/wsse/SunInteropTestCase.java 2008-06-25 15:55:22 UTC (rev 7737)
@@ -72,7 +72,7 @@
cal.set(Calendar.MINUTE, 32);
cal.set(Calendar.SECOND, 25);
- SecurityDecoder decoder = new SecurityDecoder(new SecurityStore(), cal);
+ SecurityDecoder decoder = new SecurityDecoder(new SecurityStore(), cal, null);
decoder.decode(doc);
decoder.complete();
@@ -107,7 +107,7 @@
cal.set(Calendar.SECOND, 40);
- SecurityDecoder decoder = new SecurityDecoder(new SecurityStore(), cal);
+ SecurityDecoder decoder = new SecurityDecoder(new SecurityStore(), cal, null);
decoder.decode(doc);
decoder.complete();
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316 (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316)
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/META-INF)
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/application-client.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/META-INF/application-client.xml 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/application-client.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<application-client 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/application-client_1_4.xsd"
- version="1.4">
-
- <display-name>HelloService</display-name>
-
- <service-ref>
- <service-ref-name>service/TestService</service-ref-name>
- <service-interface>javax.xml.rpc.Service</service-interface>
- <wsdl-file>META-INF/wsdl/TestService.wsdl</wsdl-file>
- <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
- <port-component-ref>
- <service-endpoint-interface>org.jboss.test.ws.jaxrpc.jbws1316.TestEndpoint</service-endpoint-interface>
- </port-component-ref>
- <handler>
- <handler-name>ClientHandler</handler-name>
- <handler-class>org.jboss.test.ws.jaxrpc.jbws1316.TestSecurityHandler</handler-class>
- </handler>
- </service-ref>
-
-</application-client>
-
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/application-client.xml (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/META-INF/application-client.xml)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/application-client.xml (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/application-client.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<application-client 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/application-client_1_4.xsd"
+ version="1.4">
+
+ <display-name>HelloService</display-name>
+
+ <service-ref>
+ <service-ref-name>service/TestService</service-ref-name>
+ <service-interface>javax.xml.rpc.Service</service-interface>
+ <wsdl-file>META-INF/wsdl/TestService.wsdl</wsdl-file>
+ <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+ <port-component-ref>
+ <service-endpoint-interface>org.jboss.test.ws.jaxrpc.jbws1316.TestEndpoint</service-endpoint-interface>
+ </port-component-ref>
+ <handler>
+ <handler-name>ClientHandler</handler-name>
+ <handler-class>org.jboss.test.ws.jaxrpc.jbws1316.TestSecurityHandler</handler-class>
+ </handler>
+ </service-ref>
+
+</application-client>
+
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/jboss-client.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/META-INF/jboss-client.xml 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/jboss-client.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,13 +0,0 @@
-<?xml version='1.0' encoding='UTF-8' ?>
-
-<!DOCTYPE jboss-client PUBLIC "-//JBoss//DTD Application Client 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-client_4_0.dtd">
-
-<jboss-client>
- <jndi-name>jbossws-client</jndi-name>
-
- <service-ref>
- <service-ref-name>service/TestService</service-ref-name>
- <wsdl-override>http://@jboss.bind.address@:8080/jaxrpc-jbws1316?wsdl</wsdl-override>
- </service-ref>
-
-</jboss-client>
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/jboss-client.xml (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/META-INF/jboss-client.xml)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/jboss-client.xml (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/META-INF/jboss-client.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,13 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+
+<!DOCTYPE jboss-client PUBLIC "-//JBoss//DTD Application Client 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-client_4_0.dtd">
+
+<jboss-client>
+ <jndi-name>jbossws-client</jndi-name>
+
+ <service-ref>
+ <service-ref-name>service/TestService</service-ref-name>
+ <wsdl-override>http://@jbosstest.host.name@:8080/jaxrpc-jbws1316?wsdl</wsdl-override>
+ </service-ref>
+
+</jboss-client>
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/WEB-INF)
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/jaxrpc-mapping.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/WEB-INF/jaxrpc-mapping.xml 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/jaxrpc-mapping.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,37 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?><java-wsdl-mapping version='1.1' 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://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd'>
- <package-mapping>
- <package-type>org.jboss.test.ws.jaxrpc.jbws1316</package-type>
- <namespaceURI>http://ws.test.jboss.org/jbws1316/types</namespaceURI>
- </package-mapping>
- <service-interface-mapping>
- <service-interface>org.jboss.test.ws.jaxrpc.jbws1316.TestService</service-interface>
- <wsdl-service-name xmlns:serviceNS='http://ws.test.jboss.org/jbws1316'>serviceNS:TestService</wsdl-service-name>
- <port-mapping>
- <port-name>TestEndpointPort</port-name>
- <java-port-name>TestEndpointPort</java-port-name>
- </port-mapping>
- </service-interface-mapping>
- <service-endpoint-interface-mapping>
- <service-endpoint-interface>org.jboss.test.ws.jaxrpc.jbws1316.TestEndpoint</service-endpoint-interface>
- <wsdl-port-type xmlns:portTypeNS='http://ws.test.jboss.org/jbws1316'>portTypeNS:TestEndpoint</wsdl-port-type>
- <wsdl-binding xmlns:bindingNS='http://ws.test.jboss.org/jbws1316'>bindingNS:TestEndpointBinding</wsdl-binding>
- <service-endpoint-method-mapping>
- <java-method-name>echoMessage</java-method-name>
- <wsdl-operation>echoMessage</wsdl-operation>
- <method-param-parts-mapping>
- <param-position>0</param-position>
- <param-type>java.lang.String</param-type>
- <wsdl-message-mapping>
- <wsdl-message xmlns:wsdlMsgNS='http://ws.test.jboss.org/jbws1316'>wsdlMsgNS:TestEndpoint_echoMessage</wsdl-message>
- <wsdl-message-part-name>String_1</wsdl-message-part-name>
- <parameter-mode>IN</parameter-mode>
- </wsdl-message-mapping>
- </method-param-parts-mapping>
- <wsdl-return-value-mapping>
- <method-return-value>java.lang.String</method-return-value>
- <wsdl-message xmlns:wsdlMsgNS='http://ws.test.jboss.org/jbws1316'>wsdlMsgNS:TestEndpoint_echoMessageResponse</wsdl-message>
- <wsdl-message-part-name>result</wsdl-message-part-name>
- </wsdl-return-value-mapping>
- </service-endpoint-method-mapping>
- </service-endpoint-interface-mapping>
-</java-wsdl-mapping>
\ No newline at end of file
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/jaxrpc-mapping.xml (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/WEB-INF/jaxrpc-mapping.xml)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/jaxrpc-mapping.xml (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/jaxrpc-mapping.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,37 @@
+<?xml version='1.0' encoding='UTF-8'?><java-wsdl-mapping version='1.1' 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://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd'>
+ <package-mapping>
+ <package-type>org.jboss.test.ws.jaxrpc.jbws1316</package-type>
+ <namespaceURI>http://ws.test.jboss.org/jbws1316/types</namespaceURI>
+ </package-mapping>
+ <service-interface-mapping>
+ <service-interface>org.jboss.test.ws.jaxrpc.jbws1316.TestService</service-interface>
+ <wsdl-service-name xmlns:serviceNS='http://ws.test.jboss.org/jbws1316'>serviceNS:TestService</wsdl-service-name>
+ <port-mapping>
+ <port-name>TestEndpointPort</port-name>
+ <java-port-name>TestEndpointPort</java-port-name>
+ </port-mapping>
+ </service-interface-mapping>
+ <service-endpoint-interface-mapping>
+ <service-endpoint-interface>org.jboss.test.ws.jaxrpc.jbws1316.TestEndpoint</service-endpoint-interface>
+ <wsdl-port-type xmlns:portTypeNS='http://ws.test.jboss.org/jbws1316'>portTypeNS:TestEndpoint</wsdl-port-type>
+ <wsdl-binding xmlns:bindingNS='http://ws.test.jboss.org/jbws1316'>bindingNS:TestEndpointBinding</wsdl-binding>
+ <service-endpoint-method-mapping>
+ <java-method-name>echoMessage</java-method-name>
+ <wsdl-operation>echoMessage</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+ <param-type>java.lang.String</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message xmlns:wsdlMsgNS='http://ws.test.jboss.org/jbws1316'>wsdlMsgNS:TestEndpoint_echoMessage</wsdl-message>
+ <wsdl-message-part-name>String_1</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+ <method-return-value>java.lang.String</method-return-value>
+ <wsdl-message xmlns:wsdlMsgNS='http://ws.test.jboss.org/jbws1316'>wsdlMsgNS:TestEndpoint_echoMessageResponse</wsdl-message>
+ <wsdl-message-part-name>result</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ </service-endpoint-interface-mapping>
+</java-wsdl-mapping>
\ No newline at end of file
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/jboss-wsse-server.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/WEB-INF/jboss-wsse-server.xml 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/jboss-wsse-server.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,14 +0,0 @@
-<?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">
-
- <timestamp-verification createdTolerance="10" expiresTolerance="10" />
-
- <config>
- <requires>
- <timestamp ttl="30" />
- </requires>
- </config>
-
-</jboss-ws-security>
\ No newline at end of file
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/jboss-wsse-server.xml (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/WEB-INF/jboss-wsse-server.xml)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/jboss-wsse-server.xml (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/jboss-wsse-server.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,14 @@
+<?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">
+
+ <timestamp-verification createdTolerance="10" expiresTolerance="10" />
+
+ <config>
+ <requires>
+ <timestamp ttl="30" />
+ </requires>
+ </config>
+
+</jboss-ws-security>
\ No newline at end of file
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/web.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/WEB-INF/web.xml 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/web.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<web-app 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"
- version="2.4">
-
- <context-param>
- <param-name>jbossws-config-name</param-name>
- <param-value>Standard WSSecurity Endpoint</param-value>
- </context-param>
-
- <servlet>
- <servlet-name>TestEndpoint</servlet-name>
- <servlet-class>org.jboss.test.ws.jaxrpc.jbws1316.TestEndpointImpl</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>TestEndpoint</servlet-name>
- <url-pattern>/*</url-pattern>
- </servlet-mapping>
-</web-app>
-
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/web.xml (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/WEB-INF/web.xml)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/web.xml (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/web.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app 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"
+ version="2.4">
+
+ <context-param>
+ <param-name>jbossws-config-name</param-name>
+ <param-value>Standard WSSecurity Endpoint</param-value>
+ </context-param>
+
+ <servlet>
+ <servlet-name>TestEndpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxrpc.jbws1316.TestEndpointImpl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>TestEndpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+</web-app>
+
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/webservices.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/WEB-INF/webservices.xml 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/webservices.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,15 +0,0 @@
-<webservices version='1.1' 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://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd'>
- <webservice-description>
- <webservice-description-name>TestService</webservice-description-name>
- <wsdl-file>WEB-INF/wsdl/TestService.wsdl</wsdl-file>
- <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
- <port-component>
- <port-component-name>TestEndpointPort</port-component-name>
- <wsdl-port xmlns:portNS='http://ws.test.jboss.org/jbws1316'>portNS:TestEndpointPort</wsdl-port>
- <service-endpoint-interface>org.jboss.test.ws.jaxrpc.jbws1316.TestEndpoint</service-endpoint-interface>
- <service-impl-bean>
- <servlet-link>TestEndpoint</servlet-link>
- </service-impl-bean>
- </port-component>
- </webservice-description>
-</webservices>
\ No newline at end of file
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/webservices.xml (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/WEB-INF/webservices.xml)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/webservices.xml (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/webservices.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,15 @@
+<webservices version='1.1' 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://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd'>
+ <webservice-description>
+ <webservice-description-name>TestService</webservice-description-name>
+ <wsdl-file>WEB-INF/wsdl/TestService.wsdl</wsdl-file>
+ <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+ <port-component>
+ <port-component-name>TestEndpointPort</port-component-name>
+ <wsdl-port xmlns:portNS='http://ws.test.jboss.org/jbws1316'>portNS:TestEndpointPort</wsdl-port>
+ <service-endpoint-interface>org.jboss.test.ws.jaxrpc.jbws1316.TestEndpoint</service-endpoint-interface>
+ <service-impl-bean>
+ <servlet-link>TestEndpoint</servlet-link>
+ </service-impl-bean>
+ </port-component>
+ </webservice-description>
+</webservices>
\ No newline at end of file
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/wsdl (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/WEB-INF/wsdl)
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/wsdl/TestService.wsdl
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/WEB-INF/wsdl/TestService.wsdl 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/wsdl/TestService.wsdl 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definitions name='TestService' targetNamespace='http://ws.test.jboss.org/jbws1316' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:ns1='http://ws.test.jboss.org/jbws1316/types' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://ws.test.jboss.org/jbws1316' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
- <types/>
- <message name='TestEndpoint_echoMessage'>
- <part name='String_1' type='xsd:string'/>
- </message>
- <message name='TestEndpoint_echoMessageResponse'>
- <part name='result' type='xsd:string'/>
- </message>
- <portType name='TestEndpoint'>
- <operation name='echoMessage' parameterOrder='String_1'>
- <input message='tns:TestEndpoint_echoMessage'/>
- <output message='tns:TestEndpoint_echoMessageResponse'/>
- </operation>
- </portType>
- <binding name='TestEndpointBinding' type='tns:TestEndpoint'>
- <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
- <operation name='echoMessage'>
- <soap:operation soapAction=''/>
- <input>
- <soap:body namespace='http://ws.test.jboss.org/jbws1316' use='literal'/>
- </input>
- <output>
- <soap:body namespace='http://ws.test.jboss.org/jbws1316' use='literal'/>
- </output>
- </operation>
- </binding>
- <service name='TestService'>
- <port binding='tns:TestEndpointBinding' name='TestEndpointPort'>
- <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
- </port>
- </service>
-</definitions>
\ No newline at end of file
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/wsdl/TestService.wsdl (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/WEB-INF/wsdl/TestService.wsdl)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/wsdl/TestService.wsdl (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/WEB-INF/wsdl/TestService.wsdl 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name='TestService' targetNamespace='http://ws.test.jboss.org/jbws1316' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:ns1='http://ws.test.jboss.org/jbws1316/types' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://ws.test.jboss.org/jbws1316' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <types/>
+ <message name='TestEndpoint_echoMessage'>
+ <part name='String_1' type='xsd:string'/>
+ </message>
+ <message name='TestEndpoint_echoMessageResponse'>
+ <part name='result' type='xsd:string'/>
+ </message>
+ <portType name='TestEndpoint'>
+ <operation name='echoMessage' parameterOrder='String_1'>
+ <input message='tns:TestEndpoint_echoMessage'/>
+ <output message='tns:TestEndpoint_echoMessageResponse'/>
+ </operation>
+ </portType>
+ <binding name='TestEndpointBinding' type='tns:TestEndpoint'>
+ <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='echoMessage'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body namespace='http://ws.test.jboss.org/jbws1316' use='literal'/>
+ </input>
+ <output>
+ <soap:body namespace='http://ws.test.jboss.org/jbws1316' use='literal'/>
+ </output>
+ </operation>
+ </binding>
+ <service name='TestService'>
+ <port binding='tns:TestEndpointBinding' name='TestEndpointPort'>
+ <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/config)
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-empty-tv.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/config/jboss-wsse-empty-tv.xml 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-empty-tv.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,5 +0,0 @@
-<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'>
- <timestamp-verification/>
-</jboss-ws-security>
\ No newline at end of file
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-empty-tv.xml (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/config/jboss-wsse-empty-tv.xml)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-empty-tv.xml (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-empty-tv.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,5 @@
+<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'>
+ <timestamp-verification/>
+</jboss-ws-security>
\ No newline at end of file
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-full-tv.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/config/jboss-wsse-full-tv.xml 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-full-tv.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,5 +0,0 @@
-<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'>
- <timestamp-verification createdTolerance="5" warnCreated="false" expiresTolerance="10" warnExpires="false" />
-</jboss-ws-security>
\ No newline at end of file
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-full-tv.xml (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/config/jboss-wsse-full-tv.xml)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-full-tv.xml (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-full-tv.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,5 @@
+<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'>
+ <timestamp-verification createdTolerance="5" warnCreated="false" expiresTolerance="10" warnExpires="false" />
+</jboss-ws-security>
\ No newline at end of file
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-no-tv.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/config/jboss-wsse-no-tv.xml 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-no-tv.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,6 +0,0 @@
-<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'>
-
-
-</jboss-ws-security>
\ No newline at end of file
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-no-tv.xml (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/config/jboss-wsse-no-tv.xml)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-no-tv.xml (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/config/jboss-wsse-no-tv.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,6 @@
+<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'>
+
+
+</jboss-ws-security>
\ No newline at end of file
Deleted: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/wstools-config.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/wstools-config.xml 2008-04-17 14:32:47 UTC (rev 6470)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/wstools-config.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- wstools.sh -cp ../../../../../output/tests/classes -dest ./WEB-INF -config wstools-config.xml
--->
-
-<configuration xmlns="http://www.jboss.org/jbossws-tools" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.jboss.org/jbossws-tools http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
- <java-wsdl>
- <service name="TestService" endpoint="org.jboss.test.ws.jaxrpc.jbws1316.TestEndpoint" style="rpc">
- </service>
- <namespaces target-namespace="http://ws.test.jboss.org/jbws1316" type-namespace="http://ws.test.jboss.org/jbws1316/types"/>
- <mapping file="jaxrpc-mapping.xml"/>
- <webservices servlet-link="TestEndpoint"/>
- </java-wsdl>
-</configuration>
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/wstools-config.xml (from rev 6470, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxrpc/jbws1316/wstools-config.xml)
===================================================================
--- legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/wstools-config.xml (rev 0)
+++ legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/jbossws-tests/src/resources/jaxrpc/jbws1316/wstools-config.xml 2008-06-25 15:55:22 UTC (rev 7737)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ wstools.sh -cp ../../../../../output/tests/classes -dest ./WEB-INF -config wstools-config.xml
+-->
+
+<configuration xmlns="http://www.jboss.org/jbossws-tools" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.org/jbossws-tools http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
+ <java-wsdl>
+ <service name="TestService" endpoint="org.jboss.test.ws.jaxrpc.jbws1316.TestEndpoint" style="rpc">
+ </service>
+ <namespaces target-namespace="http://ws.test.jboss.org/jbws1316" type-namespace="http://ws.test.jboss.org/jbws1316/types"/>
+ <mapping file="jaxrpc-mapping.xml"/>
+ <webservices servlet-link="TestEndpoint"/>
+ </java-wsdl>
+</configuration>
15 years, 10 months
JBossWS SVN: r7736 - legacy/branches.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-06-25 10:27:02 -0400 (Wed, 25 Jun 2008)
New Revision: 7736
Added:
legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924/
Log:
[JBPAPP-924] Branch.
Copied: legacy/branches/jbossws-1.2.1.GA_CP02_JBPAPP-924 (from rev 7735, legacy/tags/jbossws-1.2.1.GA_CP02)
15 years, 10 months
JBossWS SVN: r7735 - stack/native/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2008-06-25 05:04:53 -0400 (Wed, 25 Jun 2008)
New Revision: 7735
Modified:
stack/native/trunk/modules/testsuite/test-excludes-jboss501.txt
Log:
svn merge -r 7730:7734 https://svn.jboss.org/repos/jbossws/stack/native/branches/jbossws-native-...
Modified: stack/native/trunk/modules/testsuite/test-excludes-jboss501.txt
===================================================================
--- stack/native/trunk/modules/testsuite/test-excludes-jboss501.txt 2008-06-25 08:45:21 UTC (rev 7734)
+++ stack/native/trunk/modules/testsuite/test-excludes-jboss501.txt 2008-06-25 09:04:53 UTC (rev 7735)
@@ -13,11 +13,7 @@
# [EJBTHREE-1152] service-ref in ejb-jar.xml is ignored
org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefEJBTestCase.*
-# [JBMETA-64] Default WebServiceRef name parameter changed
-org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefClientTestCase.*
-
# [JBAS-5055] Failed to load users/passwords/role files
-org/jboss/test/ws/jaxws/webserviceref/StubPropertyTestCase.*
org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.*
# [JBAS-5114] MessageDriven EJB3 does not create destination automatically
@@ -30,14 +26,5 @@
# [JBAS-5257] Cannot deploy through jax-ws endpoint API
org/jboss/test/ws/jaxws/endpoint/**
-# [JBAS-5614] Cannot access <service-ref> in nested jar
-org/jboss/test/ws/jaxrpc/jbws331/**
-org/jboss/test/ws/jaxrpc/jbws626/**
-org/jboss/test/ws/jaxrpc/jbws772/**
-org/jboss/test/ws/jaxrpc/jbws1121/**
-
# [JBWS-2217] Fix BPEL samples before AS50 goes final
org/jboss/test/ws/jaxrpc/samples/wsbpel/hello/*TestCase.*
-
-# [JBWS-2233] EJB3 webserviceref failure
-org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefEJB3TestCase.*
15 years, 10 months
JBossWS SVN: r7734 - stack/native/branches/jbossws-native-3.0.2/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2008-06-25 04:45:21 -0400 (Wed, 25 Jun 2008)
New Revision: 7734
Modified:
stack/native/branches/jbossws-native-3.0.2/modules/testsuite/test-excludes-jboss501.txt
Log:
[JBWS-2233][JBMETA-64] Updating exclude file
Modified: stack/native/branches/jbossws-native-3.0.2/modules/testsuite/test-excludes-jboss501.txt
===================================================================
--- stack/native/branches/jbossws-native-3.0.2/modules/testsuite/test-excludes-jboss501.txt 2008-06-25 07:46:26 UTC (rev 7733)
+++ stack/native/branches/jbossws-native-3.0.2/modules/testsuite/test-excludes-jboss501.txt 2008-06-25 08:45:21 UTC (rev 7734)
@@ -13,11 +13,7 @@
# [EJBTHREE-1152] service-ref in ejb-jar.xml is ignored
org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefEJBTestCase.*
-# [JBMETA-64] Default WebServiceRef name parameter changed
-org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefClientTestCase.*
-
# [JBAS-5055] Failed to load users/passwords/role files
-org/jboss/test/ws/jaxws/webserviceref/StubPropertyTestCase.*
org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.*
# [JBAS-5114] MessageDriven EJB3 does not create destination automatically
@@ -32,6 +28,3 @@
# [JBWS-2217] Fix BPEL samples before AS50 goes final
org/jboss/test/ws/jaxrpc/samples/wsbpel/hello/*TestCase.*
-
-# [JBWS-2233] EJB3 webserviceref failure
-org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefEJB3TestCase.*
15 years, 10 months
JBossWS SVN: r7733 - container/jboss50/trunk.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2008-06-25 03:46:26 -0400 (Wed, 25 Jun 2008)
New Revision: 7733
Modified:
container/jboss50/trunk/pom.xml
Log:
Updating dependencies
Modified: container/jboss50/trunk/pom.xml
===================================================================
--- container/jboss50/trunk/pom.xml 2008-06-24 15:53:36 UTC (rev 7732)
+++ container/jboss50/trunk/pom.xml 2008-06-25 07:46:26 UTC (rev 7733)
@@ -32,10 +32,10 @@
http://snapshots.jboss.org/maven2/org/jboss/jbossas/jboss-as-component-ma...
-->
<jboss.version>5.0.0-SNAPSHOT</jboss.version>
- <jboss.ejb3.version>0.1.5</jboss.ejb3.version>
+ <jboss.ejb3.version>0.1.6</jboss.ejb3.version>
<jboss.deployers.version>2.0.0.Beta17</jboss.deployers.version>
<jboss.jbossxb.version>2.0.0.CR11</jboss.jbossxb.version>
- <jboss.metadata.version>1.0.0.Beta25</jboss.metadata.version>
+ <jboss.metadata.version>1.0.0.Beta26</jboss.metadata.version>
<jboss.microcontainer.version>2.0.0.Beta15</jboss.microcontainer.version>
<jboss.reflect.version>2.0.0.Beta12</jboss.reflect.version>
<jboss.security.version>2.0.2.CR4</jboss.security.version>
15 years, 10 months
JBossWS SVN: r7732 - in stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools: client and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: david.boeren
Date: 2008-06-24 11:53:36 -0400 (Tue, 24 Jun 2008)
New Revision: 7732
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/JavaWriter.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/WSDLToJava.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/client/ServiceCreator.java
Log:
Fix for JBPAPP-921 to map hyphen characters in PortType so the resultant Java code will compile.
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/JavaWriter.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/JavaWriter.java 2008-06-24 08:46:31 UTC (rev 7731)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/JavaWriter.java 2008-06-24 15:53:36 UTC (rev 7732)
@@ -198,7 +198,7 @@
if (needToCreatePackageStructure(location, packageName))
newLoc = utils.createPackage(location.getPath(), packageName);
else newLoc = location;
- String classname = utils.chop(filename, ".java");
+ String classname = utils.chop(ToolsUtils.convertInvalidCharacters(filename), ".java");
File sei = utils.createPhysicalFile(newLoc, classname);
StringBuilder buffer = new StringBuilder();
utils.writeJbossHeader(buffer);
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/WSDLToJava.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/WSDLToJava.java 2008-06-24 08:46:31 UTC (rev 7731)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/WSDLToJava.java 2008-06-24 15:53:36 UTC (rev 7732)
@@ -309,8 +309,8 @@
if (returnType == null)
returnType = "void";
- buf.append(" public " + returnType + " ");
- buf.append(ToolsUtils.firstLetterLowerCase(op.getName().getLocalPart()));
+ buf.append(" public " + ToolsUtils.convertInvalidCharacters(returnType) + " ");
+ buf.append(ToolsUtils.convertInvalidCharacters(ToolsUtils.firstLetterLowerCase(op.getName().getLocalPart())));
buf.append("(").append(paramBuffer);
buf.append(") throws ");
@@ -646,7 +646,7 @@
className = holderWriter.getOrCreateHolder(className, getLocationForJavaGeneration());
}
- buf.append(className);
+ buf.append(ToolsUtils.convertInvalidCharacters(className));
if (xt instanceof XSComplexTypeDefinition)
generateJavaSource((XSComplexTypeDefinition)xt, xsmodel, containingElement);
@@ -659,12 +659,12 @@
StringBuilder buf = new StringBuilder();
utils.writeJbossHeader(buf);
- buf.append("package " + seiPkgName + ";" + newline);
- buf.append("public interface " + seiName + " extends java.rmi.Remote" + newline + "{" + newline);
+ buf.append("package " + ToolsUtils.convertInvalidCharacters(seiPkgName) + ";" + newline);
+ buf.append("public interface " + ToolsUtils.convertInvalidCharacters(seiName) + " extends java.rmi.Remote" + newline + "{" + newline);
appendMethods(intf, buf);
buf.append("}" + newline);
- File sei = utils.createPhysicalFile(loc, seiName);
+ File sei = utils.createPhysicalFile(loc, ToolsUtils.convertInvalidCharacters(seiName));
FileWriter writer = new FileWriter(sei);
writer.write(buf.toString());
writer.flush();
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/client/ServiceCreator.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/client/ServiceCreator.java 2008-06-24 08:46:31 UTC (rev 7731)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/client/ServiceCreator.java 2008-06-24 15:53:36 UTC (rev 7732)
@@ -33,6 +33,7 @@
import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
import org.jboss.ws.metadata.wsdl.WSDLService;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
+import org.jboss.ws.tools.ToolsUtils;
import org.jboss.ws.tools.interfaces.ServiceCreatorIntf;
import org.jboss.wsf.common.JavaUtils;
@@ -239,13 +240,27 @@
writer.close();
}
+ public static String convertInvalidCharacters(final String component)
+ {
+ String result = component;
+ for (int i = 0; i < result.length(); i++)
+ {
+ if (Character.isJavaIdentifierPart(result.charAt(i)) == false)
+ {
+ result = result.replace(result.charAt(i), '_');
+ }
+ }
+
+ return result;
+ }
+
private String generateServiceMethodForWSDLEndpoint(WSDLEndpoint endpt)
{
StringBuilder buf = new StringBuilder(" public ");
QName bindName = endpt.getBinding();
WSDLBinding wbind = wsdl.getBinding(bindName);
- buf.append(getReturnType(wbind)).append(" get");
+ buf.append(ToolsUtils.convertInvalidCharacters(getReturnType(wbind))).append(" get");
buf.append(endpt.getName().getLocalPart()).append("()").append(" throws ServiceException;").append(newLine(1));
return buf.toString();
}
15 years, 10 months