[Mono-list] Xml-rpc.net problem with mono

Rohit Rohit <roxtar@gmail.com>
Fri May 13 17:41:56 EDT 2005


Hello,
I downloaded the XML-RPC implementation for .NET from www.xml-rpc.net
. I can't make it work. I built it using nant I can even successfully
compile programs with it. This is the example program which I am
trying to run:

<program>

using System;
using CookComputing.XmlRpc;
struct sumdiff {
  public int sum;
  public int diff;
}
[XmlRpcUrl("http://www.cookcomputing.com/sumAndDiff.rem")]
class sumdiffproxy: XmlRpcClientProtocol {
  [XmlRpcMethod("sample.sumAndDiffernce")]
  sumdiff calc(int x,int y) {
    return (sumdiff)Invoke("SumAndDifference",new Object[]{x,y});
  }
  public static void Main() {
    sumdiffproxy s=3Dnew sumdiffproxy();
    sumdiff v=3Ds.calc(4,5);
    Console.WriteLine(v.sum);
    Console.WriteLine(v.diff);
  }
}

</program>
I compiled the above program with : 'mcs /r:CookComputing.XmlRpc.dll sumdif=
f.cs'

But when I run the program I get the following errors:=20

<error>

Compat mode: the request from
/usr/lib/mono/gac/CookComputing.XmlRpc/0.9.1.0__a7d6e17aa302004d/CookComput=
ing.XmlRpc.dll
to load System was remapped (http://www.go-mono.com/remap.html)
Compat mode: the request from
/usr/lib/mono/gac/CookComputing.XmlRpc/0.9.1.0__a7d6e17aa302004d/CookComput=
ing.XmlRpc.dll
to load System.Web was remapped (http://www.go-mono.com/remap.html)

Unhandled Exception: System.Exception: Invoke on non-existent or
non-public proxy method
in <0x00074> CookComputing.XmlRpc.XmlRpcClientProtocol:GetRpcMethodName
(object,string)
in <0x0004e> CookComputing.XmlRpc.XmlRpcClientProtocol:MakeXmlRpcRequest
(System.Net.WebRequest,string,object[],object)
in <0x000b7> CookComputing.XmlRpc.XmlRpcClientProtocol:Invoke
(object,string,object[])
in <0x00013> CookComputing.XmlRpc.XmlRpcClientProtocol:Invoke (string,objec=
t[])
in <0x0006b> (wrapper remoting-invoke-with-check)
CookComputing.XmlRpc.XmlRpcClientProtocol:Invoke (string,object[])
in <0x0008c> sumdiffproxy:calc (int,int)
in <0x0007d> (wrapper remoting-invoke-with-check) sumdiffproxy:calc (int,in=
t)
in <0x0004f> sumdiffproxy:Main ()

</error>


Is the problem with my program or the way I built the package.
Thanks for any help
Rohit
--=20
http://www.geocities.com/rohitkkumar



More information about the Mono-list mailing list