Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1055755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:36:43+00:00 2026-05-16T17:36:43+00:00

This is my webservice code which performs constructs xml file and stores to particular

  • 0

This is my webservice code which performs constructs xml file and stores to particular destination ,Is this the correct way to store the resultant xml file ,or please let me know if their are any alternate procedure to do so.
[WebService(Namespace = “http://tempuri.org/“)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class JsonWebService : System.Web.Services.WebService
{

XmlDocument xmlDoc = new XmlDocument();

public string keyword;
public JsonWebService () {

    //Uncomment the following line if using designed components 
    //InitializeComponent(); 
}

[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public bool 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(@"C:\Documents and Settings\Desktop\block\Block3.xml");
  return true;

}

I am not able to refer that xml file constructed at webservice ,from clientside applicaton
this will be my code on clientside ,is this the right way to refer saved xml file
function searchLocationsNear() {
var searchUrl =”http://localhost:2385/blockseek3-9-2010/Block3.xml”; //reference for xml file stored in application folder
GDownloadUrl(searchUrl, function(data) {
var xml = GXml.parse(data);
var markers = xml.documentElement.getElementsByTagName(‘marker’);
map.clearOverlays();
………
………
……..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:36:44+00:00Added an answer on May 16, 2026 at 5:36 pm

    I would store the XML file at some configurable location on server – it may involve creating a unique name for the file or subfolder (that will store the file). I will probably use GUID for the purpose and then the service would return this unique name back to the client. Client can either use another handler (such as Download.ashx) to get that file to client side or you can have virtual directory mapped to your location and used that path e.g. [site]\Saved Files[Unique name]\block3.xml where “Saved Files” would be a virtual directory mapped to the location where files being saved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code for doing an ajax request to a webservice: var MyCode
I am passing 4 Parameters to an asp.net Webservice. This is my Code so
I have written this code which accesses the Delete method on Web Service x,
I'm going to develop a firefox extension which makes an XMLHttpRequest to this WebService.
I have the following code which is trying to post xml constructed data to
I'm trying to refactor some slow running code which writes XML using nested loops
I have code that does a web-service request. While doing this request I need
Currently I have this code: <?php echo '<meta name=robots content=noindex>'; $arr = json_decode(file_get_contents(http://media1.clubpenguin.com/play/en/web_service/game_configs/ paper_items.json),true);
I've generated a web service client using cxf-codegen-plugin, and locally I'm running this code
I have this webservice snippet and i want to print the actual value returned.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.