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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:10:51+00:00 2026-05-22T12:10:51+00:00

I have two web service functions which have the exact same interface (calling from

  • 0

I have two web service functions which have the exact same interface (calling from C#/Winform application):

string[] f1(int, string[]) and string[] f2(int, string[])

to which I’m sending the exact same data. When I call f1, it works just fine and returns a string[], however, when I call f2, I get a SOAPException saying that the “input string is not a correct format”.

What could be causing one to work and the other not to work?

    private void backgroundWorkerUploadNew_DoWork(object sender, DoWorkEventArgs e)
    {
        List<String> submittedList = new List<String>();
        StreamReader reader = new StreamReader(this.textBoxFilename.Text);
        String data;

        while ((data = reader.ReadLine()) != null)
        {
            submittedList.Add(data);
        }
        reader.Close();
        // Send array of handset names to service
        int channelId = 0;
        string[] listToSubmit = submittedList.ToArray();
        channelId = AppStatus.CurrentChannel.ChannelID;
        String[] newHandsetsList = service.Function2(channelId, listToSubmit);
        ...
    }

The web service method

public List<String> Function2(int integer, List<String> strings)
{
    List<String> newList = new List<string>();
    DataTable tempDt = null;
    foreach (String s in strings)
    {
        String q = @"** SOME QUERY **";
        tempDt = Database.RunSql(q);
        ...
    }
    return newList;
}
  • 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-22T12:10:52+00:00Added an answer on May 22, 2026 at 12:10 pm

    That message comes from the Parse method (for numeric types, DateTime, etc.). If the computers are using different cultures, the correct format would be different. If that is the problem, you might be able to solve it by using the invariant culture.

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

Sidebar

Related Questions

I have two ASMX web services consumed from javascript. The first service performs a
So i have these two jquery functions which pass my XHR service a key
I have two data sources: a legacy one (web service) and a database one.
I have two WCF clients consuming a 3rd party web service. These two clients
I have two applications: c++ service and a RoR web server (they are both
I have a web application containing two web services, let's say PublicHello.asmx and RestrictedHello.asmx
I have two web applications running in the same Tomcat Instance. In one of
I have two web applications in the same server like this: /basedir/app1path/default1.aspx /basedir/app2path/default2.aspx How
I have two web applications in the same solution. They both use different membership/profile
I have a web service which returns something of type MyData . public class

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.