/[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.3 by csmith, Wed Oct 15 11:06:40 2003 UTC revision 1.4 by csmith, Tue Oct 28 00:32:27 2003 UTC
# Line 2  using System; Line 2  using System;
2  using System.Web.Services;  using System.Web.Services;
3  using DotGNU.XmlRpc;  using DotGNU.XmlRpc;
4    
 struct mystruct {  
    int v1;  
    long v2;  
    public int val1 {  
      get { return v1; }  
      set { v1 = value; }  
    }  
    public long val2 {  
      get { return v2; }  
      set { v2 = value; }  
    }  
 };  
   
5  namespace SomeServiceTest  namespace SomeServiceTest
6  {  {
7    
# Line 54  namespace SomeServiceTest Line 41  namespace SomeServiceTest
41      {      {
42        return "Goodbye " + ToWho;        return "Goodbye " + ToWho;
43      }      }
   
     [WebMethod(Description="Test Struct Return.. It is doubtful this will ever work because of the problems of inspecting the struct contents.")]  
     public mystruct RetStruct( int i, long l )  
     {  
           mystruct str = new mystruct();  
           str.val1 = i;  
           str.val2 = l;  
   
       return str;  
     }  
   
     [WebMethod(Description="Test XmlRpcStruct Return.  We cannot document what the struct contents will be as it gets populated at runtime")]  
     public XmlRpcStruct RetXmlRpcStruct( int i, long l )  
     {  
           XmlRpcStruct str = new XmlRpcStruct();  
           str.Add( "Value1", i );  
           str.Add( "Value2", l );  
   
       return str;  
     }  
44    }    }
45  }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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