Advertisement
Guest User

Untitled

a guest
May 2nd, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.04 KB | None | 0 0
  1. // Cliente.cs created with MonoDevelop
  2. // User: p at 7:12 PM 1/17/2009
  3. //
  4. // To change standard headers go to Edit->Preferences->Coding->Standard Headers
  5. //
  6.  
  7. using System;
  8. using CookComputing.XmlRpc;
  9.  
  10. namespace dokurpc{
  11.    
  12.     public class Client{
  13.         private string serverUrl;
  14.         private string user;
  15.         private string password;
  16.         private doku dokuobject;
  17.         private string rpcCompleteUrl;
  18.        
  19.         public Client(string serverUrl, string user, string password){
  20.             this.serverUrl = serverUrl;
  21.             this.user = user;
  22.             this.password = password;
  23.             this.dokuobject = XmlRpcProxyGen.Create<doku>();
  24.             this.rpcCompleteUrl = serverUrl + "?u=" + this.user + "&p=" + this.password;
  25.                
  26.         }
  27.        
  28.  
  29. @@      [XmlRpcUrl(this.rpcCompleteUrl)]
  30.         public interface doku : IXmlRpcProxy{
  31.                
  32.             [XmlRpcMethod("wiki.getPage")]
  33.             string getpage(string pagename);
  34.            
  35.             [XmlRpcMethod("wiki.getAllPages")]
  36.             String[] getAllPages();
  37.            
  38.             [XmlRpcMethod("wiki.putPage")]
  39.             int putPage(string pagename, string content, string summary);
  40.                
  41.         }
  42.     }
  43.    
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement