cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r752239 - /cxf/sandbox/interopfest/wssc/src/main/java/interop/client/Client.java
Date Tue, 10 Mar 2009 20:16:59 GMT
Author: dkulp
Date: Tue Mar 10 20:16:59 2009
New Revision: 752239

URL: http://svn.apache.org/viewvc?rev=752239&view=rev
Log:
Cancel the _ versions as per MS's policy

Modified:
    cxf/sandbox/interopfest/wssc/src/main/java/interop/client/Client.java

Modified: cxf/sandbox/interopfest/wssc/src/main/java/interop/client/Client.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssc/src/main/java/interop/client/Client.java?rev=752239&r1=752238&r2=752239&view=diff
==============================================================================
--- cxf/sandbox/interopfest/wssc/src/main/java/interop/client/Client.java (original)
+++ cxf/sandbox/interopfest/wssc/src/main/java/interop/client/Client.java Tue Mar 10 20:16:59
2009
@@ -26,6 +26,7 @@
 import javax.xml.ws.BindingProvider;
 
 import org.apache.cxf.bus.spring.SpringBusFactory;
+import org.apache.cxf.ws.security.SecurityConstants;
 import org.xmlsoap.ping.Ping;
 
 import interopbaseaddress.interop.IPingService;
@@ -94,7 +95,7 @@
                 //"_KD-SEES_IPingService",
             };
         }
-        //argv = new String[] {argv[0]};
+        //argv = new String[] {argv[4]};
         //argv = new String[] {"_X10_IPingService"};
         
         new SpringBusFactory().createBus("etc/client.xml");
@@ -133,6 +134,12 @@
                     ((BindingProvider)port).getRequestContext()
                         .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, getEndpointName(portPrefix));
                 }
+                
+                if (portPrefix.charAt(0) == '_') {
+                    //MS would like the _ versions to send a cancel
+                    ((BindingProvider)port).getRequestContext()
+                        .put(SecurityConstants.STS_TOKEN_DO_CANCEL, Boolean.TRUE);
+                }
                 PingRequest params = new PingRequest();
                 Ping ping = new Ping();
                 ping.setOrigin("CXF");



Mime
View raw message