Re: xmlrpc with c#.net

Troy Farrell <[email protected]> Tue, 14 Apr 2009 09:54:04 -0500
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
Hello Dineshp.

You can nest XmlRpcStructs just like you would nest .net Hashtables:

         XmlRpcStruct t = new XmlRpcStruct();
         XmlRpcStruct u = new XmlRpcStruct();
         u.Add("Foo", "Bar");
         t.Add("subStructure", u);

Troy



From:
"verynew" <[email protected]>
To:
[email protected]
Date:
04/14/2009 08:10 AM
Subject:
[xml-rpc] xmlrpc with c#.net
Sent by:
[email protected]








Hello everyone,

Iam using the xmlrpc with the c#.net. My server function looks like this 
below.

API = (('object_id', 'ASCII string', 1),
('services', 'struct', 0, [('events', 'struct', 0, [('evt_read', 
'boolean', 0),
('evt_create', 'boolean', 0),
('evt_move', 'boolean', 0),
('evt_change', 'boolean', 0)])]),
('reset', 'boolean', 0))

Now i have pass the value to this function like this 
chawpref(id, {'aw_report':{'evt_move':False, 'evt_change':True,}}

The problem is the second parameter is a nested structure. how can pass 
the nested structure value in the xmlrpcstruct. 

Thank you very much..





[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/xml-rpc/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/