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 8817007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:44:54+00:00 2026-06-14T04:44:54+00:00

I try to get data from my asp.net restful webservice from my node.js server

  • 0

I try to get data from my asp.net restful webservice from my node.js server but I dont know how to do it. I have tried some ways (using jquery, but get some error, and I dont know why).
The url to get data from asp.net restful is something like this: “http://localhost:20034/api/Homepage/friendlist?id=1”

Hope someone can help me. Thanks!

  • 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-14T04:44:55+00:00Added an answer on June 14, 2026 at 4:44 am

    Not sure about that error you are getting when using jQuery. You would need to provide more details about that.

    In general though, if you want to make an HTTP request using node.js, you can use the http.get() function.

    For example (from the official node.js documentation):

    var http = require('http');
    http.get("http://www.google.com/index.html", function(res) {
      console.log("Got response: " + res.statusCode);
    }).on('error', function(e) {
      console.log("Got error: " + e.message);
    });
    

    If you wanted to use that in a separate function you would call it and provide a callback. This is important due to the asynchronous nature of the http.get() call. Here is an example:

    var http = require('http');
    
    var callService = function(url, callback) {
        http.get(url, function(res) {
            return callback(null, res);
        }).on('error', function(err) {
            return callback(err);
        });
    }
    
    callService("http://www.google.com/index.html", function(err, res){
        if (err) console.log("Got error: " + err.message);
        else console.log("Final result:" + res);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(sorry for the english) I have a ASP .net webservice that get data from
I try to get some data from Google Geocoding API with C# and ASP.net.
I have an ASP.NET application with a ListView . I get data from Active
hi i know i am new to rails. i came from ASP.Net mvc but
I try to get one data column from a MS-Access table and display it
I am try to use an external website to get data but what I
I currently have an ASP.NET script for a TV guide which displays the data
I have a ASP.NET web page that needs to make a SQL Server call
I'm trying to extract form data from within the OnActionExecuting method of an ASP.NET
I get a Data type mismatch criteria expression error when i try to retrieve

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.