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
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
|