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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:56:36+00:00 2026-05-11T02:56:36+00:00

Suppose I have the following (rather common) model Client invokes web service request ->

  • 0

Suppose I have the following (rather common) model

Client invokes web service request -> request added to server queue -> server invokes 3rd party app via web service -> 3rd party app notifies server that event processing is finished -> server notifies client that request is completed

What I am wondering about is the ‘server invokes 3rd party app via web service’ stage. The 3rd party app exposes web service methods that are configured inside the application. For instance, I might create a method in this app called ‘MultiplyByTwo’. Then I click ‘GO’ and it generates a web service with methods like BeginCalculateMultiplyByTwo and EndMultiplyByTwo (using the IAsync model). This is great.

Now I am creating a queue object so that multiple clients can request this service and have the server queue them up for sequential execution. So this queue object will have a method like runNext() that will invoke the web service on the 3rd party app. This is great so long as I know the name of the methods that are being called (BegingCaculateMultiplyByTwo in this case), but what if I want to dynamically change the name of the method?

So in the 3rd party app, I change my web service method and call it ‘MultiplyByThree’. This will expose BeginMultiplyByThree and some other methods with a predictable naming scheme. How can I set my class up to dynamically call a method of which I dont yet know the name?

Ideally if I could set the name of the method to be called in an app.config file that would be great.

I suppose this is something I can achieve via reflection?

  • 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. 2026-05-11T02:56:37+00:00Added an answer on May 11, 2026 at 2:56 am

    You can certainly do this via reflection:

    MyClass o = new MyClass(); MethodInfo method = o.GetType().GetMethod('UnknownMethod',      BindingFlags.Instance | BindingFlags.Public); MyRetValue retValue = (MyRetValue)     method.Invoke(o, new object[] { 'Arg1', 2, 'Arg3' }); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 170k
  • Answers 170k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It looks like you are trying to do the DateTimeAxis… May 12, 2026 at 2:02 pm
  • Editorial Team
    Editorial Team added an answer A "Connect URL" and a "Callback URL" are two different… May 12, 2026 at 2:02 pm
  • Editorial Team
    Editorial Team added an answer Try using string.join: p = subprocess.Popen(args = "myprog.exe" + "… May 12, 2026 at 2:02 pm

Related Questions

Suppose I have the following (rather common) model Client invokes web service request ->
I've been looking around, and so far haven't managed to find a good way
Hey all, I have something of an interesting requirement for my project. I need
Suppose I have the following: A region defined by minimum and maximum latitude and
I'm thinking how to arrange a deployed python application which will have a Executable

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.