cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r826762 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
Date Mon, 19 Oct 2009 19:02:37 GMT
Author: dkulp
Date: Mon Oct 19 19:02:36 2009
New Revision: 826762

URL: http://svn.apache.org/viewvc?rev=826762&view=rev
Log:
Set action for cancel/validate as well

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java?rev=826762&r1=826761&r2=826762&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
Mon Oct 19 19:02:36 2009
@@ -494,6 +494,10 @@
         client.getRequestContext().put(SecurityConstants.TOKEN, tok);
         BindingOperationInfo boi = findOperation("/RST/Validate");
         
+        client.getRequestContext().put(SoapBindingConstants.SOAP_ACTION, 
+                                       namespace + "/RST/Validate");
+
+        
         W3CDOMStreamWriter writer = new W3CDOMStreamWriter();
         writer.writeStartElement("wst", "RequestSecurityToken", namespace);
         writer.writeStartElement("wst", "RequestType", namespace);
@@ -561,6 +565,10 @@
         client.getRequestContext().put(PolicyConstants.POLICY_OVERRIDE, cancelPolicy);
         client.getRequestContext().put(SecurityConstants.TOKEN, token);
         BindingOperationInfo boi = findOperation("/RST/Cancel");
+        
+        client.getRequestContext().put(SoapBindingConstants.SOAP_ACTION, 
+                                       namespace + "/RST/Cancel");
+
 
         W3CDOMStreamWriter writer = new W3CDOMStreamWriter();
         writer.writeStartElement("wst", "RequestSecurityToken", namespace);



Mime
View raw message