juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexo...@apache.org
Subject svn commit: r1543646 [1/2] - in /juddi/trunk/juddi-client.net: juddi-client.net-integration.test/ juddi-client.net-integration.test/org.apache.juddi.client.test.integration/ juddi-client.net-integration.test/org.apache.juddi.client.test.mocks/ juddi-cl...
Date Tue, 19 Nov 2013 23:39:31 GMT
Author: alexoree
Date: Tue Nov 19 23:39:29 2013
New Revision: 1543646

URL: http://svn.apache.org/r1543646
Log:
JUDDI-717 cleanup the the source tree for readability
JUDDI-567 cleanup the the source tree for readability

Added:
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/AutomatedRegistrationTests.cs
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/DigitalSignatureIntegrationTests.cs
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/InquiryTests.cs
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.mocks/
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.mocks/Hello_ServiceInterfaces.cs
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.mocks/Program.cs
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddi-autoregAnnotations.xml
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddi.xml
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddisigfile.xml
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddisigwinstore.xml
    juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/
    juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/
    juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/WadlImport.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/WsdlImport.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/saveClerkExample.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/saveNodeExample.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/DigitalSignaturesExample.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/Encryption.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/Program.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/ServiceVersioning.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/SimpleInquiry.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/SubscriptionCallbackExample.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/findendpoints.cs
    juddi/trunk/juddi-client.net/juddi-client.net.cryptor/org.apache.juddi.client.util/
    juddi/trunk/juddi-client.net/juddi-client.net.cryptor/org.apache.juddi.client.util/Program.cs
    juddi/trunk/juddi-client.net/juddi-client.net.test/org.apache.juddi.client.test/
    juddi/trunk/juddi-client.net/juddi-client.net.test/org.apache.juddi.client.test/CryptoTests.cs
    juddi/trunk/juddi-client.net/juddi-client.net.test/org.apache.juddi.client.test/DigitalSignatureTests.cs
    juddi/trunk/juddi-client.net/juddi-client.net.test/org.apache.juddi.client.test/SerializationTests.cs
    juddi/trunk/juddi-client.net/juddi-client.net.test/org.apache.juddi.client.test/WADL2UDDITests.cs
    juddi/trunk/juddi-client.net/juddi-client.net.test/org.apache.juddi.client.test/WSDL2UDDITest.cs
Removed:
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/DigitalSignatureIntegrationTests.cs
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/InquiryTests.cs
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/uddi.xml
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/uddisigfile.xml
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/uddisigwinstore.xml
    juddi/trunk/juddi-client.net/juddi-client.net-sample/DigitalSignaturesExample.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/Encryption.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/Program.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/ServiceVersioning.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/SimpleInquiry.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/SubscriptionCallbackExample.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/WadlImport.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/WsdlImport.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/findendpoints.cs
    juddi/trunk/juddi-client.net/juddi-client.net-sample/juddi/
    juddi/trunk/juddi-client.net/juddi-client.net.cryptor/Program.cs
    juddi/trunk/juddi-client.net/juddi-client.net.test/CryptoTests.cs
    juddi/trunk/juddi-client.net/juddi-client.net.test/DigitalSignatureTests.cs
    juddi/trunk/juddi-client.net/juddi-client.net.test/SerializationTests.cs
    juddi/trunk/juddi-client.net/juddi-client.net.test/WADL2UDDITests.cs
    juddi/trunk/juddi-client.net/juddi-client.net.test/WSDL2UDDITest.cs
Modified:
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/juddi-client.net-integration.test-mono.csproj
    juddi/trunk/juddi-client.net/juddi-client.net-integration.test/juddi-client.net-integration.test.csproj
    juddi/trunk/juddi-client.net/juddi-client.net-sample/juddi-client.net-sample-mono.csproj
    juddi/trunk/juddi-client.net/juddi-client.net-sample/juddi-client.net-sample.csproj
    juddi/trunk/juddi-client.net/juddi-client.net.cryptor/juddi-client.net.cryptor-mono.csproj
    juddi/trunk/juddi-client.net/juddi-client.net.cryptor/juddi-client.net.cryptor.csproj
    juddi/trunk/juddi-client.net/juddi-client.net.test/juddi-client.net.test-mono.csproj
    juddi/trunk/juddi-client.net/juddi-client.net.test/juddi-client.net.test.csproj

Modified: juddi/trunk/juddi-client.net/juddi-client.net-integration.test/juddi-client.net-integration.test-mono.csproj
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-integration.test/juddi-client.net-integration.test-mono.csproj?rev=1543646&r1=1543645&r2=1543646&view=diff
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-integration.test/juddi-client.net-integration.test-mono.csproj (original)
+++ juddi/trunk/juddi-client.net/juddi-client.net-integration.test/juddi-client.net-integration.test-mono.csproj Tue Nov 19 23:39:29 2013
@@ -30,7 +30,7 @@
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
-<PropertyGroup>
+  <PropertyGroup>
     <StartupObject />
   </PropertyGroup>
   <ItemGroup>
@@ -46,8 +46,11 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
-    <Compile Include="DigitalSignatureIntegrationTests.cs" />
-    <Compile Include="InquiryTests.cs" />
+    <Compile Include="org.apache.juddi.client.test.integration\AutomatedRegistrationTests.cs" />
+    <Compile Include="org.apache.juddi.client.test.integration\DigitalSignatureIntegrationTests.cs" />
+    <Compile Include="org.apache.juddi.client.test.mocks\Hello_ServiceInterfaces.cs" />
+    <Compile Include="org.apache.juddi.client.test.mocks\Program.cs" />
+    <Compile Include="org.apache.juddi.client.test.integration\InquiryTests.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>
   <ItemGroup>
@@ -57,23 +60,26 @@
     </ProjectReference>
   </ItemGroup>
   <ItemGroup>
-  <Content Include="uddisigwinstore.xml">
+    <Content Include="resource\uddi-autoregAnnotations.xml">
+      <SubType>Designer</SubType>
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </Content>
+    <Content Include="resource\uddisigwinstore.xml">
       <SubType>Designer</SubType>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </Content>
-    <Content Include="uddisigfile.xml">
+    <Content Include="resource\uddisigfile.xml">
       <SubType>Designer</SubType>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </Content>
-    <Content Include="uddi.xml">
+    <Content Include="resource\uddi.xml">
       <SubType>Designer</SubType>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </Content>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <PropertyGroup>
-    <PostBuildEvent>cd $(OutDir)
-rem C:\juddi\NUnit-2.6.1\bin\nunit-console.exe $(TargetFileName)</PostBuildEvent>
+    <PostBuildEvent>echo cd $(OutDir) mono nunit-console $(TargetFileName)</PostBuildEvent>
   </PropertyGroup>
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.

Modified: juddi/trunk/juddi-client.net/juddi-client.net-integration.test/juddi-client.net-integration.test.csproj
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-integration.test/juddi-client.net-integration.test.csproj?rev=1543646&r1=1543645&r2=1543646&view=diff
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-integration.test/juddi-client.net-integration.test.csproj (original)
+++ juddi/trunk/juddi-client.net/juddi-client.net-integration.test/juddi-client.net-integration.test.csproj Tue Nov 19 23:39:29 2013
@@ -46,8 +46,11 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
-    <Compile Include="DigitalSignatureIntegrationTests.cs" />
-    <Compile Include="InquiryTests.cs" />
+    <Compile Include="org.apache.juddi.client.test.integration\AutomatedRegistrationTests.cs" />
+    <Compile Include="org.apache.juddi.client.test.integration\DigitalSignatureIntegrationTests.cs" />
+    <Compile Include="org.apache.juddi.client.test.mocks\Hello_ServiceInterfaces.cs" />
+    <Compile Include="org.apache.juddi.client.test.mocks\Program.cs" />
+    <Compile Include="org.apache.juddi.client.test.integration\InquiryTests.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>
   <ItemGroup>
@@ -57,23 +60,27 @@
     </ProjectReference>
   </ItemGroup>
   <ItemGroup>
-    <Content Include="uddisigwinstore.xml">
+    <Content Include="resource\uddi-autoregAnnotations.xml">
       <SubType>Designer</SubType>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </Content>
-    <Content Include="uddisigfile.xml">
+    <Content Include="resource\uddisigwinstore.xml">
       <SubType>Designer</SubType>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </Content>
-    <Content Include="uddi.xml">
+    <Content Include="resource\uddisigfile.xml">
+      <SubType>Designer</SubType>
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </Content>
+    <Content Include="resource\uddi.xml">
       <SubType>Designer</SubType>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </Content>
   </ItemGroup>
+  <ItemGroup />
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <PropertyGroup>
-    <PostBuildEvent>cd $(OutDir)
-rem C:\juddi\NUnit-2.6.1\bin\nunit-console.exe $(TargetFileName)</PostBuildEvent>
+    <PostBuildEvent>echo cd $(OutDir) C:\juddi\NUnit-2.6.1\bin\nunit-console.exe $(TargetFileName)</PostBuildEvent>
   </PropertyGroup>
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.

Added: juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/AutomatedRegistrationTests.cs
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/AutomatedRegistrationTests.cs?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/AutomatedRegistrationTests.cs (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/AutomatedRegistrationTests.cs Tue Nov 19 23:39:29 2013
@@ -0,0 +1,71 @@
+/*
+ * Copyright 2001-2013 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.
+ *
+ */
+
+using juddi_client.net_integration.test.mocks;
+using NUnit.Framework;
+using org.apache.juddi.v3.client;
+using org.apache.juddi.v3.client.config;
+using org.apache.juddi.v3.client.transport;
+using System;
+
+
+
+
+namespace juddi_client.net_integration.test
+{
+    [TestFixture]
+    public class AutomatedRegistrationTests
+    {
+        [Test]
+        public void TestAutomatedWsdlRegistration()
+        {
+            //TODO
+        }
+
+        [Test]
+        public void TestAutomatedAnnotatedClassRegistration()
+        {
+            //TODO
+            //Normally, this code snippet would be executed by some kind of web service life cycle listener
+            //such as global.asax
+            //a web service contructor
+            Type t = typeof(HelloImpl);
+            Console.Out.WriteLine(t.AssemblyQualifiedName);
+            UDDIClient clerkManager = null;
+            Transport transport = null;
+            UDDIClerk clerk = null;
+
+            clerkManager = new UDDIClient("resource/uddi-autoregAnnotations.xml");
+            UDDIClientContainer.addClient(clerkManager);
+
+            transport = clerkManager.getTransport("default");
+
+            org.uddi.apiv3.UDDI_Security_SoapBinding security = transport.getUDDISecurityService();
+            org.uddi.apiv3.UDDI_Inquiry_SoapBinding inquiry = transport.getUDDIInquiryService();
+
+            clerk = clerkManager.getClerk("default");
+            clerkManager.registerAnnotatedServices();
+           
+            //TODO confirm it registered
+
+            //this is more of an "onShutdown" event
+            clerkManager.unRegisterAnnotatedServices();
+            //Thread.Sleep(15000);
+
+        }
+    }
+}

Added: juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/DigitalSignatureIntegrationTests.cs
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/DigitalSignatureIntegrationTests.cs?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/DigitalSignatureIntegrationTests.cs (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/DigitalSignatureIntegrationTests.cs Tue Nov 19 23:39:29 2013
@@ -0,0 +1,196 @@
+/*
+ * Copyright 2001-2008 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.
+ *
+ */
+using NUnit.Framework;
+using org.apache.juddi.jaxb;
+using org.apache.juddi.v3.client;
+using org.apache.juddi.v3.client.config;
+using org.apache.juddi.v3.client.cryptor;
+using org.apache.juddi.v3.client.transport;
+using org.uddi.apiv3;
+using System;
+using System.IO;
+using System.Net;
+using System.Threading;
+
+namespace juddi_client.net_integration.test
+{
+    [TestFixture]
+    public class DigitalSignatureIntegrationTests
+    {
+        [TestFixtureSetUp]
+        public static void init()
+        {
+
+
+            WebClient c = new WebClient();
+
+            Console.Out.WriteLine("Checking to see if tomcat is running");
+            String s = null;
+            int count = 100;
+            while (s == null && count > 0)
+            {
+                try
+                {
+                    s = c.DownloadString("http://localhost:8080/");
+                    Console.Out.WriteLine("Tomcat is running");
+                    break;
+                }
+                catch
+                { }
+                Console.Out.WriteLine("tomcat isn't running yet, waiting...");
+                Thread.Sleep(1000);
+            }
+
+            if (s == null)
+            {
+                Console.Out.WriteLine("Unable to confirm if tomcat is running, aborting");
+                online = false;
+            }
+
+        }
+        static Boolean online = true;
+
+        string path = "";
+        bool serialize = false;
+        public DigitalSignatureIntegrationTests()
+        {
+
+            if (Environment.GetEnvironmentVariable("debug") != null
+                && Environment.GetEnvironmentVariable("debug").Equals("true", StringComparison.CurrentCultureIgnoreCase))
+            {
+                serialize = true;
+            }
+            Console.Out.WriteLine(Directory.GetCurrentDirectory());
+            path = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar + "resources";
+            if (!Directory.Exists(path))
+            {
+                path = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar + ".." + Path.DirectorySeparatorChar + ".." + Path.DirectorySeparatorChar + ".." + Path.DirectorySeparatorChar + "juddi-client.net.test" + Path.DirectorySeparatorChar + "resources" + Path.DirectorySeparatorChar;
+                Console.Out.WriteLine(path);
+            }
+            if (!Directory.Exists(path))
+            {
+                path = Environment.GetEnvironmentVariable("JUDDI_TEST_RES");
+                Console.Out.WriteLine(path);
+            }
+            if (path == null || !Directory.Exists(path))
+            {
+                path = null;
+                Console.Out.WriteLine("uh oh, I can't find the resources directory, override with the environment variable JUDDI_TEST_RES=<path>");
+            }
+            
+        }
+
+        [Test]
+        public void fromWindowsStore()
+        {
+            Assume.That(online);
+            Console.Out.WriteLine("DigitalSignatureIntegration fromWindowsstore");
+            SignSaveAndVerifyToJuddi("resource/uddisigwinstore.xml");
+        }
+
+        [Test]
+        public void fromFile()
+        {
+            Assume.That(online);
+            Console.Out.WriteLine("DigitalSignatureIntegration fromFile");
+            SignSaveAndVerifyToJuddi("resource/uddisigfile.xml");
+        }
+
+        /// <summary>
+        /// From file
+        /// create business, save in juddi, download from juddi, sign and save it,
+        /// download it again, verify sig is valid
+        /// </summary>
+        /// <param name="config"></param>
+        void SignSaveAndVerifyToJuddi(String config)
+        {
+            UDDIClient clerkManager = null;
+            Transport transport = null;
+            UDDIClerk clerk = null;
+            try
+            {
+                clerkManager = new UDDIClient(config);
+                UDDIClientContainer.addClient(clerkManager);
+                transport = clerkManager.getTransport("default");
+                UDDI_Security_SoapBinding security = transport.getUDDISecurityService();
+                UDDI_Inquiry_SoapBinding inquiry = transport.getUDDIInquiryService();
+                UDDI_Publication_SoapBinding publish = transport.getUDDIPublishService();
+                clerk = clerkManager.getClerk("default");
+
+                businessEntity be = new businessEntity();
+                be.name = new name[] { new name("Test biz", "en") };
+
+                Console.Out.WriteLine("saving test biz");
+                businessEntity complete = clerk.register(be);
+                Console.Out.WriteLine("attempting to sign");
+
+                DigSigUtil ds = new DigSigUtil(clerkManager.getClientConfig().getDigitalSignatureConfiguration());
+                businessEntity signed = (businessEntity)ds.signUddiEntity(complete);
+
+                PrintUDDI<businessEntity> p = new PrintUDDI<businessEntity>();
+                Console.Out.WriteLine("signed successfully!");
+                if (serialize)
+                    Console.Out.WriteLine(p.print(signed));
+
+                Console.Out.WriteLine("attempting verify signature locally");
+                String err = "";
+                bool valid = ds.verifySignedUddiEntity(signed, out err);
+                Console.Out.WriteLine("Signature is " + (valid ? "Valid, Yippy!" : "Invalid!") + " msg: " + err);
+                Assert.True(valid);
+                Assert.True(String.IsNullOrEmpty(err));
+
+                Console.Out.WriteLine("saving to signed entity to the registry");
+                clerk.register(signed);
+                Console.Out.WriteLine("reloading content from the server...");
+
+                get_businessDetail gsd = new get_businessDetail();
+                gsd.authInfo = clerk.getAuthToken(clerk.getUDDINode().getSecurityUrl());
+                gsd.businessKey = new string[] { signed.businessKey };
+                businessDetail saved = inquiry.get_businessDetail(gsd);
+
+                Console.Out.WriteLine("done. attempting verify signed entity");
+                if (serialize)
+                    Console.Out.WriteLine(p.print(saved.businessEntity[0]));
+
+                err = "";
+                valid = ds.verifySignedUddiEntity(saved.businessEntity[0], out err);
+                Console.Out.WriteLine("Signature is " + (valid ? "Valid, Yippy!" : "Invalid!") + " msg: " + err);
+
+            }
+            catch (Exception ex)
+            {
+                while (ex != null)
+                {
+                    System.Console.WriteLine("Error! " + ex.Message);
+                    ex = ex.InnerException;
+                }
+                throw ex;
+            }
+            finally
+            {
+                if (transport != null && transport is IDisposable)
+                {
+                    ((IDisposable)transport).Dispose();
+                }
+                if (clerk != null)
+                    clerk.Dispose();
+            }
+        }
+
+        //TODO create in JAVA, save in juddi, download in .NET, verify sig is valid
+    }
+}

Added: juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/InquiryTests.cs
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/InquiryTests.cs?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/InquiryTests.cs (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.integration/InquiryTests.cs Tue Nov 19 23:39:29 2013
@@ -0,0 +1,147 @@
+using NUnit.Framework;
+using org.apache.juddi.jaxb;
+using org.apache.juddi.v3.client;
+using org.apache.juddi.v3.client.config;
+using org.apache.juddi.v3.client.transport;
+using org.uddi.apiv3;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Net;
+using System.Text;
+using System.Threading;
+
+namespace juddi_client.net_integration.test
+{
+    [TestFixture]
+    public class InquiryTests
+    {
+        static UDDIClient clerkManager = null;
+        static Transport transport = null;
+        static UDDIClerk clerk = null;
+        static UDDINode node = null;
+        static org.uddi.apiv3.UDDI_Security_SoapBinding security = null;
+        static org.uddi.apiv3.UDDI_Inquiry_SoapBinding inquiry = null;
+        static org.uddi.apiv3.UDDI_Publication_SoapBinding publish = null;
+        static org.uddi.apiv3.UDDI_Subscription_SoapBinding sub = null;
+        static bool online = true;
+        static bool serialize = false;
+        [TestFixtureSetUp]
+        public static void init()
+        {
+
+            if (Environment.GetEnvironmentVariable("debug") != null
+                && Environment.GetEnvironmentVariable("debug").Equals("true", StringComparison.CurrentCultureIgnoreCase))
+            {
+                serialize = true;
+            }
+
+            clerkManager = new UDDIClient("resource/uddi.xml");
+            UDDIClientContainer.addClient(clerkManager);
+
+            transport = clerkManager.getTransport("default");
+
+            security = transport.getUDDISecurityService();
+            inquiry = transport.getUDDIInquiryService();
+            publish = transport.getUDDIPublishService();
+            sub = transport.getUDDISubscriptionService();
+            clerk = clerkManager.getClerk("default");
+            node = clerk.getUDDINode();
+            WebClient c = new WebClient();
+
+            Console.Out.WriteLine("Checking to see if tomcat is running");
+            String s = null;
+            int count = 100;
+            while (s == null && count > 0)
+            {
+                try
+                {
+                    s = c.DownloadString("http://localhost:8080/");
+                    Console.Out.WriteLine("Tomcat is running");
+                    break;
+                }
+                catch
+                { }
+                Console.Out.WriteLine("tomcat isn't running yet, waiting...");
+                Thread.Sleep(1000);
+            }
+
+            if (s == null)
+            {
+                Console.Out.WriteLine("Unable to confirm if tomcat is running, aborting");
+                online = false;
+            }
+
+        }
+
+
+        [Test]
+        public void findBusinesses()
+        {
+            Console.Out.Write("findBusinesses");
+            Assert.True(online);
+            find_business fb = new find_business();
+            fb.name = new name[] { new name(UDDIConstants.WILDCARD, null) };
+            fb.findQualifiers = new string[] { UDDIConstants.APPROXIMATE_MATCH };
+            businessList bl = inquiry.find_business(fb);
+            Assert.NotNull(bl);
+            Assert.NotNull(bl.businessInfos);
+            Assert.True(bl.businessInfos.Length > 0);
+            for (int i = 0; i < bl.businessInfos.Length; i++)
+            {
+                Assert.IsNotNullOrEmpty(bl.businessInfos[i].businessKey);
+            }
+            PrintUDDI<businessList> p = new PrintUDDI<businessList>();
+            if (serialize)
+                Console.Out.WriteLine(p.print(bl));
+
+        }
+
+        [Test]
+        public void findServices()
+        {
+            Console.Out.Write("findServices");
+            Assert.True(online);
+            find_service fb = new find_service();
+            fb.name = new name[] { new name(UDDIConstants.WILDCARD, null) };
+            fb.findQualifiers = new string[] { UDDIConstants.APPROXIMATE_MATCH };
+            serviceList bl = inquiry.find_service(fb);
+            Assert.NotNull(bl);
+            Assert.NotNull(bl.serviceInfos);
+            Assert.True(bl.serviceInfos.Length > 0);
+            for (int i = 0; i < bl.serviceInfos.Length; i++)
+            {
+                Assert.IsNotNullOrEmpty(bl.serviceInfos[i].businessKey);
+                Assert.IsNotNullOrEmpty(bl.serviceInfos[i].serviceKey);
+            }
+            PrintUDDI<serviceList> p = new PrintUDDI<serviceList>();
+            if (serialize)
+                Console.Out.WriteLine(p.print(bl));
+        }
+
+        [Test]
+        public void findTmodels()
+        {
+            Console.Out.Write("find_tModel");
+            Assert.True(online);
+            find_tModel fb = new find_tModel();
+            fb.name = new name(UDDIConstants.WILDCARD, null);
+            fb.findQualifiers = new string[] { UDDIConstants.APPROXIMATE_MATCH };
+            tModelList bl = inquiry.find_tModel(fb);
+            Assert.NotNull(bl);
+            Assert.NotNull(bl.tModelInfos);
+            Assert.True(bl.tModelInfos.Length > 0);
+            for (int i = 0; i < bl.tModelInfos.Length; i++)
+            {
+                Assert.IsNotNullOrEmpty(bl.tModelInfos[i].tModelKey);
+                Assert.NotNull(bl.tModelInfos[i].name);
+            }
+            PrintUDDI<tModelList> p = new PrintUDDI<tModelList>();
+            if (serialize)
+                Console.Out.WriteLine(p.print(bl));
+        }
+
+
+
+    }
+}

Added: juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.mocks/Hello_ServiceInterfaces.cs
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.mocks/Hello_ServiceInterfaces.cs?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.mocks/Hello_ServiceInterfaces.cs (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.mocks/Hello_ServiceInterfaces.cs Tue Nov 19 23:39:29 2013
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2001-2013 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.
+ *
+ */
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.18052
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.Web.Services;
+using System.Web.Services.Protocols;
+using System.Xml.Serialization;
+
+// 
+// This source code was auto-generated by wsdl, Version=4.0.30319.17929.
+// 
+
+
+/// <remarks/>
+[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")]
+[System.Web.Services.WebServiceBindingAttribute(Name="Hello_Binding", Namespace="http://www.examples.com/wsdl/HelloService.wsdl", 
+    Location="http://www.contoso.com/MyService.asmx?wsdl")]
+public interface IHello_Binding {
+    
+    /// <remarks/>
+    [System.Web.Services.WebMethodAttribute()]
+    [System.Web.Services.Protocols.SoapRpcMethodAttribute("sayHello", RequestNamespace="urn:examples:helloservice", ResponseNamespace="urn:examples:helloservice")]
+    [return: System.Xml.Serialization.SoapElementAttribute("greeting")]
+    string sayHello(string firstName);
+}

Added: juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.mocks/Program.cs
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.mocks/Program.cs?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.mocks/Program.cs (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-integration.test/org.apache.juddi.client.test.mocks/Program.cs Tue Nov 19 23:39:29 2013
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2001-2013 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.
+ *
+ */
+using org.apache.juddi.v3.client;
+using org.apache.juddi.v3.client.annotations;
+using org.apache.juddi.v3.client.config;
+using org.apache.juddi.v3.client.transport;
+using org.uddi.apiv3;
+using System;
+using System.Collections.Generic;
+
+using System.Text;
+using System.Threading;
+
+
+namespace juddi_client.net_integration.test.mocks
+{
+    [UDDIService(businessKey = "uddi:juddi.apache.org:businesses-asf", description = "My custom service via annotations",
+        serviceName = "HelloImpl, such a cool name", lang = "en", serviceKey = "uddi:juddi.apache.org:services-customHelloImpl")]
+    [UDDIServiceBinding(accessPoint="http://localhost/here", accessPointType="endPoint")]
+    class HelloImpl : IHello_Binding
+    {
+        public string sayHello(string firstName)
+        {
+            return "hi";
+        }
+    }
+}

Added: juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddi-autoregAnnotations.xml
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddi-autoregAnnotations.xml?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddi-autoregAnnotations.xml (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddi-autoregAnnotations.xml Tue Nov 19 23:39:29 2013
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<uddi xmlns="urn:juddi-apache-org:v3_client" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:juddi-apache-org:v3_client ..\..\juddi-client\src\main\resources\xsd\uddi-client.xsd">
+  <reloadDelay>5000</reloadDelay>
+  <client name="test-client">
+    <nodes>
+      <node isHomeJUDDI="true">
+        <!-- required 'default' node -->
+        <name>default</name>
+        <description>Main jUDDI node</description>
+        <properties>
+          <property name="serverName" value="uddi-jbossoverlord.rhcloud.com" />
+          <property name="serverPort" value="80" />
+		  <!-- for UDDI nodes that use HTTP u/p, using the following 
+					<property name="basicAuthUsername" value="root" />
+					<property name="basicAuthPassword" value="password" />
+					<property name="basicAuthPasswordIsEncrypted" value="false" />
+					<property name="basicAuthPasswordCryptoProvider" value="org.apache.juddi.v3.client.crypto.AES128Cryptor (an example)" />-->
+        </properties>
+        <proxyTransport>org.apache.juddi.v3.client.transport.AspNetTransport</proxyTransport>
+        <custodyTransferUrl>http://${serverName}:${serverPort}/services/custody-transfer?wsdl</custodyTransferUrl>
+        <inquiryUrl>http://${serverName}:${serverPort}/services/inquiry?wsdl</inquiryUrl>
+        <publishUrl>http://${serverName}:${serverPort}/services/publish?wsdl</publishUrl>
+        <securityUrl>http://${serverName}:${serverPort}/services/security?wsdl</securityUrl>
+        <subscriptionUrl>http://${serverName}:${serverPort}/services/subscription?wsdl</subscriptionUrl>
+        <subscriptionListenerUrl>http://${serverName}:${serverPort}/services/subscription-listener?wsdl</subscriptionListenerUrl>
+        <juddiApiUrl>http://${serverName}:${serverPort}/services/juddi-api?wsdl</juddiApiUrl>
+        <factoryInitial>not used</factoryInitial>
+        <factoryURLPkgs>not used</factoryURLPkgs>
+        <factoryNamingProvider>not used</factoryNamingProvider>
+      </node>
+      <node>
+        <name>med</name>
+        <description>jUDDI node in other Department</description>
+        <proxyTransport>org.apache.juddi.v3.client.transport.AspNetTransport</proxyTransport>
+        <custodyTransferUrl>http://med:8080/juddiv3/services/custody-transfer?wsdl</custodyTransferUrl>
+        <inquiryUrl>http://med:8080/juddiv3/services/inquiry?wsdl</inquiryUrl>
+        <publishUrl>http://med:8080/juddiv3/services/publish?wsdl</publishUrl>
+        <securityUrl>http://med:8080/juddiv3/services/security?wsdl</securityUrl>
+        <subscriptionUrl>http://med:8080/juddiv3/services/subscription?wsdl</subscriptionUrl>
+        <subscriptionListenerUrl>http://med:8080/juddiv3/services/subscription-listener?wsdl</subscriptionListenerUrl>
+        <juddiApiUrl>http://med:8080/juddiv3/services/juddi-api?wsdl</juddiApiUrl>
+        <factoryInitial>not used</factoryInitial>
+        <factoryURLPkgs>not used</factoryURLPkgs>
+        <factoryNamingProvider>not used</factoryNamingProvider>
+
+      </node>
+    </nodes>
+
+    <clerks registerOnStartup="false">
+      <clerk name="default" node="default" publisher="uddi" password="uddi"  isPasswordEncrypted="false" cryptoProvider=""/>
+      <clerk name="medroot" node="med"     publisher="root" password="root"  isPasswordEncrypted="false" cryptoProvider=""/>
+      <xregister>
+        <servicebinding bindingKey="uddi:juddi.apache.org:servicebindings-subscriptionlistener-ws" 
+                        fromClerk="default" toClerk="medroot"/>
+      </xregister>
+      
+    </clerks>
+    <signature>
+      <signingKeyStorePath>..\..\..\juddi-client.net.test\resources\cert.pfx</signingKeyStorePath>
+      <signingKeyStoreType>PFX</signingKeyStoreType>
+      <signingKeyStoreFilePassword>password</signingKeyStoreFilePassword>
+      <signingKeyPassword>ignored</signingKeyPassword>
+
+      <!-- this is the localhost Test certificate -->
+      <signingKeyAlias>?518ed27c</signingKeyAlias>
+      <canonicalizationMethod>http://www.w3.org/2001/10/xml-exc-c14n#</canonicalizationMethod>
+      <signatureMethod>http://www.w3.org/2000/09/xmldsig#rsa-sha1</signatureMethod>
+      <XML_DIGSIG_NS>http://www.w3.org/2000/09/xmldsig#</XML_DIGSIG_NS>
+      <trustStorePath>ignored</trustStorePath>
+      <trustStoreType>ignored</trustStoreType>
+      <trustStorePassword>ignored</trustStorePassword>
+      <checkTimestamps>true</checkTimestamps>
+      <checkTrust>false</checkTrust>
+      <checkRevocationCRL>false</checkRevocationCRL>
+      <checkRevocationOCSP>false</checkRevocationOCSP>
+      <keyInfoInclusionSubjectDN>true</keyInfoInclusionSubjectDN>
+      <keyInfoInclusionSerial>true</keyInfoInclusionSerial>
+      <keyInfoInclusionBase64PublicKey>true</keyInfoInclusionBase64PublicKey>
+      <digestMethod>http://www.w3.org/2000/09/xmldsig#sha1</digestMethod>
+    </signature>
+    <subscriptionCallbacks>
+      <keyDomain>uddi:org.apache.juddi</keyDomain>
+      <listenUrl>http://localhost:4444/callback</listenUrl>
+      <autoRegisterBindingTemplate>false</autoRegisterBindingTemplate>
+      <autoRegisterBusinessServiceKey>uddi:org.apache.juddi:callbackServices</autoRegisterBusinessServiceKey>
+      <signatureBehavior>DoNothing</signatureBehavior>
+    </subscriptionCallbacks>
+    <XtoWsdl>
+      <IgnoreSSLErrors>false</IgnoreSSLErrors>
+    </XtoWsdl>
+  </client>
+</uddi>
\ No newline at end of file

Added: juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddi.xml
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddi.xml?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddi.xml (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddi.xml Tue Nov 19 23:39:29 2013
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<uddi xmlns="urn:juddi-apache-org:v3_client" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:juddi-apache-org:v3_client ..\..\juddi-client\src\main\resources\xsd\uddi-client.xsd">
+  <reloadDelay>5000</reloadDelay>
+  <client name="test-client">
+    <nodes>
+      <node isHomeJUDDI="true">
+        <!-- required 'default' node -->
+        <name>default</name>
+        <description>Main jUDDI node</description>
+        <properties>
+          <property name="serverName" value="uddi-jbossoverlord.rhcloud.com" />
+          <property name="serverPort" value="80" />
+		  <!-- for UDDI nodes that use HTTP u/p, using the following 
+					<property name="basicAuthUsername" value="root" />
+					<property name="basicAuthPassword" value="password" />
+					<property name="basicAuthPasswordIsEncrypted" value="false" />
+					<property name="basicAuthPasswordCryptoProvider" value="org.apache.juddi.v3.client.crypto.AES128Cryptor (an example)" />-->
+        </properties>
+        <proxyTransport>org.apache.juddi.v3.client.transport.AspNetTransport</proxyTransport>
+        <custodyTransferUrl>http://${serverName}:${serverPort}/services/custody-transfer?wsdl</custodyTransferUrl>
+        <inquiryUrl>http://${serverName}:${serverPort}/services/inquiry?wsdl</inquiryUrl>
+        <publishUrl>http://${serverName}:${serverPort}/services/publish?wsdl</publishUrl>
+        <securityUrl>http://${serverName}:${serverPort}/services/security?wsdl</securityUrl>
+        <subscriptionUrl>http://${serverName}:${serverPort}/services/subscription?wsdl</subscriptionUrl>
+        <subscriptionListenerUrl>http://${serverName}:${serverPort}/services/subscription-listener?wsdl</subscriptionListenerUrl>
+        <juddiApiUrl>http://${serverName}:${serverPort}/services/juddi-api?wsdl</juddiApiUrl>
+        <factoryInitial>not used</factoryInitial>
+        <factoryURLPkgs>not used</factoryURLPkgs>
+        <factoryNamingProvider>not used</factoryNamingProvider>
+      </node>
+      
+    </nodes>
+
+    <clerks registerOnStartup="false">
+      <clerk name="default" node="default" publisher="uddi" password="uddi"  isPasswordEncrypted="false" cryptoProvider="">
+<class 
+      </clerk>
+      
+    </clerks>
+    <signature>
+      <signingKeyStorePath>..\..\..\juddi-client.net.test\resources\cert.pfx</signingKeyStorePath>
+      <signingKeyStoreType>PFX</signingKeyStoreType>
+      <signingKeyStoreFilePassword>password</signingKeyStoreFilePassword>
+      <signingKeyPassword>ignored</signingKeyPassword>
+
+      <!-- this is the localhost Test certificate -->
+      <signingKeyAlias>518ed27c</signingKeyAlias>
+      <canonicalizationMethod>http://www.w3.org/2001/10/xml-exc-c14n#</canonicalizationMethod>
+      <signatureMethod>http://www.w3.org/2000/09/xmldsig#rsa-sha1</signatureMethod>
+      <XML_DIGSIG_NS>http://www.w3.org/2000/09/xmldsig#</XML_DIGSIG_NS>
+      <trustStorePath>ignored</trustStorePath>
+      <trustStoreType>ignored</trustStoreType>
+      <trustStorePassword>ignored</trustStorePassword>
+      <checkTimestamps>true</checkTimestamps>
+      <checkTrust>false</checkTrust>
+      <checkRevocationCRL>false</checkRevocationCRL>
+      <checkRevocationOCSP>false</checkRevocationOCSP>
+      <keyInfoInclusionSubjectDN>true</keyInfoInclusionSubjectDN>
+      <keyInfoInclusionSerial>true</keyInfoInclusionSerial>
+      <keyInfoInclusionBase64PublicKey>true</keyInfoInclusionBase64PublicKey>
+      <digestMethod>http://www.w3.org/2000/09/xmldsig#sha1</digestMethod>
+    </signature>
+    <subscriptionCallbacks>
+      <keyDomain>uddi:org.apache.juddi</keyDomain>
+      <listenUrl>http://localhost:4444/callback</listenUrl>
+      <autoRegisterBindingTemplate>false</autoRegisterBindingTemplate>
+      <autoRegisterBusinessServiceKey>uddi:org.apache.juddi:callbackServices</autoRegisterBusinessServiceKey>
+      <signatureBehavior>DoNothing</signatureBehavior>
+    </subscriptionCallbacks>
+    <XtoWsdl>
+      <IgnoreSSLErrors>false</IgnoreSSLErrors>
+    </XtoWsdl>
+  </client>
+</uddi>
\ No newline at end of file

Added: juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddisigfile.xml
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddisigfile.xml?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddisigfile.xml (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddisigfile.xml Tue Nov 19 23:39:29 2013
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<uddi xmlns="urn:juddi-apache-org:v3_client" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:juddi-apache-org:v3_client ..\..\juddi-client\src\main\resources\xsd\uddi-client.xsd">
+  <reloadDelay>5000</reloadDelay>
+  <client name="test-client">
+    <nodes>
+      <node isHomeJUDDI="true">
+        <!-- required 'default' node -->
+        <name>default</name>
+        <description>Main jUDDI node</description>
+        <properties>
+          <property name="serverName" value="localhost" />
+          <property name="serverPort" value="8080" />
+          <!-- for UDDI nodes that use HTTP u/p, using the following 
+					<property name="basicAuthUsername" value="root" />
+					<property name="basicAuthPassword" value="password" />
+					<property name="basicAuthPasswordIsEncrypted" value="false" />
+					<property name="basicAuthPasswordCryptoProvider" value="org.apache.juddi.v3.client.crypto.AES128Cryptor (an example)" />-->
+        </properties>
+        <proxyTransport>org.apache.juddi.v3.client.transport.AspNetTransport</proxyTransport>
+
+        <custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/services/custody-transfer?wsdl</custodyTransferUrl>
+        <inquiryUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiry?wsdl</inquiryUrl>
+        <publishUrl>http://${serverName}:${serverPort}/juddiv3/services/publish?wsdl</publishUrl>
+        <securityUrl>http://${serverName}:${serverPort}/juddiv3/services/security?wsdl</securityUrl>
+        <subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription?wsdl</subscriptionUrl>
+        <subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription-listener?wsdl</subscriptionListenerUrl>
+        <juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/services/juddi-api?wsdl</juddiApiUrl>
+        
+        <factoryInitial>not used</factoryInitial>
+        <factoryURLPkgs>not used</factoryURLPkgs>
+        <factoryNamingProvider>not used</factoryNamingProvider>
+      </node>
+    </nodes>
+
+    <clerks registerOnStartup="false">
+      <clerk name="default" node="default" publisher="uddi" password="uddi"  isPasswordEncrypted="false" cryptoProvider=""/>
+
+    </clerks>
+    <signature>
+      <signingKeyStorePath>..\..\..\juddi-client.net.test\resources\cert.pfx</signingKeyStorePath>
+      <signingKeyStoreType>PFX</signingKeyStoreType>
+      <signingKeyStoreFilePassword>password</signingKeyStoreFilePassword>
+      <signingKeyPassword>ignored</signingKeyPassword>
+
+      <!-- this is the localhost Test certificate -->
+      <signingKeyAlias>‎518ed27c</signingKeyAlias>
+      <canonicalizationMethod>http://www.w3.org/2001/10/xml-exc-c14n#</canonicalizationMethod>
+      <signatureMethod>http://www.w3.org/2000/09/xmldsig#rsa-sha1</signatureMethod>
+      <XML_DIGSIG_NS>http://www.w3.org/2000/09/xmldsig#</XML_DIGSIG_NS>
+      <trustStorePath>ignored</trustStorePath>
+      <trustStoreType>ignored</trustStoreType>
+      <trustStorePassword>ignored</trustStorePassword>
+      <checkTimestamps>true</checkTimestamps>
+      <checkTrust>false</checkTrust>
+      <checkRevocationCRL>false</checkRevocationCRL>
+      <checkRevocationOCSP>false</checkRevocationOCSP>
+      <keyInfoInclusionSubjectDN>true</keyInfoInclusionSubjectDN>
+      <keyInfoInclusionSerial>false</keyInfoInclusionSerial>
+      <keyInfoInclusionBase64PublicKey>true</keyInfoInclusionBase64PublicKey>
+      <digestMethod>http://www.w3.org/2000/09/xmldsig#sha1</digestMethod>
+    </signature>
+    <subscriptionCallbacks>
+      <keyDomain>uddi:org.apache.juddi</keyDomain>
+      <listenUrl>http://localhost:4444/callback</listenUrl>
+      <autoRegisterBindingTemplate>false</autoRegisterBindingTemplate>
+      <autoRegisterBusinessServiceKey>uddi:org.apache.juddi:callbackServices</autoRegisterBusinessServiceKey>
+      <signatureBehavior>DoNothing</signatureBehavior>
+    </subscriptionCallbacks>
+    <XtoWsdl>
+      <IgnoreSSLErrors>false</IgnoreSSLErrors>
+    </XtoWsdl>
+  </client>
+</uddi>
\ No newline at end of file

Added: juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddisigwinstore.xml
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddisigwinstore.xml?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddisigwinstore.xml (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-integration.test/resource/uddisigwinstore.xml Tue Nov 19 23:39:29 2013
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<uddi xmlns="urn:juddi-apache-org:v3_client" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:juddi-apache-org:v3_client ..\..\juddi-client\src\main\resources\xsd\uddi-client.xsd">
+  <reloadDelay>5000</reloadDelay>
+  <client name="test-client">
+    <nodes>
+      <node isHomeJUDDI="true">
+        <!-- required 'default' node -->
+        <name>default</name>
+        <description>Main jUDDI node</description>
+        <properties>
+          <property name="serverName" value="localhost" />
+          <property name="serverPort" value="8080" />
+		  <!-- for UDDI nodes that use HTTP u/p, using the following 
+					<property name="basicAuthUsername" value="root" />
+					<property name="basicAuthPassword" value="password" />
+					<property name="basicAuthPasswordIsEncrypted" value="false" />
+					<property name="basicAuthPasswordCryptoProvider" value="org.apache.juddi.v3.client.crypto.AES128Cryptor (an example)" />-->
+        </properties>
+        <proxyTransport>org.apache.juddi.v3.client.transport.AspNetTransport</proxyTransport>
+        <custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/services/custody-transfer?wsdl</custodyTransferUrl>
+        <inquiryUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiry?wsdl</inquiryUrl>
+        <publishUrl>http://${serverName}:${serverPort}/juddiv3/services/publish?wsdl</publishUrl>
+        <securityUrl>http://${serverName}:${serverPort}/juddiv3/services/security?wsdl</securityUrl>
+        <subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription?wsdl</subscriptionUrl>
+        <subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription-listener?wsdl</subscriptionListenerUrl>
+        <juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/services/juddi-api?wsdl</juddiApiUrl>
+        <factoryInitial>not used</factoryInitial>
+        <factoryURLPkgs>not used</factoryURLPkgs>
+        <factoryNamingProvider>not used</factoryNamingProvider>
+      </node>
+    </nodes>
+
+    <clerks registerOnStartup="false">
+      <clerk name="default" node="default" publisher="uddi" password="uddi"  isPasswordEncrypted="false" cryptoProvider=""/>
+      
+    </clerks>
+    <signature>
+      <signingKeyStorePath>My</signingKeyStorePath>
+      <signingKeyStoreType>CurrentUser</signingKeyStoreType>
+      <signingKeyStoreFilePassword>ignored</signingKeyStoreFilePassword>
+      <signingKeyPassword>ignored</signingKeyPassword>
+      
+      <!-- this is the localhost Test certificate -->
+      <signingKeyAlias>‎518ed27c</signingKeyAlias>
+      <canonicalizationMethod>http://www.w3.org/2001/10/xml-exc-c14n#</canonicalizationMethod>
+      <signatureMethod>http://www.w3.org/2000/09/xmldsig#rsa-sha1</signatureMethod>
+      <XML_DIGSIG_NS>http://www.w3.org/2000/09/xmldsig#</XML_DIGSIG_NS>
+      <trustStorePath>ignored</trustStorePath>
+      <trustStoreType>ignored</trustStoreType>
+      <trustStorePassword>ignored</trustStorePassword>
+      <checkTimestamps>true</checkTimestamps>
+      <checkTrust>false</checkTrust>
+      <checkRevocationCRL>false</checkRevocationCRL>
+      <checkRevocationOCSP>false</checkRevocationOCSP>
+      <keyInfoInclusionSubjectDN>true</keyInfoInclusionSubjectDN>
+      <keyInfoInclusionSerial>false</keyInfoInclusionSerial>
+      <keyInfoInclusionBase64PublicKey>true</keyInfoInclusionBase64PublicKey>
+      <digestMethod>http://www.w3.org/2000/09/xmldsig#sha1</digestMethod>
+    </signature>
+    <subscriptionCallbacks>
+      <keyDomain>uddi:org.apache.juddi</keyDomain>
+      <listenUrl>http://localhost:4444/callback</listenUrl>
+      <autoRegisterBindingTemplate>false</autoRegisterBindingTemplate>
+      <autoRegisterBusinessServiceKey>uddi:org.apache.juddi:callbackServices</autoRegisterBusinessServiceKey>
+      <signatureBehavior>DoNothing</signatureBehavior>
+    </subscriptionCallbacks>
+    <XtoWsdl>
+      <IgnoreSSLErrors>false</IgnoreSSLErrors>
+    </XtoWsdl>
+  </client>
+</uddi>
\ No newline at end of file

Modified: juddi/trunk/juddi-client.net/juddi-client.net-sample/juddi-client.net-sample-mono.csproj
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-sample/juddi-client.net-sample-mono.csproj?rev=1543646&r1=1543645&r2=1543646&view=diff
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-sample/juddi-client.net-sample-mono.csproj (original)
+++ juddi/trunk/juddi-client.net/juddi-client.net-sample/juddi-client.net-sample-mono.csproj Tue Nov 19 23:39:29 2013
@@ -42,18 +42,18 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
-    <Compile Include="DigitalSignaturesExample.cs" />
-    <Compile Include="Encryption.cs" />
-    <Compile Include="findendpoints.cs" />
-    <Compile Include="juddi\saveClerkExample.cs" />
-    <Compile Include="juddi\saveNodeExample.cs" />
-    <Compile Include="Program.cs" />
+   <Compile Include="org.apache.juddi.client.samples\DigitalSignaturesExample.cs" />
+    <Compile Include="org.apache.juddi.client.samples\Encryption.cs" />
+    <Compile Include="org.apache.juddi.client.samples\findendpoints.cs" />
+    <Compile Include="org.apache.juddi.client.samples.juddi\saveClerkExample.cs" />
+    <Compile Include="org.apache.juddi.client.samples.juddi\saveNodeExample.cs" />
+    <Compile Include="org.apache.juddi.client.samples\Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
-    <Compile Include="ServiceVersioning.cs" />
-    <Compile Include="SimpleInquiry.cs" />
-    <Compile Include="SubscriptionCallbackExample.cs" />
-    <Compile Include="WadlImport.cs" />
-    <Compile Include="WsdlImport.cs" />
+    <Compile Include="org.apache.juddi.client.samples\ServiceVersioning.cs" />
+    <Compile Include="org.apache.juddi.client.samples\SimpleInquiry.cs" />
+    <Compile Include="org.apache.juddi.client.samples\SubscriptionCallbackExample.cs" />
+    <Compile Include="org.apache.juddi.client.samples.juddi\WadlImport.cs" />
+    <Compile Include="org.apache.juddi.client.samples.juddi\WsdlImport.cs" />
   </ItemGroup>
   <ItemGroup>
     <Content Include="uddi.xml">

Modified: juddi/trunk/juddi-client.net/juddi-client.net-sample/juddi-client.net-sample.csproj
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-sample/juddi-client.net-sample.csproj?rev=1543646&r1=1543645&r2=1543646&view=diff
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-sample/juddi-client.net-sample.csproj (original)
+++ juddi/trunk/juddi-client.net/juddi-client.net-sample/juddi-client.net-sample.csproj Tue Nov 19 23:39:29 2013
@@ -42,18 +42,18 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
-    <Compile Include="DigitalSignaturesExample.cs" />
-    <Compile Include="Encryption.cs" />
-    <Compile Include="findendpoints.cs" />
-    <Compile Include="juddi\saveClerkExample.cs" />
-    <Compile Include="juddi\saveNodeExample.cs" />
-    <Compile Include="Program.cs" />
+    <Compile Include="org.apache.juddi.client.samples\DigitalSignaturesExample.cs" />
+    <Compile Include="org.apache.juddi.client.samples\Encryption.cs" />
+    <Compile Include="org.apache.juddi.client.samples\findendpoints.cs" />
+    <Compile Include="org.apache.juddi.client.samples.juddi\saveClerkExample.cs" />
+    <Compile Include="org.apache.juddi.client.samples.juddi\saveNodeExample.cs" />
+    <Compile Include="org.apache.juddi.client.samples\Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
-    <Compile Include="ServiceVersioning.cs" />
-    <Compile Include="SimpleInquiry.cs" />
-    <Compile Include="SubscriptionCallbackExample.cs" />
-    <Compile Include="WadlImport.cs" />
-    <Compile Include="WsdlImport.cs" />
+    <Compile Include="org.apache.juddi.client.samples\ServiceVersioning.cs" />
+    <Compile Include="org.apache.juddi.client.samples\SimpleInquiry.cs" />
+    <Compile Include="org.apache.juddi.client.samples\SubscriptionCallbackExample.cs" />
+    <Compile Include="org.apache.juddi.client.samples.juddi\WadlImport.cs" />
+    <Compile Include="org.apache.juddi.client.samples.juddi\WsdlImport.cs" />
   </ItemGroup>
   <ItemGroup>
     <Content Include="uddi.xml">

Added: juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/WadlImport.cs
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/WadlImport.cs?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/WadlImport.cs (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/WadlImport.cs Tue Nov 19 23:39:29 2013
@@ -0,0 +1,141 @@
+/*
+ * Copyright 2001-2008 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.
+ *
+ */
+
+using net.java.dev.wadl;
+using org.apache.juddi.v3.client;
+using org.apache.juddi.v3.client.config;
+using org.apache.juddi.v3.client.mapping;
+using org.apache.juddi.v3.client.transport;
+using org.uddi.apiv3;
+using System;
+using System.Collections.Generic;
+
+namespace org.apache.juddi.client.sample
+{
+    public class WadlImport
+    {
+        public static void main(string[] args)
+        {
+
+            UDDIClient clerkManager = null;
+            Transport transport = null;
+            UDDIClerk clerk = null;
+            try
+            {
+                clerkManager = new UDDIClient("uddi.xml");
+                UDDIClientContainer.addClient(clerkManager);
+
+                transport = clerkManager.getTransport("default_non_root");
+
+                UDDI_Security_SoapBinding security = transport.getUDDISecurityService();
+                UDDI_Inquiry_SoapBinding inquiry = transport.getUDDIInquiryService();
+                UDDI_Publication_SoapBinding publish = transport.getUDDIPublishService();
+
+                clerk = clerkManager.getClerk("default_non_root");
+
+                //Wadl Import example
+
+
+                application app = WADL2UDDI.ParseWadl("sample.wadl");
+                List<Uri> urls = WADL2UDDI.GetBaseAddresses(app);
+                Uri url = urls[0];
+                String domain = url.Host;
+
+                tModel keygen = UDDIClerk.createKeyGenator("uddi:" + domain + ":keygenerator", domain, "en");
+                //save the keygen
+                save_tModel stm = new save_tModel();
+                stm.authInfo = clerk.getAuthToken(clerk.getUDDINode().getSecurityUrl());
+                stm.tModel = new tModel[] { keygen };
+
+                publish.save_tModel(stm);
+                Properties properties = new Properties();
+
+                properties.put("keyDomain", domain);
+                properties.put("businessName", domain);
+                properties.put("serverName", url.Host);
+                properties.put("serverPort", url.Port.ToString());
+                //wsdlURL = wsdlDefinition.getDocumentBaseURI();
+                WADL2UDDI wadl2UDDI = new WADL2UDDI(clerk, properties);
+
+                businessService businessServices = wadl2UDDI.createBusinessService(new QName("MyWasdl.namespace", "Servicename"), app);
+
+
+                HashSet<tModel> portTypeTModels = wadl2UDDI.createWADLPortTypeTModels(url.ToString(), app);
+
+                //When parsing a WSDL, there's really two things going on
+                //1) convert a bunch of stuff (the portTypes) to tModels
+                //2) convert the service definition to a BusinessService
+
+                //Since the service depends on the tModel, we have to save the tModels first
+                save_tModel tms = new save_tModel();
+                tms.authInfo = clerk.getAuthToken(clerk.getUDDINode().getSecurityUrl());
+                HashSet<tModel>.Enumerator it = portTypeTModels.GetEnumerator();
+                List<tModel> ts = new List<tModel>();
+                while (it.MoveNext())
+                {
+                    ts.Add(it.Current);
+                }
+                tModel[] tmodels = ts.ToArray();
+
+                tms.tModel = tmodels;
+                if (tms.tModel.Length > 0)
+                    //important, you'll need to save your new tModels, or else saving the business/service may fail
+                    publish.save_tModel(tms);
+
+
+
+                //finaly, we're ready to save all of the services defined in the WSDL
+                //again, we're creating a new business, if you have one already, look it up using the Inquiry getBusinessDetails
+
+
+                // inquiry.find_tModel(new find_tModel
+
+                save_business sb = new save_business();
+                //  sb.setAuthInfo(rootAuthToken.getAuthInfo());
+                businessEntity be = new businessEntity();
+                be.businessKey = (businessServices.businessKey);
+                //TODO, use some relevant here
+                be.name = new name[] { new name(domain, "en") };
+
+
+                be.businessServices = new businessService[] { businessServices };
+                sb.authInfo = clerk.getAuthToken(clerk.getUDDINode().getSecurityUrl());
+                sb.businessEntity = new businessEntity[] { be };
+                publish.save_business(sb);
+                Console.Out.WriteLine("Saved!");
+            }
+            catch (Exception ex)
+            {
+                while (ex != null)
+                {
+                    System.Console.WriteLine("Error! " + ex.Message);
+                    ex = ex.InnerException;
+                }
+            }
+            finally
+            {
+                if (transport != null && transport is IDisposable)
+                {
+                    ((IDisposable)transport).Dispose();
+                }
+                if (clerk != null)
+                    clerk.Dispose();
+            }
+
+        }
+    }
+}

Added: juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/WsdlImport.cs
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/WsdlImport.cs?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/WsdlImport.cs (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/WsdlImport.cs Tue Nov 19 23:39:29 2013
@@ -0,0 +1,85 @@
+/*
+ * Copyright 2001-2008 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.
+ *
+ */
+using org.apache.juddi.jaxb;
+using org.apache.juddi.v3.client.config;
+using org.apache.juddi.v3.client.mapping;
+using org.uddi.apiv3;
+using org.xmlsoap.schemas.easyWsdl;
+using System;
+using System.Collections.Generic;
+
+namespace org.apache.juddi.client.sample
+{
+    public class WsdlImport
+    {
+        public static void main(string[] args)
+        {
+            Console.Out.Write("Enter WSDL url: >");
+            String input = Console.In.ReadLine();
+            if (String.IsNullOrEmpty("input"))
+                input = "http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL";
+            //String wsdlURL = "http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL";
+            Uri url = new Uri(input);
+
+            ReadWSDL wsi = new ReadWSDL();
+            tDefinitions wsdlDefinition = wsi.readWSDL(input);
+            Properties properties1 = new Properties();
+            properties1.put("serverName", url.Host);
+            properties1.put("businessName", url.Host);
+            properties1.put("keyDomain", "uddi:" + url.Host);
+            int port = url.Port;
+            if (port <= 0)
+            {
+                if (url.ToString().StartsWith("https", StringComparison.CurrentCultureIgnoreCase))
+                    port = 443;
+                else port = 80;
+            }
+            properties1.put("serverPort", port.ToString());
+
+            tModel keypart = UDDIClerk.createKeyGenator(url.Host, url.Host + "'s key partition", "en");
+
+            WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(null, new URLLocalizer(), properties1);
+            List<tModel> tModels1 = new List<tModel>();
+
+            Dictionary<QName, tPortType> portTypes1 = (Dictionary<QName, tPortType>)wsdlDefinition.getAllPortTypes();
+            List<tModel> portTypeTModels1 = wsdl2UDDI.createWSDLPortTypeTModels(input, portTypes1);
+
+            tModels1.AddRange(portTypeTModels1);
+
+            Dictionary<QName, tBinding> allBindings1 = wsdlDefinition.getAllBindings();
+            List<tModel> createWSDLBindingTModels1 = wsdl2UDDI.createWSDLBindingTModels(input, allBindings1);
+
+            tModels1.AddRange(createWSDLBindingTModels1);
+            businessService[] services = wsdl2UDDI.createBusinessServices(wsdlDefinition);
+
+            save_service ss = new save_service();
+            ss.businessService = services;
+            Console.Out.WriteLine(new PrintUDDI<save_service>().print(ss));
+
+            save_tModel st = new save_tModel();
+            st.tModel = tModels1.ToArray();
+            Console.Out.WriteLine(new PrintUDDI<save_tModel>().print(st));
+
+            //save keypart
+
+            //save tmodels
+            //save business
+
+            //TODO register the stuff
+        }
+    }
+}

Added: juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/saveClerkExample.cs
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/saveClerkExample.cs?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/saveClerkExample.cs (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/saveClerkExample.cs Tue Nov 19 23:39:29 2013
@@ -0,0 +1,90 @@
+using org.apache.juddi.apiv3;
+/*
+ * Copyright 2001-2008 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.
+ *
+ */
+using org.apache.juddi.v3.client;
+using org.apache.juddi.v3.client.config;
+using org.apache.juddi.v3.client.transport;
+using org.uddi.apiv3;
+using System;
+using System.Collections.Generic;
+
+
+namespace org.apache.juddi.client.sample.juddi
+{
+    class saveClerkExample
+    {
+        public static void main(string[] args)
+        {
+            UDDIClient clerkManager = null;
+            Transport transport = null;
+            UDDIClerk clerk = null;
+            try
+            {
+                clerkManager = new UDDIClient("uddi.xml");
+                UDDIClientContainer.addClient(clerkManager);
+
+                transport = clerkManager.getTransport("default");
+
+                UDDI_Security_SoapBinding security = transport.getUDDISecurityService();
+                UDDI_Inquiry_SoapBinding inquiry = transport.getUDDIInquiryService();
+                UDDI_Publication_SoapBinding publish = transport.getUDDIPublishService();
+                JUDDIApiService juddi= transport.getJUDDIApiService();
+
+                clerk = clerkManager.getClerk("default");
+
+               clerk   newclerk = new clerk();
+               newclerk.node = new node();
+                newclerk.node.name = "juddicloud";
+                newclerk.publisher = "root";
+                newclerk.password = "root";
+                
+                newclerk.name = "juddicloud";
+                UDDIClerk cc =new UDDIClerk(newclerk);
+
+
+                  save_clerkInfo saveClerk = new save_clerkInfo();
+                saveClerk.authInfo = clerk.getAuthToken(clerk.getUDDINode().getSecurityUrl());
+                saveClerk.clerk = new clerk[] { newclerk };
+              clerk[] ret=  juddi.save_Clerk(saveClerk);
+
+              Console.Out.WriteLine(ret.Length);
+                
+            }
+            catch (Exception ex)
+            {
+                while (ex != null)
+                {
+                    System.Console.WriteLine("Error! " + ex.Message);
+                    ex = ex.InnerException;
+                }
+            }
+            finally
+            {
+                if (transport != null && transport is IDisposable)
+                {
+                    ((IDisposable)transport).Dispose();
+                }
+                if (clerk != null)
+                    clerk.Dispose();
+            }
+
+
+
+
+        }
+    }
+}

Added: juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/saveNodeExample.cs
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/saveNodeExample.cs?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/saveNodeExample.cs (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples.juddi/saveNodeExample.cs Tue Nov 19 23:39:29 2013
@@ -0,0 +1,106 @@
+using org.apache.juddi.apiv3;
+using org.apache.juddi.jaxb;
+/*
+ * Copyright 2001-2008 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.
+ *
+ */
+using org.apache.juddi.v3.client;
+using org.apache.juddi.v3.client.config;
+using org.apache.juddi.v3.client.transport;
+using org.uddi.apiv3;
+using System;
+using System.Collections.Generic;
+
+
+namespace org.apache.juddi.client.sample.juddi
+{
+    class saveNodeExample
+    {
+        public static void main(string[] args)
+        {
+            UDDIClient clerkManager = null;
+            Transport transport = null;
+            UDDIClerk clerk = null;
+            try
+            {
+                clerkManager = new UDDIClient("uddi.xml");
+                UDDIClientContainer.addClient(clerkManager);
+
+                transport = clerkManager.getTransport("default");
+
+               UDDI_Security_SoapBinding security = transport.getUDDISecurityService();
+               UDDI_Inquiry_SoapBinding inquiry = transport.getUDDIInquiryService();
+               UDDI_Publication_SoapBinding publish = transport.getUDDIPublishService();
+                JUDDIApiService juddi= transport.getJUDDIApiService();
+
+                clerk = clerkManager.getClerk("default");
+                
+                node n1 = new node();
+                n1.clientName = "juddicloud";
+                //the following are optional
+                /*
+                 * max length is 255
+                 * proxy transport
+                 * factory*
+                 * juddiapi url
+                 */
+                n1.proxyTransport = "org.apache.juddi.v3.client.transport.JAXWSTransport";  
+                n1.custodyTransferUrl = "http://uddi-jbossoverlord.rhcloud.com/services/custody-transfer";
+                n1.inquiryUrl = "http://uddi-jbossoverlord.rhcloud.com/services/inquiry";
+                n1.publishUrl = "http://uddi-jbossoverlord.rhcloud.com/services/publish";
+                n1.securityUrl = "http://uddi-jbossoverlord.rhcloud.com/services/security";
+                n1.subscriptionUrl = "http://uddi-jbossoverlord.rhcloud.com/services/subscription";
+                n1.subscriptionListenerUrl = "http://uddi-jbossoverlord.rhcloud.com/services/subscription-listener";
+                n1.name = "juddicloud";
+                n1.description = "juddicloud";
+                save_nodeInfo saveNode = new save_nodeInfo();
+                saveNode.authInfo = (clerk.getAuthToken(clerk.getUDDINode().getSecurityUrl()));
+                saveNode.node = new node[] { (n1) };
+                PrintJUDDI<save_nodeInfo> p = new PrintJUDDI<save_nodeInfo>();
+                Console.Out.WriteLine("Before sending");
+                Console.Out.WriteLine(p.print(saveNode));
+
+
+                node[] nodes = clerk.getUDDINode().getTransport().getJUDDIApiService(clerk.getUDDINode().getJuddiApiUrl()).save_Node(saveNode);
+
+
+              
+             //  clerk.saveNode(n1);
+                
+            }
+            catch (Exception ex)
+            {
+                while (ex != null)
+                {
+                    System.Console.WriteLine("Error! " + ex.Message);
+                    ex = ex.InnerException;
+                }
+            }
+            finally
+            {
+                if (transport != null && transport is IDisposable)
+                {
+                    ((IDisposable)transport).Dispose();
+                }
+                if (clerk != null)
+                    clerk.Dispose();
+            }
+
+
+
+
+        }
+    }
+}

Added: juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/DigitalSignaturesExample.cs
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/DigitalSignaturesExample.cs?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/DigitalSignaturesExample.cs (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/DigitalSignaturesExample.cs Tue Nov 19 23:39:29 2013
@@ -0,0 +1,117 @@
+/*
+ * Copyright 2001-2008 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.
+ *
+ */
+using org.apache.juddi.jaxb;
+using org.apache.juddi.v3.client;
+using org.apache.juddi.v3.client.config;
+using org.apache.juddi.v3.client.cryptor;
+using org.apache.juddi.v3.client.transport;
+using org.uddi.apiv3;
+using System;
+
+namespace org.apache.juddi.client.sample
+{
+    class DigitalSignaturesExample
+    {
+        public static void Run(string[] args)
+        {
+
+            UDDIClient clerkManager = null;
+            Transport transport = null;
+            UDDIClerk clerk = null;
+            try
+            {
+                clerkManager = new UDDIClient("uddi.xml");
+                UDDIClientContainer.addClient(clerkManager);
+
+                transport = clerkManager.getTransport("default");
+
+                UDDI_Security_SoapBinding security = transport.getUDDISecurityService();
+                UDDI_Inquiry_SoapBinding inquiry = transport.getUDDIInquiryService();
+                UDDI_Publication_SoapBinding publish = transport.getUDDIPublishService();
+
+                clerk = clerkManager.getClerk("default");
+
+
+                find_business fb = new find_business();
+                fb.authInfo = clerk.getAuthToken(security.Url);
+                fb.findQualifiers = new string[] { UDDIConstants.APPROXIMATE_MATCH };
+                fb.name = new name[1];
+                fb.name[0] = new name(UDDIConstants.WILDCARD, "en");
+                businessList bl = inquiry.find_business(fb);
+                if (bl.businessInfos.Length > 0)
+                {
+                    Console.Out.WriteLine(bl.businessInfos[0].name[0].Value);
+                    Console.Out.WriteLine("attempting to sign");
+                    serviceDetail sd = clerk.getServiceDetail(bl.businessInfos[0].serviceInfos[0].serviceKey);
+
+                    //pist, the signing config comes from the stuff in in uddi.xml
+                    DigSigUtil ds = new DigSigUtil(clerkManager.getClientConfig().getDigitalSignatureConfiguration());
+                    businessService signedsvc = (businessService)ds.signUddiEntity(sd.businessService[0]);
+                    PrintUDDI<businessService> p = new PrintUDDI<businessService>();
+                    Console.Out.WriteLine("signed successfully!");
+
+                    Console.Out.WriteLine(p.print(signedsvc));
+                    Console.Out.WriteLine("attempting verify and validate");
+                    String err = "";
+                    bool valid = ds.verifySignedUddiEntity(signedsvc, out err);
+                    Console.Out.WriteLine("Signature is " + (valid ? "Valid, Yippy!" : "Invalid!") + " msg: " + err);
+
+                    Console.Out.WriteLine("saving");
+                    clerk.register(signedsvc);
+                    Console.Out.WriteLine("reloading content from the server...");
+
+                    get_serviceDetail gsd = new get_serviceDetail();
+                    gsd.authInfo = clerk.getAuthToken(clerk.getUDDINode().getSecurityUrl());
+                    gsd.serviceKey = new string[] { signedsvc.serviceKey };
+                    sd = inquiry.get_serviceDetail(gsd);
+
+                    Console.Out.WriteLine(p.print(sd.businessService[0]));
+                    Console.Out.WriteLine("attempting verify and validate");
+                    err = "";
+                    valid = ds.verifySignedUddiEntity(sd.businessService[0], out err);
+                    Console.Out.WriteLine("Signature is " + (valid ? "Valid, Yippy!" : "Invalid!") + " msg: " + err);
+
+
+                }
+                else
+                    Console.Out.WriteLine("no businesses were returned!");
+
+            }
+            catch (Exception ex)
+            {
+                while (ex != null)
+                {
+                    System.Console.WriteLine("Error! " + ex.Message);
+                    ex = ex.InnerException;
+                }
+            }
+            finally
+            {
+                if (transport != null && transport is IDisposable)
+                {
+                    ((IDisposable)transport).Dispose();
+                }
+                if (clerk != null)
+                    clerk.Dispose();
+            }
+
+
+
+
+        }
+    }
+}

Added: juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/Encryption.cs
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/Encryption.cs?rev=1543646&view=auto
==============================================================================
--- juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/Encryption.cs (added)
+++ juddi/trunk/juddi-client.net/juddi-client.net-sample/org.apache.juddi.client.samples/Encryption.cs Tue Nov 19 23:39:29 2013
@@ -0,0 +1,95 @@
+/*
+ * Copyright 2001-2008 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.
+ *
+ */
+
+using System;
+using System.Security.Cryptography;
+
+namespace org.apache.juddi.client.sample
+{
+    public class Encryption
+    {
+        public static void main(string[] args)
+        {
+            AesManaged aes = new AesManaged();
+            Console.WriteLine("AesManaged ");
+            KeySizes[] ks = aes.LegalKeySizes;
+            foreach (KeySizes k in ks)
+            {
+                Console.WriteLine("\tLegal min key size = " + k.MinSize);
+                Console.WriteLine("\tLegal max key size = " + k.MaxSize);
+            }
+            ks = aes.LegalBlockSizes;
+            foreach (KeySizes k in ks)
+            {
+                Console.WriteLine("\tLegal min block size = " + k.MinSize);
+                Console.WriteLine("\tLegal max block size = " + k.MaxSize);
+            }
+
+
+            RijndaelManaged rij = new RijndaelManaged();
+            Console.WriteLine("RijndaelManaged ");
+            ks = rij.LegalKeySizes;
+            foreach (KeySizes k in ks)
+            {
+                Console.WriteLine("\tLegal min key size = " + k.MinSize);
+                Console.WriteLine("\tLegal max key size = " + k.MaxSize);
+            }
+            ks = rij.LegalBlockSizes;
+            foreach (KeySizes k in ks)
+            {
+                Console.WriteLine("\tLegal min block size = " + k.MinSize);
+                Console.WriteLine("\tLegal max block size = " + k.MaxSize);
+            }
+            TripleDESCryptoServiceProvider tsp = new TripleDESCryptoServiceProvider();
+            Console.WriteLine("TripleDESCryptoServiceProvider ");
+            ks = tsp.LegalKeySizes;
+            foreach (KeySizes k in ks)
+            {
+                Console.WriteLine("\tLegal min key size = " + k.MinSize);
+                Console.WriteLine("\tLegal max key size = " + k.MaxSize);
+            }
+            ks = tsp.LegalBlockSizes;
+            foreach (KeySizes k in ks)
+            {
+                Console.WriteLine("\tLegal min block size = " + k.MinSize);
+                Console.WriteLine("\tLegal max block size = " + k.MaxSize);
+            }
+
+
+            using (RijndaelManaged rijAlg = new RijndaelManaged())
+            {
+                rijAlg.KeySize = 256;
+                rijAlg.BlockSize = 256;
+                rijAlg.GenerateKey();
+                rijAlg.GenerateIV();
+                Console.Out.WriteLine(rijAlg.KeySize + " " + rijAlg.BlockSize + " " + Convert.ToBase64String(rijAlg.IV, Base64FormattingOptions.None) + " " +
+                    Convert.ToBase64String(rijAlg.Key, Base64FormattingOptions.None));
+            }
+
+
+            TripleDESCryptoServiceProvider des = new TripleDESCryptoServiceProvider();
+            des.KeySize = 192;
+            des.BlockSize = 64;
+            des.GenerateKey();
+            des.GenerateIV();
+            Console.Out.WriteLine(des.KeySize + " " + des.BlockSize + " " + Convert.ToBase64String(des.IV, Base64FormattingOptions.None) + " " +
+                Convert.ToBase64String(des.Key, Base64FormattingOptions.None));
+
+
+        }
+    }
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org


Mime
View raw message