blob: 977851236c60a8848cdb1e3246fc8cc061451f10 [file] [log] [blame]
/*
* 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.client.sample.juddi;
using org.apache.juddi.client.samples;
using System;
namespace org.apache.juddi.client.sample
{
class Program
{
static void Main(string[] args)
{
Console.Out.WriteLine("jUDDI.Net sampe programs!");
Console.Out.WriteLine("1) SimpleInquiry");
Console.Out.WriteLine("2) ServiceVersioning");
Console.Out.WriteLine("3) Encryption");
Console.Out.WriteLine("4) WADL2UDDI");
Console.Out.WriteLine("5) WSDL2UDDI");
Console.Out.WriteLine("6) Find_endpoints");
Console.Out.WriteLine("7) jUDDI specific - Save Node");
Console.Out.WriteLine("8) jUDDI specific - Save Clerk");
Console.Out.WriteLine("9) Subscription callbacks");
Console.Out.WriteLine("10) Digital Signatures");
Console.Out.WriteLine("11) Access UDDIv2 using UDDIv3 APIs Inquiry");
Console.Out.WriteLine("12) Access UDDIv2 using UDDIv3 APIs Publish");
Console.Out.Write("Enter selection> ");
String selection = Console.In.ReadLine();
selection = selection.Trim();
if (selection.Equals("1"))
SimpleInquiry.Run();
else if (selection.Equals("2"))
new ServiceVersioning().go();
else if (selection.Equals("3"))
Encryption.main(args);
else if (selection.Equals("4"))
WadlImport.main(args);
else if (selection.Equals("5"))
WsdlImport.main(args);
else if (selection.Equals("6"))
FindendpointsDemo.main(args);
else if (selection.Equals("7"))
saveNodeExample.main(args);
else if (selection.Equals("8"))
saveClerkExample.main(args);
else if (selection.Equals("9"))
SubscriptionCallbackExample.Run(args);
else if (selection.Equals("10"))
DigitalSignaturesExample.Run(args);
else if (selection.Equals("11"))
AccessUDDIv2Inquiry.Run(args);
else if (selection.Equals("12"))
AccessUDDIv2Publish.Run(args);
Console.WriteLine("Press any key to exit");
Console.Read();
}
}
}