Re: xmlrpc with c#.net

"verynew" <[email protected]> Thu, 23 Apr 2009 10:04:23 -0000
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
Hello Troy,

          You are right that was the mistake.. I changed it and it's working fine now.. Really Thank you very much for time and help.


Dinesh.

--- In [email protected], Troy Farrell <troy.farrell@...> wrote:
>
> Hello Dinesh.
> 
> Your program is giving you this:
> 
> {events: {evt_change: True}, services: "aw_email"}
> 
> You want this:
> 
> {aw_email: {evt_change: True}}
> 
> So maybe you need to change this:
> 
> ser.Add("events", events);
> 
> to this:
> 
> ser.Add("aw_email", events);
> 
> You API says nothing of a key "services."  Note that you have no control 
> over the order of structure members in the XML.
> 
> [email protected] wrote on 04/22/2009 05:02:46 AM:
> >
> > hello troy,
> > 
> > This is really good help. I had used the fiddler to view the request
> > and reponse header. I found what is the problem i have. Actually my 
> > api function of the server looks like this below
> > 
> > chawpref(id, {'aw_email':{'evt_change':True,}}
> > 
> > The aw_email is a structure and evt_change nested structure of the 
> > aw_email. To pass value like this using the xmlrpcstruct..
> > 
> > XmlRpcStruct mystruct;
> > bool reset = true;
> > XmlRpcStruct ser = new XmlRpcStruct();
> > XmlRpcStruct events = new XmlRpcStruct();
> > bool value = true;
> > ser.Add("services", "aw_email");
> > ser.Add("events",events);
> > events.Add("evt_change", value);
> > mystruct = mydo.chawpref(docid, ser, reset);
> > Actually iam adding the aw_email first and then the ev_change in the
> > code but the request header it is like this 
> > 
> > 
> > <param>
> > <value>
> > <struct>
> > <member>
> > <name>events</name>
> > <value>
> > <struct>
> > <member>
> > <name>evt_change</name>
> > <value>
> > <boolean>1</boolean>
> > </value>
> > </member>
> > </struct>
> > </value>
> > </member>
> > <member>
> > <name>services</name>
> > <value>
> > <string>aw_email</string>
> > </value>
> > </member>
> > </struct>
> > 
> > any idea troy ?..
> > 
> > Thank you very much.
> > dinesh.
> 
> [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/