Aaah, after working over the weekend finally figured it out. Its because jScript does not serialize/desrialize XML objects. So i had to use one of the plugins out there to do the same.
Now I can do the XMLRPC calls and it works. On Mon, Mar 9, 2009 at 1:32 AM, Michael O'Brien <[email protected]> wrote: > > Hi Ritesh, > > the problem is that specifying dataType: "xml" doesn't tell jQuery it > should send the data in XML, just that it should expect XML to be > returned from the url. You need to construct the XML yourself and set > the contentType option to "text/xml" to actually send your data as > XML. > > http://docs.jquery.com/Ajax/jQuery.ajax#options > > cheers > Michael > > On Mar 9, 2:07 am, Ritesh Nadhani <[email protected]> wrote: >> Hmm. >> >> I am not sure how JSON would be simpler then XML. Also, some other >> system use the same XMLRPC without any problem. >> >> The problem seems to be that jquery is not serializing the data to >> actual XML data and thus server is failing with ExpatParse error. >> >> Thoughts? >> >> On Sun, Mar 8, 2009 at 5:46 AM, Let Delete My Apps >> >> >> >> <[email protected]> wrote: >> >> > Hi Ritesh Nadhani, >> > I think your code is complex. >> >> > Can you try another more simple way, for example using the JSON/JSON-P >> > technique? >> >> > View the source code of my last app: >> >http://pyoohtml.appspot.com/let-delete-my-apps/home >> > . >> > . >> > On Mar 8, 12:49 pm, Ritesh Nadhani <[email protected]> wrote: >> >> Hi >> >> >> Any idea what might be wrong with this AJAX AJAX >> >> call:http://paste.pocoo.org/show/106941/-its always returning me XMLParse >> >> error but when done thru my Python client, it works. >> >> >> When I just do: response.write(request.raw_post_data) - i get >> >> var1=value1&var2=value2 etc. Rather then the actual XML so the server >> >> is giving me all kinds of Expat parsing error. >> >> >> My code to implement an XML-RPC:http://paste.pocoo.org/show/106945/ >> >> >> Django code from:http://code.djangoproject.com/wiki/XML-RPC >> >> >> -- >> >> Riteshhttp://www.riteshn.com >> >> -- >> Riteshhttp://www.riteshn.com > > > -- Ritesh http://www.riteshn.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
