Author: dkulp Date: Sat Mar 14 02:23:40 2009 New Revision: 753588 URL: http://svn.apache.org/viewvc?rev=753588&view=rev Log: Command line for wssec11
Added: cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/download_wsdl.xml - copied unchanged from r753480, cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/build.xml Removed: cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/build.xml Modified: cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/pom.xml cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/src/main/java/interop/client/Client.java Modified: cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/pom.xml URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/pom.xml?rev=753588&r1=753587&r2=753588&view=diff ============================================================================== --- cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/pom.xml (original) +++ cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/pom.xml Sat Mar 14 02:23:40 2009 @@ -24,7 +24,8 @@ <version>1.0</version> <properties> <cxf.version>[2,)</cxf.version> - <test.method>A</test.method> + <test.method>ALL</test.method> + <test.server>MS</test.server> </properties> <build> <resources> @@ -62,7 +63,7 @@ </goals> <configuration> <tasks> - <ant inheritRefs="true" antfile="${basedir}/build.xml"> + <ant inheritRefs="true" antfile="${basedir}/download_wsdl.xml"> <property value="${basedir}/target" name="build.dir" /> <target name="download" /> </ant> @@ -124,7 +125,8 @@ <goal>java</goal> </goals> <configuration> - <mainClass>demo.hw.server.Server</mainClass> + <classpathScope>test</classpathScope> + <mainClass>interop.server.Server</mainClass> </configuration> </execution> </executions> @@ -150,6 +152,7 @@ <classpathScope>test</classpathScope> <mainClass>interop.client.Client</mainClass> <arguments> + <argument>${test.server}</argument> <argument>${test.method}</argument> </arguments> </configuration> Modified: cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/src/main/java/interop/client/Client.java URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/src/main/java/interop/client/Client.java?rev=753588&r1=753587&r2=753588&view=diff ============================================================================== --- cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/src/main/java/interop/client/Client.java (original) +++ cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/src/main/java/interop/client/Client.java Sat Mar 14 02:23:40 2009 @@ -46,7 +46,19 @@ */ public static void main(String argv[]) throws Exception { - if (argv.length < 1) { + boolean local = false; + + if (argv.length > 0 && "local".equalsIgnoreCase(argv[0])) { + local = true; + } + if (argv.length > 0 && "local".equalsIgnoreCase(argv[0]) + || "ms".equalsIgnoreCase(argv[0])) { + String tmp[] = new String[argv.length - 1]; + System.arraycopy(argv, 1, tmp, 0, tmp.length); + argv = tmp; + } + + if (argv.length < 1 || "ALL".equalsIgnoreCase(argv[0])) { argv = new String[] {"A", "A-NoTimestamp", "AD", @@ -79,7 +91,9 @@ for (String portPrefix : argv) { try { final PingService11 svc; - //wsdlLocation = new URL("http://localhost:9001/" + portPrefix + "PingService?wsdl"); + if (local) { + wsdlLocation = new URL("http://localhost:9001/" + portPrefix + "PingService?wsdl"); + } if (wsdlLocation == null) { svc = new PingService11(); } else {