By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,148 Members | 1,342 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,148 IT Pros & Developers. It's quick & easy.

Non .net c++ to c# xmlrpc

P: n/a
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

Mar 8 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Mar 8, 1:39 pm, tmugav...@gmail.com wrote:
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...
[snip]

You'll probably want to try a Microsoft-specific newsgroup since this
groups is concerned with the standard C++ language itself, not
arbitrary applications written in or problems to be solved with it.
See this FAQ for what is on-topic here and for a partial list of other
places you might try:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

Mar 8 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.