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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:11:13+00:00 2026-06-03T17:11:13+00:00

I have a web service [WebMethod] public void Insert(int node, int date, int time,

  • 0

I have a web service

[WebMethod]
public void Insert(int node, int date, int time, int rtt)
{

    string query = "INSERT INTO pingresult (node, date, time, rtt) VALUES('"+node+"', '"+date+"', '"+time+"', '"+rtt+"')";

    if (this.OpenConnection() == true)
    {              
    MySqlCommand cmd = new MySqlCommand(query, connection);
    cmd.ExecuteNonQuery();        
    this.CloseConnection();
    }
}

and when i tried to using the method

public void Main(string[] args)
{
    int node, date, time, rtt;
    PingService.Service1 s1 = new ConsoleApplication1.PingService.Service1();          

    node = 1;
    date = 090512;
    time = 1720;
    rtt = 2222;

    s1.Insert(node,date,time, rtt);           
 }

and i got this error
No overload for method ‘Insert’ takes ‘4’ arguments

Any Idea?

I have look for the solution at here but i dont really know what it means

  • 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-03T17:11:15+00:00Added an answer on June 3, 2026 at 5:11 pm

    I have found my stupid mistake where I didn’t update my Web Reference in my client side, and I found the answer Here and thanks for those who give advices.

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

Sidebar

Related Questions

I have the web service: [WebMethod] public void SendMail(string _name, string _email, string _message)
I have a web service that has one method: [WebMethod] public bool SyncUserData(string userxml)
I have web service that should receive param ArrayList [WebMethod] public void SelectPatches(ArrayList selectedPatches){}
I have a web service that contains this method: [WebMethod] public static List<string> GetFileListOnWebServer()
I have a web service (hosted on IIS) that insert data to database(Xampp) [WebMethod]
I have the following web service: [ScriptService] public class Handler : WebService { [WebMethod]
In my asmx file, I have [WebMethod] [ScriptMethod] public void Method(IDictionary<string, CustomClass> objectOfCustomClass) {
I have a simple web service like this: @WebService public class MyWebService { @WebMethod
I have following webservice: [webmethod] public string MakeReservation(?? PassengersInfo)//what data type use for PassengerInfo
i have an ASP.NET web service that returning a custom entity object (Staff): [WebMethod]

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.