Search the web
Sign In
New User? Sign Up
xml-rpc · XML-RPC Discussion
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
xmlrpc with c#.net   Message List  
Reply | Forward Message #6812 of 6840 |
Re: xmlrpc with c#.net

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]
>





Thu Apr 23, 2009 10:04 am

dineshp_832003
Offline Offline
Send Email Send Email

Forward
Message #6812 of 6840 |
Expand Messages Author Sort by Date

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',...
verynew
dineshp_832003
Offline Send Email
Apr 14, 2009
1:09 pm

Hello Dineshp. You can nest XmlRpcStructs just like you would nest .net Hashtables: XmlRpcStruct t = new XmlRpcStruct(); XmlRpcStruct u = new XmlRpcStruct(); ...
Troy Farrell
troyatni
Offline Send Email
Apr 14, 2009
2:54 pm

Hello troy, Thank you very much for your answer. I have implemented the interface and structure as below [XmlRpcUrl("http://www.myurl.com")] public interface...
verynew
dineshp_832003
Offline Send Email
Apr 21, 2009
10:32 am

Dinesh, If your client is not receiveing a response, your client is probably not transmitting a request. Try using Wireshark http://www.wireshark.org/ to ...
Troy Farrell
troyatni
Offline Send Email
Apr 21, 2009
2:00 pm

hello troy, Thank you once again for your reply. Actually is it possible to view the request in from the c#.Net itself so that i can verify with the server api...
verynew
dineshp_832003
Offline Send Email
Apr 21, 2009
3:57 pm

Hi Dinesh. Since you are using XML-RPC.NET, you should read the Debugging section of the FAQ. It answers your question: ...
Troy Farrell
troyatni
Offline Send Email
Apr 21, 2009
4:32 pm

Hello troy, This was really good help. I had used Fiddler to view the request header. Actually i have a send a request to the server api function like this ...
verynew
dineshp_832003
Offline Send Email
Apr 22, 2009
8:53 pm

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...
verynew
dineshp_832003
Offline Send Email
Apr 22, 2009
9:38 pm

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...
Troy Farrell
troyatni
Offline Send Email
Apr 23, 2009
12:06 am

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....
verynew
dineshp_832003
Offline Send Email
Apr 23, 2009
10:05 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help