public void xr_subscriptionFilterws() { Console.Out.WriteLine("serialization xr_subscriptionFilterws"); Console.Out.WriteLine("xr_subscriptionFilterws"); subscriptionFilter r = new subscriptionFilter(); UDDIClient clerkManager = null; Transport transport = null; UDDIClerk clerk = null; try { clerkManager = new UDDIClient("uddi.xml"); transport = clerkManager.getTransport("default"); org.uddi.apiv3.UDDI_Security_SoapBinding security = transport.getUDDISecurityService(); org.uddi.apiv3.UDDI_Inquiry_SoapBinding inquiry = transport.getUDDIInquiryService(); org.uddi.apiv3.UDDI_Publication_SoapBinding publish = transport.getUDDIPublishService(); org.uddi.apiv3.UDDI_CustodyTransfer_SoapBinding custody = transport.getUDDICustodyTransferService(); org.uddi.apiv3.UDDI_Subscription_SoapBinding sub = transport.getUDDISubscriptionService(); clerk = clerkManager.getClerk("default"); save_subscription ss = new save_subscription(); ss.subscription = new subscription[] { new subscription() }; ss.subscription[0].subscriptionFilter = r; sub.save_subscription(ss); } catch (Exception ex) { String s = ""; while (ex != null) { s = s + ex.Message; ex = ex.InnerException; } if (ContainsSerializationError(s)) { Assert.Fail(s); } } finally { if (transport != null && transport is IDisposable) { ((IDisposable)transport).Dispose(); } if (clerk != null) { clerk.Dispose(); } } }
public static void init() { if (Environment.GetEnvironmentVariable("debug") != null && Environment.GetEnvironmentVariable("debug").Equals("true", StringComparison.CurrentCultureIgnoreCase)) { serialize = true; } clerkManager = new UDDIClient("resource/uddi.xml"); 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; } }
public void xr_subscriptionResultsListws() { Console.Out.WriteLine("serialization xr_subscriptionResultsListws"); subscriptionResultsList r = new subscriptionResultsList(); UDDIClient clerkManager = null; Transport transport = null; UDDIClerk clerk = null; try { clerkManager = new UDDIClient("uddi.xml"); transport = clerkManager.getTransport("default"); org.uddi.apiv3.UDDI_Security_SoapBinding security = transport.getUDDISecurityService(); org.uddi.apiv3.UDDI_Inquiry_SoapBinding inquiry = transport.getUDDIInquiryService(); org.uddi.apiv3.UDDI_Publication_SoapBinding publish = transport.getUDDIPublishService(); org.uddi.apiv3.UDDI_CustodyTransfer_SoapBinding custody = transport.getUDDICustodyTransferService(); org.uddi.apiv3.UDDI_Subscription_SoapBinding sub = transport.getUDDISubscriptionService(); clerk = clerkManager.getClerk("default"); } 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(); } } }
private void Init() { try { // create a client and read the config in the archive; // you can use your config file name client = new UDDIClient("uddi.xml"); clerk = client.getClerk("default_non_root"); // a UddiClient can be a client to multiple UDDI nodes, so // supply the nodeName (defined in your uddi.xml. // The transport can be WS, inVM, RMI etc which is defined in the uddi.xml Transport transport = client.getTransport("default_non_root"); // Now you create a reference to the UDDI API security = transport.getUDDISecurityService(); inquiry = transport.getUDDIInquiryService(); publish = transport.getUDDIPublishService(); } catch (Exception e) { while (e!=null) { Console.Out.WriteLine(e.Message + Environment.NewLine + e.StackTrace + Environment.NewLine); e = e.InnerException; } } }
public static UDDI_Publication_SoapBinding getUDDIPublicationPort(String endpoint) { UDDI_Publication_SoapBinding i = new UDDI_Publication_SoapBinding(); i.Url = endpoint; return i; }