Author: thomas.diesler(a)jboss.com
Date: 2007-05-31 08:56:16 -0400 (Thu, 31 May 2007)
New Revision: 3329
Modified:
trunk/integration/sunri/src/test/resources/excludes-jboss50.txt
trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/context/EndpointEJB.java
trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/context/EndpointJSE.java
Log:
[JBWS-1699] - Fix WebServiceContext.getMessageContext()
Modified: trunk/integration/sunri/src/test/resources/excludes-jboss50.txt
===================================================================
--- trunk/integration/sunri/src/test/resources/excludes-jboss50.txt 2007-05-31 12:12:02
UTC (rev 3328)
+++ trunk/integration/sunri/src/test/resources/excludes-jboss50.txt 2007-05-31 12:56:16
UTC (rev 3329)
@@ -2,7 +2,9 @@
# $Id$
#
-org/jboss/test/ws/jaxws/samples/context/**
+# [JBWS-1699] - Fix WebServiceContext.getMessageContext()
+org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java
+
org/jboss/test/ws/jaxws/samples/exception/**
org/jboss/test/ws/jaxws/samples/handlerchain/**
org/jboss/test/ws/jaxws/samples/httpbinding/**
Modified:
trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/context/EndpointEJB.java
===================================================================
---
trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/context/EndpointEJB.java 2007-05-31
12:12:02 UTC (rev 3328)
+++
trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/context/EndpointEJB.java 2007-05-31
12:56:16 UTC (rev 3329)
@@ -33,7 +33,7 @@
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;
import javax.xml.ws.WebServiceContext;
-import javax.xml.ws.handler.soap.SOAPMessageContext;
+import javax.xml.ws.handler.MessageContext;
import org.jboss.annotation.security.SecurityDomain;
import org.jboss.wsf.spi.annotation.WebContext;
@@ -41,7 +41,6 @@
@WebService(name = "TestEndpoint", targetNamespace =
"http://org.jboss.ws/jaxws/context")
@SOAPBinding(style = Style.RPC)
@Stateless
-
@WebContext(contextRoot = "/jaxws-samples-context", urlPattern =
"/*", authMethod = "BASIC", transportGuarantee = "NONE",
secureWSDLAccess = false)
@SecurityDomain("JBossWS")
@RolesAllowed("friend")
@@ -53,7 +52,7 @@
@WebMethod
public String testGetMessageContext()
{
- SOAPMessageContext jaxwsContext = (SOAPMessageContext)wsCtx.getMessageContext();
+ MessageContext jaxwsContext = (MessageContext)wsCtx.getMessageContext();
return jaxwsContext != null ? "pass" : "fail";
}
Modified:
trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/context/EndpointJSE.java
===================================================================
---
trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/context/EndpointJSE.java 2007-05-31
12:12:02 UTC (rev 3328)
+++
trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/context/EndpointJSE.java 2007-05-31
12:56:16 UTC (rev 3329)
@@ -31,9 +31,9 @@
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;
import javax.xml.ws.WebServiceContext;
-import javax.xml.ws.handler.soap.SOAPMessageContext;
+import javax.xml.ws.handler.MessageContext;
-@WebService(name = "TestEndpoint", targetNamespace =
"http://org.jboss.ws/jaxws/context")
+@WebService(name = "TestEndpoint", serviceName =
"TestEndpointService", targetNamespace =
"http://org.jboss.ws/jaxws/context")
@SOAPBinding(style = Style.RPC)
public class EndpointJSE
{
@@ -43,7 +43,7 @@
@WebMethod
public String testGetMessageContext()
{
- SOAPMessageContext jaxwsContext = (SOAPMessageContext)wsCtx.getMessageContext();
+ MessageContext jaxwsContext = (MessageContext)wsCtx.getMessageContext();
return jaxwsContext != null ? "pass" : "fail";
}
Show replies by date