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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:30:12+00:00 2026-05-26T11:30:12+00:00

I have a previously written client-server application(by another programmer). The client side is written

  • 0

I have a previously written client-server application(by another programmer). The client side is written with javascript. I need to write a new web service with ASP.net but I don’t know how to call web methods. My sitation is the same described here Call web service from javascript
but it doesn’t have a clear answer. (just says use WCF, I don’t know how to do it)
(note that my client is a totally different project from the server, suppose it is written in eclipse)
I want to know how I can call the HelloWorld method that is created by default in aa ASP.net web service, from a simple html code(including js)

Thanks,
Ela

  • 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-26T11:30:12+00:00Added an answer on May 26, 2026 at 11:30 am

    refer the following links wish will provide you complete guide on how to call web service using JavaScript/Asp.net Ajax or jQuery.

    http://cmsnsoftware.blogspot.com/2011/01/how-to-call-csharp-function-in-ajax.html

    http://cmsnsoftware.blogspot.com/2011/02/how-to-use-ajax-auto-complete-in-aspnet.html

    sample code

    if (window.XMLHttpRequest) {
        // for IE7+, Firefox, Chrome, Opera, Safari
        this.xmlhttp = new XMLHttpRequest();
    }
    else {
        // for IE6, IE5
        try {
            this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e1) {
            try {
                // older version of Msxml
                this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e2) {
                this.xmlhttp = null;
            }
        }
    }
    xmlhttp.onreadystatechange = function() {
        /// <summary>
        /// Display server time when success
        /// </summary>
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            // success Status
            alert(xmlhttp.responseText);
        }
    }
    this.xmlhttp.open("POST", "AjaxServer.asmx/WebMethodName", true);
    this.xmlhttp.send();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have previously written my web apps with a server side / html template
I have previously written an application for Mac OSX that includes a kernel extension.
I'm developing a Grails web application (mainly as a learning exercise). I have previously
I have a server-code that's written in Python, and I have a client-code that's
I have a web application written using Java servlets. I am using Tomcat 7
I have previously written user interfaces using .NET and Windows Forms. I'm about to
I have a windows service written in C# .NET framework 3.5 and would like
We have a web service that we will be hosting on a public web
I have written an FTP client to automatically enter passive mode and subsequently connect
I'm developing a new app, I haven't previously written an app which will cater

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.