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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:53:26+00:00 2026-05-29T10:53:26+00:00

I have a C# asmx web service that is being called, and I am

  • 0

I have a C# asmx web service that is being called, and I am seeing the results come back on the client, so I know that the code is running to completion without throwing any exceptions. Here is the web service class:

namespace App_WebRole
{
    /// <summary>
    /// Summary description for SubscriptionStatus
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    [ScriptService]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class SubscriptionStatus : System.Web.Services.WebService
    {

        [WebMethod]
        [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
        public string HelloWorld()
        {
            DataSet1 dataSet = new DataSet1();
            DataSet1TableAdapters.StatusRequestsTableAdapter statusTableAdapter = new DataSet1TableAdapters.StatusRequestsTableAdapter();
            DataSet1.StatusRequestsRow newRow = dataSet.StatusRequests.NewStatusRequestsRow();
            newRow.ApplicationID = "Test";
            newRow.RequestDate = DateTime.Now;
            dataSet.StatusRequests.Rows.Add(newRow);
            dataSet.StatusRequests.AcceptChanges();
            statusTableAdapter.Update(dataSet);
            return "Hello World 2";
        }
    }
}

I am running this locally on my machine with a local SQL Server Express database, and I do not see any records being inserted in to the appropriate table.

If I change the return value, I do see the changed value in the client. Also, I looked at the web.config file in the local web site directory, and it has the connection string for the local SQL Server Express database.

  • 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-29T10:53:27+00:00Added an answer on May 29, 2026 at 10:53 am

    Actually, to get this working, I switched away from using a DataSet (.xsd) in my application to using LINQ to SQL classes (.dbml) instead. James’ answer may in fact have done the trick, but by the time he posted it, I had already switched it over to the dbml and had it working like a charm.

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

Sidebar

Related Questions

Why is that Web Service files (.asmx) have their code-behind placed in app_code folder
I have a asmx web service running on a test server that has anonymous
I have an asmx web service that should only be allowed to respond to
I have a web service that contains 2 asmx files (public.asmx and private.asmx). On
I have a .NET web service (using asmx...have not upgraded to WCF yet) that
I have a web service (ASMX) and in it, a web method that does
We have a .NET 2.0 web service (.ASMX file). This web service is being
We have a hybrid WCF and ASMX web service currently being used on a
I have a asmx web-service that returns a list of countries for a continent.
I have a ASP.NET web service ( .asmx ) with methods that receives int

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.