I have a webservice webmethod which saves the xml output to destination
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Xml)]
public XmlDocument GetList(
string keyword1, string streetname, string lat, string lng, string radius)
{
XmlDocument xmlDoc = CreateXML( keyword1,streetname,lat,lng,radius);
//save file to application folder which will be refferd by client application
xmlDoc.Save(Server.MapPath("~/Block3.xml"));
return xmldoc;
}
I am trying to refer from client side using the following code in searchurl
function searchLocationsNear() {
var radius = document.getElementById('radiusSelect').value;
var searchUrl ="http://localhost:2385/block/Block3.xml"; //reference for xml file stored in application folder
GDownloadUrl(searchUrl, function(data) {
var xml = GXml.parse(data);