/[dgee]/dgee/examples/wstest.cs
ViewVC logotype

Diff of /dgee/examples/wstest.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by csmith, Fri Jan 10 22:58:16 2003 UTC revision 1.2 by csmith, Sun Sep 21 10:44:57 2003 UTC
# Line 1  Line 1 
 namespace SomeServiceTest  
 {  
1  using System;  using System;
2    using System.Web.Services;
3  using DotGNU.XmlRpc;  using DotGNU.XmlRpc;
4    
5  [WebService(Description="This set of methods are grouped together into a single class for no reason what-so-ever.", Namespace="http://nfluid.com")]  namespace SomeServiceTest
 public sealed class TestWS  
6  {  {
7    
8      [WebService(Description="This set of methods are grouped together into a single class for no reason what-so-ever.", Namespace="http://nfluid.com")]
9      public sealed class TestWS  : System.Web.Services.WebService
10      {
11      public TestWS() : base() {}      public TestWS() : base() {}
12    
13      [WebMethod("MyMethod", Description="Say Hello")]      [WebMethod("MyMethod", Description="Say Hello", EnableSession = true)]
14      public static String SayHello( String who )      public String SayHello( String who )
15          {      {
           return "Hello " + who;  
         }  
   
     [WebMethod("ThinkOfANumber", Description="Returns a number, Well, you give me a number and I'll return it squared. Hey! This *is* a test!")]  
     public static int BingBong( int num )  
         {  
           return num*num;  
         }  
 };  
16    
17  [WebService(Description="And these methods are together for yet another utterly inexplicable reason.")]        return "Hello " + who;
18  public sealed class TestClass2WS      }
19  {  
20        [WebMethod("ThinkOfANumber", Description="Returns a number, Well, you give me a number and I'll return it squared. Hey! This *is* a test!", EnableSession = true)]
21        public int BingBong( int num )
22        {
23    
24              Application["mr"] = "Blobby";
25              
26              string[] c = Application.AllKeys;
27              //Console.WriteLine("Listing of all key value pairs: ");
28              foreach (string d in c)
29              {
30                    //Console.WriteLine("\tKey {0} has a value of {1}", d, Application[d]);
31          }
32          return num*num;
33        }
34      }
35    
36      [WebService(Description="And these methods are together for yet another utterly inexplicable reason.")]
37      public sealed class TestClass2WS
38      {
39      [WebMethod(Description="Say Goodbye, too-d-loo")]      [WebMethod(Description="Say Goodbye, too-d-loo")]
40      public static String SayGoodbye( String ToWho, int i, int l, double d, double f )      public String SayGoodbye( String ToWho, int i, int l, double d, double f )
41          {      {
42            return "Goodbye " + ToWho;        return "Goodbye " + ToWho;
43          }      }
44  };    }
45  }  }

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26