FYI, Using CookComputing's XML-RPC.NET with OGo

Adam Tauno WIlliams <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Organization Morrison Industries
Message-ID <[email protected]>
Just and FYI to any potential .Net hackers out there.  I've made
CookComputing's XML-RPC.NET assembly connect to the OGo XML-RPC daemon. 
It is currently an ugly hack, but if you modify the SetProperties method
in XmlRpcClientProtocol.cs like

=    public void SetProperties(WebRequest webReq)
=    {
=      if (proxy != null)
=        webReq.Proxy = proxy;
=      HttpWebRequest httpReq = (HttpWebRequest) webReq;
=      httpReq.UserAgent = userAgent;
+      httpReq.ProtocolVersion = HttpVersion.Version10;
+      httpReq.PreAuthenticate = true;
=    }

then all the assemblies fancy features start to work,  so you can define
things like:

[XmlRpcUrl("http://throw/RPC2")]
class opengroupwareServer : XmlRpcClientProtocol
{
  public opengroupwareServer(string userName, string password, string
realm) {
    this.Credentials = new NetworkCredential(userName, password, realm);
   }
   
  [XmlRpcMethod("system.getHostName")]
  public string getHostName() {
    return (string)Invoke("getHostName");
   }
......



-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.