/[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.4.1 by npg, Tue Jul 8 00:11:30 2003 UTC revision 1.1.1.1.4.2 by csmith, Sat Aug 30 20:00:55 2003 UTC
# Line 1  Line 1 
1  namespace SomeServiceTest  using System;
2    using System.Web.Services;
3    using DotGNU.XmlRpc;
4    
5    namespace SomeServiceTest
6  {  {
   using System;  
   using System.Web.Services;  
   using DotGNU.XmlRpc;  
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")]    [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    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      {      {
16    
17        return "Hello " + who;        return "Hello " + who;
18      }      }
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!")]      [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 static int BingBong( int num )      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;        return num*num;
33      }      }
34    }    }
# Line 26  namespace SomeServiceTest Line 37  namespace SomeServiceTest
37    public sealed class TestClass2WS    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      }      }

Legend:
Removed from v.1.1.1.1.4.1  
changed lines
  Added in v.1.1.1.1.4.2

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