Author: dkulp
Date: Thu Jan 15 07:33:12 2009
New Revision: 734733

URL: http://svn.apache.org/viewvc?rev=734733&view=rev
Log:
Document why some of the examples dont' work yet

Modified:
    cxf/sandbox/interopfest/wstrust13/src/main/java/interop/client/Client.java
    cxf/sandbox/interopfest/wstrust13/src/main/resources/etc/client.xml

Modified: 
cxf/sandbox/interopfest/wstrust13/src/main/java/interop/client/Client.java
URL: 
http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wstrust13/src/main/java/interop/client/Client.java?rev=734733&r1=734732&r2=734733&view=diff
==============================================================================
--- cxf/sandbox/interopfest/wstrust13/src/main/java/interop/client/Client.java 
(original)
+++ cxf/sandbox/interopfest/wstrust13/src/main/java/interop/client/Client.java 
Thu Jan 15 07:33:12 2009
@@ -69,14 +69,20 @@
      */
     public static void main(String argv[])
         throws Exception {
+        
         if (argv.length < 1) {
             argv = new String[] {
                                  "CustomBinding_IPingServiceContract",
                                  
//"OasisScenario2Binding_IPingServiceContract",  //NOT_WORKING
                                  "CustomBinding_IPingServiceContract1",
                                  "OasisScenario4Binding_IPingServiceContract",
+                                 //"CustomBinding_IPingServiceContract2", 
//NOT WORKING  [1]
+                                 //"CustomBinding_IPingServiceContract3", 
//NOT WORKING - SecureConversation
+                                 //"CustomBinding_IPingServiceContract4", 
//NOT WORKING -[2]
+                                 
                                 };
         }
+        //argv = new String[] {argv[3]};
 
         Bus b = new SpringBusFactory().createBus("etc/client.xml");
         List<String> results = new ArrayList<String>(argv.length);
@@ -129,6 +135,7 @@
                     results.add("OK!");
                 }
             } catch (Throwable t) {
+                t.printStackTrace();
                 results.add("Exception: " + t);
             }
         }
@@ -138,3 +145,14 @@
     }
 
 }
+/*
+
+[1] The policy in PingService.wsdl seems to be wrong.   The 
sp:RequestSecurityTokenTemplate for it states:
+     <trust:KeyType 
xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512";>http://docs.oasis-open.org/ws-sx/ws-trust/200512/PublicKey</trust:KeyType>
+     but the "sample" produced from their online tool sends SymetricKey
+
+[2] OasisScenario9 (CustomBinding_IPingServiceContract4) isn't working yet due 
to WSS4J not supporting using 
+RSAKeyValue (KeyInfo, WS-SecurityPolicy/KeyValueToken) things for creating 
signatures
+
+
+ */

Modified: cxf/sandbox/interopfest/wstrust13/src/main/resources/etc/client.xml
URL: 
http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wstrust13/src/main/resources/etc/client.xml?rev=734733&r1=734732&r2=734733&view=diff
==============================================================================
--- cxf/sandbox/interopfest/wstrust13/src/main/resources/etc/client.xml 
(original)
+++ cxf/sandbox/interopfest/wstrust13/src/main/resources/etc/client.xml Thu Jan 
15 07:33:12 2009
@@ -76,8 +76,22 @@
                </map>
        </property>
     </bean>
+    <bean id="CustomBinding_IPingServiceContract2" 
+       class="org.apache.cxf.ws.security.trust.STSClient" abstract="true">
+       <property name="wsdlLocation" value="target/wsdl2/trust.wsdl"/>
+       <property name="serviceName" 
value="{http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice}SecurityTokenService"/>
+       <property name="endpointName" 
value="{http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice}CustomBinding_IWSTrust13Sync1"/>
+       <property name="properties">
+               <map>
+               <entry key="ws-security.callback-handler" 
value="interop.client.KeystorePasswordCallback"/>
+               <entry key="ws-security.encryption.properties" 
value="etc/wssip.properties"/> 
+               <entry key="ws-security.signature.properties" 
value="etc/alice.properties"/> 
+               </map>
+       </property>
+    </bean>
     
     
+    <alias name="CustomBinding_IPingServiceContract" 
alias="CustomBinding_IPingServiceContract4" />
     
     
     <jaxws:client 
name="{http://tempuri.org/}CustomBinding_IPingServiceContract1"; 
createdFromAPI="true">
@@ -91,6 +105,11 @@
             <entry key="ws-security.callback-handler" 
value="interop.client.KeystorePasswordCallback"/>
         </jaxws:properties>
     </jaxws:client>
+    <jaxws:client 
name="{http://tempuri.org/}CustomBinding_IPingServiceContract2"; 
createdFromAPI="true">
+        <jaxws:properties>
+            <entry key="ws-security.callback-handler" 
value="interop.client.KeystorePasswordCallback"/>
+        </jaxws:properties>
+    </jaxws:client>
     
     
      


Reply via email to