Non .Net C++ xmlrpc to C#

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello All,

I have a question that has been giving me a bit of trouble. Has
anyone been able to connect to C# from non .net C++ via XmlRpc? I
have been using the CookComputing XmlRpc Library with .Net remoting
and had success connecting from Java. I need to connect from C++
however, and haven't had any luck there. Here is what I did for c# to
java...

C# setup
RemotingConfiguration.Configure("C:\\Main.config");
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(XmlRpcSvc), "/",
WellKnownObjectMode.Singleton);
Hello function implemented as well...

Also tried this c# setup:
ListDictionary prop = new ListDictionary();
prop.Add("port", 9000);
channel = new HttpChannel(prop, new
XmlRpcClientFormatterSinkProvider(null, null),
new
XmlRpcServerFormatterSinkProvider(null, null));
ChannelServices.RegisterChannel(channel);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(XmlRpcSvc),
"/", WellKnownObjectMode.Singleton);
Hello function implemented as well...

Both worked with this Java setup:
private final static String server_url = "http://localhost:9000";;
XmlRpcClient server = new XmlRpcClient(server_url);
params.addElement("test");
String result = (String) server.execute("XmlRpcSvc.Hello", params);

This call from java yields "Hello test"

I can't get it to connect from C++ using the same xmlrpc I use to
connect with java from c++. Has anyone dealt with this issue, or have
any suggestions for what I can do? Any help would be greatly
appreciated!

T

.



Relevant Pages

  • Re: Non .Net C++ xmlrpc to C#
    ... have been using the CookComputing XmlRpc Library with .Net remoting ... and had success connecting from Java. ... Also tried this c# setup: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Java and xmlrpc?
    ... > Has anybody set up xmlrpc for Java recently, ... > I'm trying to figure out how to use the Apache xmlrpc jar files with ... This was basically an eclipse glitch, ...
    (comp.lang.java.programmer)
  • Example of an XMLRPC client somewhere?
    ... I need to send requests via XMLRPC to various machines. ... but one server (implemented in java) ignores my requests. ... I just discovered that Tcl-SOAP contains an XMLRPC module, ...
    (comp.lang.tcl)
  • Java and xmlrpc?
    ... Has anybody set up xmlrpc for Java recently, say within the last six months, ... I'm trying to figure out how to use the Apache xmlrpc jar files with Eclipse ...
    (comp.lang.java.programmer)
  • Responding to xmlhttp requests.
    ... setup a nice little program that does everything I need.... ... xmlrpc server. ... xmlhttprequests as easily as setting up an xmlrpc service is? ...
    (comp.lang.ruby)