How to print xml response of Webservice

Jun 11, 2010 at 3:23 PM
Edited Jun 11, 2010 at 3:31 PM
Marc, I have done this so far to get itmes from list and work fine but only thing how can print response to figure out XML. <script type="text/javascript"> $(document).ready(function() { $().SPServices({ operation: "GetListItems", async: false, listName: "{9275c903-93dc-485b-bbec-7fbd457c9c6c}", webURL:"/CORPORATE", CAMLQuery:"<Query>" + "<OrderBy><FieldRef Name='Title' Ascending='TRUE'/></OrderBy>" + "</Query>", completefunc: processResult }); }); function processResult(xData, status){ } </script> Please advise
Coordinator
Jun 11, 2010 at 4:20 PM

Ronak:

You can see the contents of the XML returned by the Web Services quickly by adding this alert in the completefunc:

alert(xData.responseXML.xml);

See the documentation at the bottom of this page: http://spservices.codeplex.com/wikipage?title=%24%28%29.SPServices

M.