473,320 Members | 2,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Non .Net C++ xmlrpc to C#

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
1 2495
On Mar 8, 2:51 pm, tmugav...@gmail.com wrote:
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
I figured this out...It can be done using PocketXML-RPC

http://www.pocketsoap.com/pocketXMLRPC/

Hope this helps someone else. It takes a bit of tweaking, but I was
up and running in less than 10 minutes :)

Mar 8 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: glin | last post by:
Hi I am trying to integrate the xmlrpc server into a class, does anyone know how to get it working? test.html: <html> <head> <title>XMLRPC Test</title> <script src="jsolait/init.js"></script>...
0
by: Juan Carlos CORUÑA | last post by:
Hello all, I'm trying to create a COM Server with an embedded xmlrpc server. Here is way it must work: - The client application (programmed with a COM capable language) instantiates my COM...
6
by: Michael Urman | last post by:
Hi. I'm a user of python for about 3 years now. I've written a client-server application that uses SimpleXMLRPCServer and xmlrpclib.ServerProxy to communicate. It's intended to be used by a...
1
by: Joxean Koret | last post by:
Hi to all! I'm having troubles to make my XMLRPC application working with non ASCII characters. Example: 1.- In one terminal run the following script: -----------XMLRPC...
1
by: emielvl | last post by:
Hello, I'm developing a client/server architecture based on the XML-RPC implementation in php4. All works pretty well, except that in the response from the server there is no "Content-Length" in...
4
by: elyob | last post by:
Hi, I've got --with-xmlrpc option in my php.ini and can see on my phpinfo page. Now, how do I include this in some code? So far I've been downloading xmlrpc into a folder and just calling it from...
3
by: Manuel | last post by:
Hello I need a xmlrpc lib for c++. I know two: xmlrpc++ and xmlrpc-c. But i don't know that it is best for me. I am developing an application in c++. I read that the xmlrpc-c lib is in C and wrap...
1
by: fortepianissimo | last post by:
I have a simple xmlrpc server/client written in Python, and the client throws a list of lists to the server and gets back a list of lists. This runs without a problem. I then wrote a simple Java...
0
by: Benjamin Grieshaber | last post by:
Hi, I´m on SuSE 9.3 with xmlrpc-c and xmlrpc-c-devel installed (ver. 0.9.10) I tried to compile php with xmlrpc support and got the following errors: ...
4
by: care02 | last post by:
I have implemented a simple Python XMLRPC server and need to call it from a C/C++ client. What is the simplest way to do this? I need to pass numerical arrays from C/C++ to Python. Yours, Carl
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.