Author: richard.opalka(a)jboss.com
Date: 2007-12-17 06:07:18 -0500 (Mon, 17 Dec 2007)
New Revision: 5328
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceImpl.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceImpl.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceImpl.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceImpl.java
stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/
stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/web.xml
Removed:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/OneWayServiceIface.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/OneWayServiceImpl.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/ReqResServiceIface.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/ReqResServiceImpl.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/TODO
stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/web.xml
Modified:
stack/native/trunk/ant-import-tests/build-jars-jaxws.xml
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java
stack/native/trunk/src/test/resources/jaxws/wsrm/META-INF/wsrm-jaxws-client-config.xml
stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/wsrm-jaxws-endpoint-config.xml
Log:
refactoring test services + adding new services with WSSecurity enabled
Modified: stack/native/trunk/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/trunk/ant-import-tests/build-jars-jaxws.xml 2007-12-17 10:39:26 UTC (rev
5327)
+++ stack/native/trunk/ant-import-tests/build-jars-jaxws.xml 2007-12-17 11:07:18 UTC (rev
5328)
@@ -656,12 +656,12 @@
<!-- jaxws-wsrm -->
<war warfile="${tests.output.dir}/libs/jaxws-wsrm.war"
- webxml="${tests.output.dir}/resources/jaxws/wsrm/WEB-INF/web.xml">
+
webxml="${tests.output.dir}/resources/jaxws/wsrm/WEB-INF/unsecure/web.xml">
<classes dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/wsrm/OneWayServiceIface.class"/>
- <include
name="org/jboss/test/ws/jaxws/wsrm/OneWayServiceImpl.class"/>
- <include
name="org/jboss/test/ws/jaxws/wsrm/ReqResServiceIface.class"/>
- <include
name="org/jboss/test/ws/jaxws/wsrm/ReqResServiceImpl.class"/>
+ <include
name="org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.class"/>
+ <include
name="org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceImpl.class"/>
+ <include
name="org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.class"/>
+ <include
name="org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceImpl.class"/>
</classes>
<webinf dir="${tests.output.dir}/resources/jaxws/wsrm/WEB-INF">
<include name="wsrm-exactly-once-in-order-policy.xml"/>
Deleted:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/OneWayServiceIface.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/OneWayServiceIface.java 2007-12-17
10:39:26 UTC (rev 5327)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/OneWayServiceIface.java 2007-12-17
11:07:18 UTC (rev 5328)
@@ -1,28 +0,0 @@
-package org.jboss.test.ws.jaxws.wsrm;
-
-import javax.jws.Oneway;
-import javax.jws.WebService;
-import javax.xml.ws.addressing.Action;
-
-import org.jboss.ws.annotation.EndpointConfig;
-
-@WebService
-@EndpointConfig
-(
- configName = "Standard WSRM Client",
- configFile = "META-INF/wsrm-jaxws-client-config.xml"
-)
-public interface OneWayServiceIface
-{
- @Oneway
- @Action(input="http://wsrm.example/oneway/method1")
- void method1();
-
- @Action(input="http://wsrm.example/oneway/method2")
- @Oneway
- void method2(String s);
-
- @Action(input="http://wsrm.example/oneway/method3")
- @Oneway
- void method3(String[] sa);
-}
Deleted:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/OneWayServiceImpl.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/OneWayServiceImpl.java 2007-12-17
10:39:26 UTC (rev 5327)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/OneWayServiceImpl.java 2007-12-17
11:07:18 UTC (rev 5328)
@@ -1,58 +0,0 @@
-package org.jboss.test.ws.jaxws.wsrm;
-
-import javax.jws.Oneway;
-import javax.jws.WebService;
-import javax.xml.ws.addressing.Action;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.annotation.EndpointConfig;
-import org.jboss.ws.extensions.policy.PolicyScopeLevel;
-import org.jboss.ws.extensions.policy.annotation.Policy;
-import org.jboss.ws.extensions.policy.annotation.PolicyAttachment;
-
-import java.util.Arrays;
-
-@WebService
-(
- name = "OneWay",
- serviceName = "OneWayService",
- endpointInterface = "org.jboss.test.ws.jaxws.wsrm.OneWayServiceIface"
-)
-@PolicyAttachment
-(
- @Policy
- (
- policyFileLocation = "WEB-INF/wsrm-exactly-once-in-order-policy.xml",
- scope = PolicyScopeLevel.WSDL_BINDING
- )
-)
-@EndpointConfig
-(
- configName = "Standard WSRM Endpoint",
- configFile = "WEB-INF/wsrm-jaxws-endpoint-config.xml"
-)
-public class OneWayServiceImpl implements OneWayServiceIface
-{
- private Logger log = Logger.getLogger(OneWayServiceImpl.class);
-
- @Action(input="http://wsrm.example/oneway/method1")
- @Oneway
- public void method1()
- {
- log.info("method1()");
- }
-
- @Action(input="http://wsrm.example/oneway/method2")
- @Oneway
- public void method2(String s)
- {
- log.info("method2(" + s + ")");
- }
-
- @Action(input="http://wsrm.example/oneway/method3")
- @Oneway
- public void method3(String[] sa)
- {
- log.info("method3(" + Arrays.asList(sa) + ")");
- }
-}
Deleted:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/ReqResServiceIface.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/ReqResServiceIface.java 2007-12-17
10:39:26 UTC (rev 5327)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/ReqResServiceIface.java 2007-12-17
11:07:18 UTC (rev 5328)
@@ -1,36 +0,0 @@
-package org.jboss.test.ws.jaxws.wsrm;
-
-import java.util.concurrent.Future;
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebResult;
-import javax.jws.WebService;
-
-import javax.xml.ws.addressing.Action;
-import javax.xml.ws.AsyncHandler;
-import javax.xml.ws.Response;
-
-import org.jboss.ws.annotation.EndpointConfig;
-
-@WebService(name = "ReqRes", targetNamespace =
"http://org.jboss.ws/jaxws/wsrm")
-@EndpointConfig
-(
- configName = "Standard WSRM Client",
- configFile = "META-INF/wsrm-jaxws-client-config.xml"
-)
-public interface ReqResServiceIface
-{
- @WebMethod(operationName = "echo")
- @Action(input="http://wsrm.example/reqres/echo/input",
output="http://wsrm.example/reqres/echo/output")
- public Response<String> echoAsync(@WebParam(name = "String_1") String
string1);
-
- @WebMethod(operationName = "echo")
- @Action(input="http://wsrm.example/reqres/echo/input",
output="http://wsrm.example/reqres/echo/output")
- public Future<?> echoAsync(@WebParam(name = "String_1") String
string1, @WebParam(name = "asyncHandler") AsyncHandler<String>
asyncHandler);
-
- @WebMethod
- @WebResult(name = "result")
- @Action(input="http://wsrm.example/reqres/echo/input",
output="http://wsrm.example/reqres/echo/output")
- public String echo(@WebParam(name = "String_1") String string1);
-}
Deleted:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/ReqResServiceImpl.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/ReqResServiceImpl.java 2007-12-17
10:39:26 UTC (rev 5327)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/ReqResServiceImpl.java 2007-12-17
11:07:18 UTC (rev 5328)
@@ -1,46 +0,0 @@
-package org.jboss.test.ws.jaxws.wsrm;
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebResult;
-import javax.jws.WebService;
-import javax.xml.ws.addressing.Action;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.annotation.EndpointConfig;
-import org.jboss.ws.extensions.policy.PolicyScopeLevel;
-import org.jboss.ws.extensions.policy.annotation.Policy;
-import org.jboss.ws.extensions.policy.annotation.PolicyAttachment;
-
-@WebService
-(
- name = "ReqRes",
- serviceName = "ReqResService",
- targetNamespace = "http://org.jboss.ws/jaxws/wsrm"
-)
-@PolicyAttachment
-(
- @Policy
- (
- policyFileLocation = "WEB-INF/wsrm-exactly-once-in-order-policy.xml",
- scope = PolicyScopeLevel.WSDL_BINDING
- )
-)
-@EndpointConfig
-(
- configName = "Standard WSRM Endpoint",
- configFile = "WEB-INF/wsrm-jaxws-endpoint-config.xml"
-)
-public class ReqResServiceImpl
-{
- private static Logger log = Logger.getLogger(ReqResServiceImpl.class);
-
- @WebMethod
- @WebResult(name = "result")
- @Action(input="http://wsrm.example/reqres/echo/input",
output="http://wsrm.example/reqres/echo/output")
- public String echo(@WebParam(name = "String_1") String msg)
- {
- log.info("echo: " + msg);
- return msg;
- }
-}
Deleted: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/TODO
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/TODO 2007-12-17 10:39:26
UTC (rev 5327)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/TODO 2007-12-17 11:07:18
UTC (rev 5328)
@@ -1,32 +0,0 @@
-Priority | Task
---------------------------------------------------------------------------------
-MUST | Server can send AckRequested, CloseSequence or TerminateSequence
- | asynchronously any time. RMSender must count with that and thus
- | register a callback handler that will listen for these messages.
- | Once such message arrives (applies to backports only), it will
- | call sequence registry and notifies the sequence that there's a
- | message for it in the RMTransport. SequenceManager in next iteration
- | will detect that sequence is in the special state and initiates
- | dummy method call (dummy method call is the call that will not go
- | to the wire and will not be executed through the outbound handler
- | chain. When such dummy method call will arrive to the RMTransport,
- | RMSender will return it the arrived AckRequested, CloseSequence or
- | TerminateSequence message, this message will be executed throught
- | inbound message handlers (WS-Security will be executed properly)
- | and sequence state will change (e.g. when AckRequested message will
- | arrive for req/res message exchange pattern, then sequence state will
- | change to SequenceAcknowledgement requested). SequenceManager
- | in later iteration will detect this new state and will send sequence
- | acknowledgement message to the server (or CloseSequenceResponse)
---------------------------------------------------------------------------------
-MUST | Create the test for above use-cases (AckRequested, Close(Terminate)S
---------------------------------------------------------------------------------
-MUST | Implement one way method call in the same way as above investigation.
---------------------------------------------------------------------------------
-MUST | Users must be able to specify in sequence creation code whether
- | reliable sequence is simplex (for one way messages only) or duplex
- | (req-res message exchange pattern) - default will be duplex
---------------------------------------------------------------------------------
-MUST | Users must be able to specify wether client is anonymous or
- | addressable - default will be addressable
---------------------------------------------------------------------------------
\ No newline at end of file
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java 2007-12-17
10:39:26 UTC (rev 5327)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/oneway/RMAbstractOneWayTest.java 2007-12-17
11:07:18 UTC (rev 5328)
@@ -35,7 +35,7 @@
import org.jboss.ws.extensions.wsrm.api.RMProvider;
import org.jboss.ws.extensions.wsrm.api.RMSequence;
import org.jboss.wsf.test.JBossWSTest;
-import org.jboss.test.ws.jaxws.wsrm.OneWayServiceIface;
+import org.jboss.test.ws.jaxws.wsrm.services.OneWayServiceIface;
/**
* Reliable JBoss WebService client invoking one way methods
@@ -47,7 +47,7 @@
{
private static final Properties props = new Properties();
private final String serviceURL = "http://" + getServerHost() +
":" + props.getProperty("port") +
props.getProperty("path");
- private String targetNS = "http://wsrm.jaxws.ws.test.jboss.org/";
+ private String targetNS = "http://org.jboss.ws/jaxws/wsrm";
private OneWayServiceIface proxy;
static
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java 2007-12-17
10:39:26 UTC (rev 5327)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/reqres/RMAbstractReqResTest.java 2007-12-17
11:07:18 UTC (rev 5328)
@@ -40,7 +40,7 @@
import javax.xml.ws.Service;
import org.jboss.wsf.test.JBossWSTest;
-import org.jboss.test.ws.jaxws.wsrm.ReqResServiceIface;
+import org.jboss.test.ws.jaxws.wsrm.services.ReqResServiceIface;
import org.jboss.ws.extensions.wsrm.api.RMProvider;
import org.jboss.ws.extensions.wsrm.api.RMSequence;
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.java 2007-12-17
11:07:18 UTC (rev 5328)
@@ -0,0 +1,24 @@
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import javax.jws.Oneway;
+import javax.jws.WebService;
+
+import org.jboss.ws.annotation.EndpointConfig;
+
+@WebService
+@EndpointConfig
+(
+ configName = "Standard WSRM Client",
+ configFile = "META-INF/wsrm-jaxws-client-config.xml"
+)
+public interface OneWayServiceIface
+{
+ @Oneway
+ void method1();
+
+ @Oneway
+ void method2(String s);
+
+ @Oneway
+ void method3(String[] sa);
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceIface.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceImpl.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceImpl.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceImpl.java 2007-12-17
11:07:18 UTC (rev 5328)
@@ -0,0 +1,55 @@
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import javax.jws.Oneway;
+import javax.jws.WebService;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.ws.extensions.policy.PolicyScopeLevel;
+import org.jboss.ws.extensions.policy.annotation.Policy;
+import org.jboss.ws.extensions.policy.annotation.PolicyAttachment;
+
+import java.util.Arrays;
+
+@WebService
+(
+ name = "OneWay",
+ serviceName = "OneWayService",
+ targetNamespace = "http://org.jboss.ws/jaxws/wsrm",
+ endpointInterface =
"org.jboss.test.ws.jaxws.wsrm.services.OneWayServiceIface"
+)
+@PolicyAttachment
+(
+ @Policy
+ (
+ policyFileLocation = "WEB-INF/wsrm-exactly-once-in-order-policy.xml",
+ scope = PolicyScopeLevel.WSDL_BINDING
+ )
+)
+@EndpointConfig
+(
+ configName = "Standard WSRM Endpoint",
+ configFile = "WEB-INF/wsrm-jaxws-endpoint-config.xml"
+)
+public class OneWayServiceImpl implements OneWayServiceIface
+{
+ private Logger log = Logger.getLogger(OneWayServiceImpl.class);
+
+ @Oneway
+ public void method1()
+ {
+ log.info("method1()");
+ }
+
+ @Oneway
+ public void method2(String s)
+ {
+ log.info("method2(" + s + ")");
+ }
+
+ @Oneway
+ public void method3(String[] sa)
+ {
+ log.info("method3(" + Arrays.asList(sa) + ")");
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/OneWayServiceImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.java 2007-12-17
11:07:18 UTC (rev 5328)
@@ -0,0 +1,29 @@
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import java.util.concurrent.Future;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+import javax.xml.ws.AsyncHandler;
+import javax.xml.ws.Response;
+
+import org.jboss.ws.annotation.EndpointConfig;
+
+@WebService
+@EndpointConfig
+(
+ configName = "Standard WSRM Client",
+ configFile = "META-INF/wsrm-jaxws-client-config.xml"
+)
+public interface ReqResServiceIface
+{
+ @WebMethod(operationName = "echo")
+ public Response<String> echoAsync(String s);
+
+ @WebMethod(operationName = "echo")
+ public Future<?> echoAsync(String s, AsyncHandler<String> h);
+
+ @WebMethod
+ public String echo(String s);
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceIface.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceImpl.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceImpl.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceImpl.java 2007-12-17
11:07:18 UTC (rev 5328)
@@ -0,0 +1,42 @@
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.ws.extensions.policy.PolicyScopeLevel;
+import org.jboss.ws.extensions.policy.annotation.Policy;
+import org.jboss.ws.extensions.policy.annotation.PolicyAttachment;
+
+@WebService
+(
+ name = "ReqRes",
+ serviceName = "ReqResService",
+ targetNamespace = "http://org.jboss.ws/jaxws/wsrm",
+ endpointInterface =
"org.jboss.test.ws.jaxws.wsrm.services.ReqResServiceIface"
+)
+@PolicyAttachment
+(
+ @Policy
+ (
+ policyFileLocation = "WEB-INF/wsrm-exactly-once-in-order-policy.xml",
+ scope = PolicyScopeLevel.WSDL_BINDING
+ )
+)
+@EndpointConfig
+(
+ configName = "Standard WSRM Endpoint",
+ configFile = "WEB-INF/wsrm-jaxws-endpoint-config.xml"
+)
+public class ReqResServiceImpl
+{
+ private static Logger log = Logger.getLogger(ReqResServiceImpl.class);
+
+ @WebMethod
+ public String echo(String s)
+ {
+ log.info("echo(" + s + ")");
+ return s;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/ReqResServiceImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.java 2007-12-17
11:07:18 UTC (rev 5328)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import javax.jws.Oneway;
+import javax.jws.WebService;
+
+import org.jboss.ws.annotation.EndpointConfig;
+
+@WebService
+@EndpointConfig
+(
+ configName = "Secured WSRM Client",
+ configFile = "META-INF/wsrm-jaxws-client-config.xml"
+)
+public interface SecuredOneWayServiceIface
+{
+ @Oneway
+ void method1();
+
+ @Oneway
+ void method2(String s);
+
+ @Oneway
+ void method3(String[] sa);
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceIface.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceImpl.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceImpl.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceImpl.java 2007-12-17
11:07:18 UTC (rev 5328)
@@ -0,0 +1,76 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import java.util.Arrays;
+
+import javax.jws.Oneway;
+import javax.jws.WebService;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.ws.extensions.policy.PolicyScopeLevel;
+import org.jboss.ws.extensions.policy.annotation.Policy;
+import org.jboss.ws.extensions.policy.annotation.PolicyAttachment;
+
+@WebService
+(
+ name = "SecuredOneWay",
+ serviceName = "SecuredOneWayService",
+ targetNamespace = "http://org.jboss.ws/jaxws/wsrm",
+ endpointInterface =
"org.jboss.test.ws.jaxws.wsrm.services.SecuredOneWayServiceIface"
+)
+@PolicyAttachment
+(
+ @Policy
+ (
+ policyFileLocation = "WEB-INF/wsrm-exactly-once-in-order-policy.xml",
+ scope = PolicyScopeLevel.WSDL_BINDING
+ )
+)
+@EndpointConfig
+(
+ configName = "Secured WSRM Endpoint",
+ configFile = "WEB-INF/wsrm-jaxws-endpoint-config.xml"
+)
+public class SecuredOneWayServiceImpl implements SecuredOneWayServiceIface
+{
+ private Logger log = Logger.getLogger(SecuredOneWayServiceImpl.class);
+
+ @Oneway
+ public void method1()
+ {
+ log.info("method1()");
+ }
+
+ @Oneway
+ public void method2(String s)
+ {
+ log.info("method2(" + s + ")");
+ }
+
+ @Oneway
+ public void method3(String[] sa)
+ {
+ log.info("method3(" + Arrays.asList(sa) + ")");
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredOneWayServiceImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.java 2007-12-17
11:07:18 UTC (rev 5328)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import java.util.concurrent.Future;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.xml.ws.AsyncHandler;
+import javax.xml.ws.Response;
+
+import org.jboss.ws.annotation.EndpointConfig;
+
+@WebService
+@EndpointConfig
+(
+ configName = "Standard WSRM Client",
+ configFile = "META-INF/wsrm-jaxws-client-config.xml"
+)
+public interface SecuredReqResServiceIface
+{
+ @WebMethod(operationName = "echo")
+ public Response<String> echoAsync(String s);
+
+ @WebMethod(operationName = "echo")
+ public Future<?> echoAsync(String s, AsyncHandler<String> h);
+
+ @WebMethod
+ public String echo(String s);
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceIface.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceImpl.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceImpl.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceImpl.java 2007-12-17
11:07:18 UTC (rev 5328)
@@ -0,0 +1,66 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.wsrm.services;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.ws.addressing.Action;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.ws.extensions.policy.PolicyScopeLevel;
+import org.jboss.ws.extensions.policy.annotation.Policy;
+import org.jboss.ws.extensions.policy.annotation.PolicyAttachment;
+
+@WebService
+(
+ name = "SecuredReqRes",
+ serviceName = "SecuredReqResService",
+ targetNamespace = "http://org.jboss.ws/jaxws/wsrm",
+ endpointInterface =
"org.jboss.test.ws.jaxws.wsrm.services.SecuredReqResServiceIface"
+)
+@PolicyAttachment
+(
+ @Policy
+ (
+ policyFileLocation = "WEB-INF/wsrm-exactly-once-in-order-policy.xml",
+ scope = PolicyScopeLevel.WSDL_BINDING
+ )
+)
+@EndpointConfig
+(
+ configName = "Standard WSRM Endpoint",
+ configFile = "WEB-INF/wsrm-jaxws-endpoint-config.xml"
+)
+public class SecuredReqResServiceImpl
+{
+ private static Logger log = Logger.getLogger(SecuredReqResServiceImpl.class);
+
+ @WebMethod
+ public String echo(String s)
+ {
+ log.info("echo(" + s + ")");
+ return s;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/wsrm/services/SecuredReqResServiceImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified:
stack/native/trunk/src/test/resources/jaxws/wsrm/META-INF/wsrm-jaxws-client-config.xml
===================================================================
---
stack/native/trunk/src/test/resources/jaxws/wsrm/META-INF/wsrm-jaxws-client-config.xml 2007-12-17
10:39:26 UTC (rev 5327)
+++
stack/native/trunk/src/test/resources/jaxws/wsrm/META-INF/wsrm-jaxws-client-config.xml 2007-12-17
11:07:18 UTC (rev 5328)
@@ -27,4 +27,29 @@
</post-handler-chains>
</client-config>
+ <client-config>
+ <config-name>Secured WSRM Client</config-name>
+ <reliable-messaging>
+ <backports-server port="7777"/>
+ <message-retransmission attempts="50" interval="10"
timeout="3"/>
+ </reliable-messaging>
+ <post-handler-chains>
+ <javaee:handler-chain>
+ <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
+ <javaee:handler>
+ <javaee:handler-name>WSAddressing Handler</javaee:handler-name>
+
<javaee:handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler</javaee:handler-class>
+ </javaee:handler>
+ <javaee:handler>
+ <javaee:handler-name>WSRM Handler</javaee:handler-name>
+
<javaee:handler-class>org.jboss.ws.extensions.wsrm.jaxws.RMClientHandler</javaee:handler-class>
+ </javaee:handler>
+ <javaee:handler>
+ <javaee:handler-name>WSSecurity Handler</javaee:handler-name>
+
<javaee:handler-class>org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient</javaee:handler-class>
+ </javaee:handler>
+ </javaee:handler-chain>
+ </post-handler-chains>
+ </client-config>
+
</jaxws-config>
Added: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/web.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/web.xml
(rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/web.xml 2007-12-17
11:07:18 UTC (rev 5328)
@@ -0,0 +1,28 @@
+<?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">
+
+ <servlet>
+ <servlet-name>OneWayService</servlet-name>
+
<servlet-class>org.jboss.test.ws.jaxws.wsrm.services.OneWayServiceImpl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>OneWayService</servlet-name>
+ <url-pattern>/OneWayService</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <servlet-name>ReqResService</servlet-name>
+
<servlet-class>org.jboss.test.ws.jaxws.wsrm.services.ReqResServiceImpl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>ReqResService</servlet-name>
+ <url-pattern>/ReqResService</url-pattern>
+ </servlet-mapping>
+
+</web-app>
Property changes on:
stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/unsecure/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Deleted: stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/web.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/web.xml 2007-12-17 10:39:26
UTC (rev 5327)
+++ stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/web.xml 2007-12-17 11:07:18
UTC (rev 5328)
@@ -1,28 +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">
-
- <servlet>
- <servlet-name>OneWayService</servlet-name>
-
<servlet-class>org.jboss.test.ws.jaxws.wsrm.OneWayServiceImpl</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>OneWayService</servlet-name>
- <url-pattern>/OneWayService</url-pattern>
- </servlet-mapping>
-
- <servlet>
- <servlet-name>ReqResService</servlet-name>
-
<servlet-class>org.jboss.test.ws.jaxws.wsrm.ReqResServiceImpl</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>ReqResService</servlet-name>
- <url-pattern>/ReqResService</url-pattern>
- </servlet-mapping>
-
-</web-app>
Modified:
stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/wsrm-jaxws-endpoint-config.xml
===================================================================
---
stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/wsrm-jaxws-endpoint-config.xml 2007-12-17
10:39:26 UTC (rev 5327)
+++
stack/native/trunk/src/test/resources/jaxws/wsrm/WEB-INF/wsrm-jaxws-endpoint-config.xml 2007-12-17
11:07:18 UTC (rev 5328)
@@ -23,4 +23,25 @@
</post-handler-chains>
</endpoint-config>
+ <endpoint-config>
+ <config-name>Secured WSRM Endpoint</config-name>
+ <post-handler-chains>
+ <javaee:handler-chain>
+ <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
+ <javaee:handler>
+ <javaee:handler-name>WSAddressing Handler</javaee:handler-name>
+
<javaee:handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingServerHandler</javaee:handler-class>
+ </javaee:handler>
+ <javaee:handler>
+ <javaee:handler-name>WSRM Handler</javaee:handler-name>
+
<javaee:handler-class>org.jboss.ws.extensions.wsrm.jaxws.RMServerHandler</javaee:handler-class>
+ </javaee:handler>
+ <javaee:handler>
+ <javaee:handler-name>WSSecurity Handler</javaee:handler-name>
+
<javaee:handler-class>org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer</javaee:handler-class>
+ </javaee:handler>
+ </javaee:handler-chain>
+ </post-handler-chains>
+ </endpoint-config>
+
</jaxws-config>