示例#1
0
        static void Main(string[] args)
        {
            //instanciation du webservice
            var mySvc = new FiboSvc.FSvc();

            Console.WriteLine(FibonacciClient(mySvc, 10));

            Console.WriteLine(XmlToJsonClient(mySvc, "<foo>bar</foo>"));

            Console.WriteLine(XmlToJsonClient(mySvc, "<foo>hello</bar>"));

            Console.WriteLine(XmlToJsonClient(mySvc, bigXmlStr));

            Console.WriteLine(XmlToJsonClientJSON(mySvc, bigXmlStr));

            Console.WriteLine(FibonacciClientJSON(mySvc, 10));

            Console.ReadLine();
        }
示例#2
0
 static string XmlToJsonClientJSON(FiboSvc.FSvc svc, string inputXml)
 {
     return(svc.XmlToJsonJSON(inputXml));
 }
示例#3
0
 static string FibonacciClientJSON(FiboSvc.FSvc svc, int val)
 {
     return(svc.FibonacciJSON(val));
 }
示例#4
0
 static int FibonacciClient(FiboSvc.FSvc svc, int val)
 {
     return(svc.Fibonacci(val));
 }