Author: richard.opalka(a)jboss.com
Date: 2007-10-08 14:26:57 -0400 (Mon, 08 Oct 2007)
New Revision: 4695
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/IUserAccountService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/IUserAccountServiceExt.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/UserAccountService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/UserAccountServiceExt.java
stack/native/trunk/src/test/resources/test-excludes-jboss40.no.ejb3.txt
Log:
[JBWS-1799] reparing services
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/IUserAccountService.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/IUserAccountService.java 2007-10-08
16:24:35 UTC (rev 4694)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/IUserAccountService.java 2007-10-08
18:26:57 UTC (rev 4695)
@@ -22,6 +22,8 @@
package org.jboss.test.ws.jaxws.jbws1799;
import javax.ejb.Remote;
+import javax.jws.WebParam;
+import javax.jws.WebService;
/**
* First service interface
@@ -31,7 +33,11 @@
* @since Oct 8, 2007
*/
@Remote
+@WebService
public interface IUserAccountService
{
- public boolean authenticate(String aUsername);
+ public boolean authenticate
+ (
+ @WebParam(name="username") String username
+ );
}
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/IUserAccountServiceExt.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/IUserAccountServiceExt.java 2007-10-08
16:24:35 UTC (rev 4694)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/IUserAccountServiceExt.java 2007-10-08
18:26:57 UTC (rev 4695)
@@ -22,6 +22,8 @@
package org.jboss.test.ws.jaxws.jbws1799;
import javax.ejb.Remote;
+import javax.jws.WebParam;
+import javax.jws.WebService;
/**
* Second service interface
@@ -31,7 +33,12 @@
* @since Oct 8, 2007
*/
@Remote
+@WebService
public interface IUserAccountServiceExt
{
- public boolean authenticate(String aUsername, String aPassword);
+ public boolean authenticate
+ (
+ @WebParam(name="username") String username,
+ @WebParam(name="password") String password
+ );
}
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/UserAccountService.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/UserAccountService.java 2007-10-08
16:24:35 UTC (rev 4694)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/UserAccountService.java 2007-10-08
18:26:57 UTC (rev 4695)
@@ -61,9 +61,9 @@
@TransactionAttribute(javax.ejb.TransactionAttributeType.SUPPORTS)
public boolean authenticate
(
- @WebParam(name="username") String aUsername
+ @WebParam(name="username") String username
)
{
- return true;
+ return "authorized".equals(username);
}
}
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/UserAccountServiceExt.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/UserAccountServiceExt.java 2007-10-08
16:24:35 UTC (rev 4694)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1799/UserAccountServiceExt.java 2007-10-08
18:26:57 UTC (rev 4695)
@@ -65,6 +65,6 @@
@WebParam(name="password") String password
)
{
- return true;
+ return "authorized".equals(username) &&
"password".equals(password);
}
}
Modified: stack/native/trunk/src/test/resources/test-excludes-jboss40.no.ejb3.txt
===================================================================
--- stack/native/trunk/src/test/resources/test-excludes-jboss40.no.ejb3.txt 2007-10-08
16:24:35 UTC (rev 4694)
+++ stack/native/trunk/src/test/resources/test-excludes-jboss40.no.ejb3.txt 2007-10-08
18:26:57 UTC (rev 4695)
@@ -19,6 +19,7 @@
org/jboss/test/ws/jaxws/jbws1581/**
org/jboss/test/ws/jaxws/jbws1665/**
org/jboss/test/ws/jaxws/jbws1694/**
+org/jboss/test/ws/jaxws/jbws1799/**
org/jboss/test/ws/jaxws/jbws771/**
org/jboss/test/ws/jaxws/jbws944/**
org/jboss/test/ws/jaxws/jbws981/**
Show replies by date