473,387 Members | 1,789 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,387 software developers and data experts.

xmlrcp register classes

Hello,

I have a structured program with several classes which I would like to
export using a xmlrpc server. I'm doing this

Server = SimpleXMLRPCServer (('127.0.0.1',8080))

Server.register_instance(MyClass1())
Server.register_instance(MyClass2())
Server.register_instance(MyClass3())

What is seems to happen is that only the last class I register it is the
only one being exported. How can I register all the classes? Thanks.

--
Sergio Rua
Sep 5 '05 #1
2 1145
Sergio Rua wrote:
Server = SimpleXMLRPCServer (('127.0.0.1',8080))

Server.register_instance(MyClass1())
Server.register_instance(MyClass2())
Server.register_instance(MyClass3())

What is seems to happen is that only the last class I register it is the
only one being exported. How can I register all the classes? Thanks.


class MyCombinedClass(MyClass1, MyClass2, MyClass3):
pass

Server.register_instance(MyCombinedClass())

Cheers,
Brian
Sep 5 '05 #2
Hello,
class MyCombinedClass(MyClass1, MyClass2, MyClass3):
pass

Server.register_instance(MyCombinedClass())


That was easy :) Thanks a lot.

--
Sergio Rua
Sep 5 '05 #3

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

Similar topics

3
by: vipin | last post by:
Hi, I have created c# code using wsdl.exe from a wsdl file. But I want to use the functionality from c/c++ code. Is it possible to convert the c# code to COM classes or something similar which...
2
by: Josema | last post by:
Hi, Im reading some examples in internet about classes, and i see in some cases that the name of the classes should be like nouns (for instance: class person, inside namespace company, inside of...
6
by: Outshined | last post by:
I have a class library where just about every class uses its static initializer to register with a central registry object in the same assembly. I am hoping for some sort of Assembly.Load event...
0
by: hiriumi | last post by:
I have an conversion issue from ASP .NET 1.1 to 2.0. I used to be able to create a class that inherits from any class under System.Web.UI.HtmlControls and register the namespace in which the...
8
by: Markus Henschel | last post by:
Hello, this is a test case of something I just can't explain myself: ...
9
by: Terry | last post by:
I am trying to test out the ability of VB6 (VBA access) to instanciate a VB.net Object and call its methods. I came accross the following article in my vs2005 help search:...
0
by: pedz | last post by:
I am trying to write a set of classes, probably template classes, to allow "pretty" and safe access to low level machine words. The syntax I would like to end up with is something like: foo =...
2
by: gz | last post by:
Good morning everyone, I am writing a module that needs to access fields in classes efficiently. The trouble is that the module does not know the classes beforehand, although the user of the...
2
by: divus | last post by:
I am fairly new to python and I do not know if what I would like to do is possible; however, I have done some searching to see if I could find an answer - I found nothing. I have a file with...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.