[jboss-svn-commits] JBL Code SVN: r23575 - in labs/jbosstm/workspace/interop/WSTFSC02-interop: src/com/jboss/transaction/wstf/webservices/sc003/sei and 1 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Oct 24 06:03:12 EDT 2008


Author: adinn
Date: 2008-10-24 06:03:12 -0400 (Fri, 24 Oct 2008)
New Revision: 23575

Modified:
   labs/jbosstm/workspace/interop/WSTFSC02-interop/src/com/jboss/transaction/wstf/interop/Sc003AsyncTestCase.java
   labs/jbosstm/workspace/interop/WSTFSC02-interop/src/com/jboss/transaction/wstf/webservices/sc003/sei/Sc003PortImpl.java
   labs/jbosstm/workspace/interop/WSTFSC02-interop/src/com/jboss/transaction/wstf/webservices/sc003/sei/Sc003ResponsePortImpl.java
   labs/jbosstm/workspace/interop/WSTFSC02-interop/web/sc003/index.jsp
Log:
added fixes provided by Alessio

Modified: labs/jbosstm/workspace/interop/WSTFSC02-interop/src/com/jboss/transaction/wstf/interop/Sc003AsyncTestCase.java
===================================================================
--- labs/jbosstm/workspace/interop/WSTFSC02-interop/src/com/jboss/transaction/wstf/interop/Sc003AsyncTestCase.java	2008-10-24 07:21:32 UTC (rev 23574)
+++ labs/jbosstm/workspace/interop/WSTFSC02-interop/src/com/jboss/transaction/wstf/interop/Sc003AsyncTestCase.java	2008-10-24 10:03:12 UTC (rev 23575)
@@ -320,8 +320,7 @@
             // check the fault is the one we expect
             SOAPFault fault = callback.getFault();
             QName code = fault.getFaultCodeAsQName();
-            // need to correct this
-            assertTrue("expecting SENDER fault code", FAULT_CODE_SERVER.equals(code));
+            assertTrue("expecting MUSTUNDERSTAND fault code", FAULT_CODE_MUSTUNDERSTAND.equals(code));
             // check the faultString is not faultNotify
             String faultString = fault.getFaultString();
             assertTrue("not expecting faultingNotify faultString", !FAULT_STRING_FAULTING_NOTIFY.equals(faultString));
@@ -379,8 +378,7 @@
             // check the fault is the one we expect
             SOAPFault fault = callback.getFault();
             QName code = fault.getFaultCodeAsQName();
-            // need to correct this
-            assertTrue("expecting SENDER fault code", FAULT_CODE_SERVER.equals(code));
+            assertTrue("expecting MUSTUNDERSTAND fault code", FAULT_CODE_MUSTUNDERSTAND.equals(code));
             // check the faultString is not faultNotify
             String faultString = fault.getFaultString();
             assertTrue("not expecting faultingNotify faultString", !FAULT_STRING_FAULTING_NOTIFY.equals(faultString));
@@ -438,8 +436,7 @@
             // check the fault is the one we expect
             SOAPFault fault = callback.getFault();
             QName code = fault.getFaultCodeAsQName();
-            // need to correct this
-            assertTrue("expecting SENDER fault code", FAULT_CODE_SERVER.equals(code));
+            assertTrue("expecting MUSTUNDERSTAND fault code", FAULT_CODE_MUSTUNDERSTAND.equals(code));
             // check the faultString is not faultEcho
             String faultString = fault.getFaultString();
             assertTrue("not expecting faultingEcho faultString", !FAULT_STRING_FAULTING_ECHO.equals(faultString));
@@ -497,8 +494,7 @@
             // check the fault is the one we expect
             SOAPFault fault = callback.getFault();
             QName code = fault.getFaultCodeAsQName();
-            // need to correct this
-            assertTrue("expecting SENDER fault code", FAULT_CODE_SERVER.equals(code));
+            assertTrue("expecting MUSTUNDERSTAND fault code", FAULT_CODE_MUSTUNDERSTAND.equals(code));
             // check the faultString is not faultEcho
             String faultString = fault.getFaultString();
             assertTrue("not expecting faultingEcho faultString", !FAULT_STRING_FAULTING_ECHO.equals(faultString));
@@ -662,6 +658,7 @@
     }
 
     private static final QName FAULT_CODE_SERVER = new QName("http://schemas.xmlsoap.org/soap/envelope/", "Server");
+    private static final QName FAULT_CODE_MUSTUNDERSTAND = new QName("http://schemas.xmlsoap.org/soap/envelope/", "MustUnderstand");
     private static final String FAULT_STRING_FAULTING_NOTIFY = "faultingNotify";
     private static final String FAULT_STRING_FAULTING_ECHO = "faultingEcho";
 

Modified: labs/jbosstm/workspace/interop/WSTFSC02-interop/src/com/jboss/transaction/wstf/webservices/sc003/sei/Sc003PortImpl.java
===================================================================
--- labs/jbosstm/workspace/interop/WSTFSC02-interop/src/com/jboss/transaction/wstf/webservices/sc003/sei/Sc003PortImpl.java	2008-10-24 07:21:32 UTC (rev 23574)
+++ labs/jbosstm/workspace/interop/WSTFSC02-interop/src/com/jboss/transaction/wstf/webservices/sc003/sei/Sc003PortImpl.java	2008-10-24 10:03:12 UTC (rev 23575)
@@ -1,5 +1,6 @@
 package com.jboss.transaction.wstf.webservices.sc003.sei;
 
+import org.jboss.ws.annotation.EndpointConfig;
 import org.wstf.docs.scenarios.sc002.*;
 import org.wstf.docs.scenarios.sc003.*;
 
@@ -21,7 +22,8 @@
         portName = "soap11port",
         serviceName="sc003Service")
 @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
- at HandlerChain(file="sc003handlers.xml")
+//@HandlerChain(file="sc003handlers.xml")
+ at EndpointConfig(configName="Standard WSAddressing Endpoint")
 public class Sc003PortImpl implements Sc003Port
 {
     /**

Modified: labs/jbosstm/workspace/interop/WSTFSC02-interop/src/com/jboss/transaction/wstf/webservices/sc003/sei/Sc003ResponsePortImpl.java
===================================================================
--- labs/jbosstm/workspace/interop/WSTFSC02-interop/src/com/jboss/transaction/wstf/webservices/sc003/sei/Sc003ResponsePortImpl.java	2008-10-24 07:21:32 UTC (rev 23574)
+++ labs/jbosstm/workspace/interop/WSTFSC02-interop/src/com/jboss/transaction/wstf/webservices/sc003/sei/Sc003ResponsePortImpl.java	2008-10-24 10:03:12 UTC (rev 23575)
@@ -3,6 +3,7 @@
 import org.wstf.docs.scenarios.sc003.Sc003ResponsePort;
 import org.wstf.docs.scenarios.sc002.EchoResponseType;
 import org.xmlsoap.schemas.soap.envelope.Fault;
+import org.jboss.ws.annotation.EndpointConfig;
 
 import javax.jws.*;
 import javax.jws.soap.SOAPBinding;
@@ -27,8 +28,9 @@
         portName = "soap11port",
         serviceName="sc003ResponseService")
 @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
- at HandlerChain(file="sc003responsehandlers.xml")
-public class Sc003ResponsePortImpl implements Sc003ResponsePort
+//@HandlerChain(file="sc003responsehandlers.xml")
+ at EndpointConfig(configName="Standard WSAddressing Endpoint")
+ public class Sc003ResponsePortImpl implements Sc003ResponsePort
 {
     @Resource
     WebServiceContext context;

Modified: labs/jbosstm/workspace/interop/WSTFSC02-interop/web/sc003/index.jsp
===================================================================
--- labs/jbosstm/workspace/interop/WSTFSC02-interop/web/sc003/index.jsp	2008-10-24 07:21:32 UTC (rev 23574)
+++ labs/jbosstm/workspace/interop/WSTFSC02-interop/web/sc003/index.jsp	2008-10-24 10:03:12 UTC (rev 23575)
@@ -26,8 +26,8 @@
 <p>Asynchronous Test application: <input name="<%= TestConstants.PARAM_ASYNC_TEST %>" type="checkbox" checked="checked"/></p>
 -->
 <select name="<%= TestConstants.PARAM_TEST %>">
-    <option value="<%= TestConstants.NAME_ALL_TESTS_SC003 %>">All Sc002 tests</option>
-    <option value="<%= TestConstants.NAME_ALL_TESTS_SC003_SYNC %>">All Sc002 synchronous tests</option>
+    <option value="<%= TestConstants.NAME_ALL_TESTS_SC003 %>">All Sc003 tests</option>
+    <option value="<%= TestConstants.NAME_ALL_TESTS_SC003_SYNC %>">All Sc003 synchronous tests</option>
     <option value="<%= TestConstants.NAME_ALL_TESTS_SC003 %>">All Sc002 asynchronous tests</option>
 <%
 




More information about the jboss-svn-commits mailing list