Return-Path: Delivered-To: apmail-ws-wss4j-dev-archive@www.apache.org Received: (qmail 10856 invoked from network); 5 Nov 2005 05:32:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Nov 2005 05:32:43 -0000 Received: (qmail 14579 invoked by uid 500); 5 Nov 2005 05:32:42 -0000 Delivered-To: apmail-ws-wss4j-dev-archive@ws.apache.org Received: (qmail 14325 invoked by uid 500); 5 Nov 2005 05:32:40 -0000 Mailing-List: contact wss4j-dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list wss4j-dev@ws.apache.org Received: (qmail 14314 invoked by uid 500); 5 Nov 2005 05:32:40 -0000 Delivered-To: apmail-ws-wss4j-cvs@ws.apache.org Received: (qmail 14311 invoked by uid 99); 5 Nov 2005 05:32:40 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 04 Nov 2005 21:32:39 -0800 Received: (qmail 10755 invoked by uid 65534); 5 Nov 2005 05:32:19 -0000 Message-ID: <20051105053219.10754.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r330974 - in /webservices/wss4j/trunk: ./ samples/org/apache/ws/sandbox/ samples/org/apache/ws/sandbox/security/ samples/org/apache/ws/sandbox/security/trust2/ samples/org/apache/ws/sandbox/security/trust2/samples/ src/org/apache/ws/sandbox... Date: Sat, 05 Nov 2005 05:32:14 -0000 To: wss4j-cvs@ws.apache.org From: dims@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: dims Date: Fri Nov 4 21:31:59 2005 New Revision: 330974 URL: http://svn.apache.org/viewcvs?rev=330974&view=rev Log: add deployment descriptor for trust2 and enable test case as well. details: http://article.gmane.org/gmane.comp.apache.webservices.fx.devel/1129 Added: webservices/wss4j/trunk/samples/org/apache/ws/sandbox/ webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/ webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/ webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/ webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/SampleSecurityTokenService.java (contents, props changed) - copied, changed from r330625, webservices/wss4j/trunk/src/org/apache/ws/sandbox/security/trust2/samples/SampleSecurityTokenService.java webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/SampleSecurityTokenServiceClient.java (contents, props changed) - copied, changed from r330625, webservices/wss4j/trunk/src/org/apache/ws/sandbox/security/trust2/samples/SampleSecurityTokenServiceClient.java webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/deploy.wsdd webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/undeploy.wsdd webservices/wss4j/trunk/test/sandbox/ webservices/wss4j/trunk/test/sandbox/PackageTests.java webservices/wss4j/trunk/test/sandbox/TestTrust2.java Removed: webservices/wss4j/trunk/src/org/apache/ws/sandbox/security/trust2/samples/SampleSecurityTokenService.java webservices/wss4j/trunk/src/org/apache/ws/sandbox/security/trust2/samples/SampleSecurityTokenServiceClient.java Modified: webservices/wss4j/trunk/build.xml Modified: webservices/wss4j/trunk/build.xml URL: http://svn.apache.org/viewcvs/webservices/wss4j/trunk/build.xml?rev=330974&r1=330973&r2=330974&view=diff ============================================================================== --- webservices/wss4j/trunk/build.xml (original) +++ webservices/wss4j/trunk/build.xml Fri Nov 4 21:31:59 2005 @@ -408,7 +408,7 @@ @@ -429,6 +429,9 @@ + + + @@ -519,6 +522,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0) - url = args[0]; - call.setTargetEndpointAddress(new java.net.URL(url)); + call.setTargetEndpointAddress(opts.getURL()); SOAPEnvelope env = new SOAPEnvelope(); Document doc = env.getAsDocument(); Propchange: webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/SampleSecurityTokenServiceClient.java ------------------------------------------------------------------------------ cvs2svn:cvs-rev = 1.2 Propchange: webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/SampleSecurityTokenServiceClient.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/SampleSecurityTokenServiceClient.java ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/deploy.wsdd URL: http://svn.apache.org/viewcvs/webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/deploy.wsdd?rev=330974&view=auto ============================================================================== --- webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/deploy.wsdd (added) +++ webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/deploy.wsdd Fri Nov 4 21:31:59 2005 @@ -0,0 +1,24 @@ + + + + + + + + + + + Added: webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/undeploy.wsdd URL: http://svn.apache.org/viewcvs/webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/undeploy.wsdd?rev=330974&view=auto ============================================================================== --- webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/undeploy.wsdd (added) +++ webservices/wss4j/trunk/samples/org/apache/ws/sandbox/security/trust2/samples/undeploy.wsdd Fri Nov 4 21:31:59 2005 @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file Added: webservices/wss4j/trunk/test/sandbox/PackageTests.java URL: http://svn.apache.org/viewcvs/webservices/wss4j/trunk/test/sandbox/PackageTests.java?rev=330974&view=auto ============================================================================== --- webservices/wss4j/trunk/test/sandbox/PackageTests.java (added) +++ webservices/wss4j/trunk/test/sandbox/PackageTests.java Fri Nov 4 21:31:59 2005 @@ -0,0 +1,65 @@ +/* + * Copyright 2003-2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/* + * Copyright 2003-2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package sandbox; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Test package for WS-Security tests + */ +public class PackageTests extends TestCase { + + public PackageTests(String name) { + super(name); + } + + public static Test suite() { + TestSuite suite = new TestSuite(); + suite.addTestSuite(TestTrust2.class); + return suite; + } + + /** + * Main method + *

+ * + * @param args command line args + */ + public static void main(String[] args) { + junit.textui.TestRunner.run(suite()); + } +} Added: webservices/wss4j/trunk/test/sandbox/TestTrust2.java URL: http://svn.apache.org/viewcvs/webservices/wss4j/trunk/test/sandbox/TestTrust2.java?rev=330974&view=auto ============================================================================== --- webservices/wss4j/trunk/test/sandbox/TestTrust2.java (added) +++ webservices/wss4j/trunk/test/sandbox/TestTrust2.java Fri Nov 4 21:31:59 2005 @@ -0,0 +1,66 @@ +/* + * Copyright 2003-2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package sandbox; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; +import org.apache.ws.axis.oasis.Scenario1; +import org.apache.ws.sandbox.security.trust2.samples.SampleSecurityTokenServiceClient; + +/** + * WS-Trust Test Case + *

+ * + * @author Davanum Srinivas (dims@yahoo.com) + */ +public class TestTrust2 extends TestCase { + /** + * TestScenario1 constructor + *

+ * + * @param name name of the test + */ + public TestTrust2(String name) { + super(name); + } + + /** + * JUnit suite + *

+ * + * @return a junit test suite + */ + public static Test suite() { + return new TestSuite(TestTrust2.class); + } + + /** + * Main method + *

+ * + * @param args command line args + */ + public static void main(String[] args) throws Exception { + Scenario1.main(args); + } + + public void testScenario1() throws Exception { + SampleSecurityTokenServiceClient.main(new String[]{"-lhttp://localhost:8080/axis/services/SampleSecurityTokenService"}); + } +} --------------------------------------------------------------------- To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org For additional commands, e-mail: wss4j-dev-help@ws.apache.org