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

  • Home
  • SEARCH
  • 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 7952173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:46:53+00:00 2026-06-04T02:46:53+00:00

Please use my previous question as reference. I have marked an answer already. Question

  • 0

Please use my previous question as reference. I have marked an answer already.

Question

I’m a .NET developer doing some work for a company that uses Classic ASP. My experience with server side development is VB.NET or C# with some sort of MVC pattern. Consider the following code snippet, I wrote it in an ASP page the company would like to keep and “include” in other pages where this web call would be needed. Kind of like a reusable piece of code. I’ve left some out for sanity reasons.

//Create ActiveXObject, subscribe to event, and send request
        var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");

        xmlHttp.onreadystatechange = function() {
            if (xmlHttp.readyState == 4) {
                xmlDoc.loadXML(xmlHttp.responseText);
                debugger;
                var JSON = $.xml2json(xmlDoc);
                parseResponse(JSON);
            }
        }

        urlToSend = encodeURI(REQUEST);
        urlRest += urlToSend
        xmlHttp.open("GET", urlRest, false);
        xmlHttp.send(null);

After struggling with a variety of security problems, I was glad when this finally worked. I changed a setting in Internet Options to allow scripts to access data from other domains. I presented my solution, but the Company would have to change this setting on every machine for my script to work. Not an ideal solution. What can I do to make this run on the server instead of the client’s browsers?

I have a little bit of knowledge of the <% %> syntax, but not much.

  • 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-06-04T02:46:55+00:00Added an answer on June 4, 2026 at 2:46 am

    This SO Question should help you call the service server side:
    Calling REST web services from a classic asp page

    To Summarise, use MSXML2.ServerXMLHTTP

    Set HttpReq = Server.CreateObject("MSXML2.ServerXMLHTTP")
    HttpReq.open "GET", "Rest_URI", False
    HttpReq.send
    

    And check out these articles:

    • Integrating ASP.NET XML Web Services with ‘Classic’ ASP Applications
    • Consuming XML Web Services in Classic ASP
    • Consuming a WSDL Webservice from ASP

    You will also need a way to parse JSON

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

Sidebar

Related Questions

Please tell me how to use google calendar in asp.net. i needs a sample
This question might seem a repeat of previous ones. I have read through a
First, please forgive and point out if I am to use some other protocol
In a previous question what I thought was a good answer was voted down
I had a look at this previous question however this doesn't seem to work
Okay, as I learned via my previous question , the RWH book is already
Since I can't post an answer to my previous question yet, I decided to
This stems from a previous question I asked regarding code metrics. I have been
In a previous question I enquired about the use of the SQL command LOAD
I hope I get an answer to my question this time, I already posted

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.