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(); }
static string XmlToJsonClientJSON(FiboSvc.FSvc svc, string inputXml) { return(svc.XmlToJsonJSON(inputXml)); }
static string FibonacciClientJSON(FiboSvc.FSvc svc, int val) { return(svc.FibonacciJSON(val)); }
static int FibonacciClient(FiboSvc.FSvc svc, int val) { return(svc.Fibonacci(val)); }