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 xml-rpc@yahoogroups.com, 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.
>
> xml-rpc@yahoogroups.com 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]
>