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

The Archive Base Latest Questions

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

I have several constant defined for a webservice, and I would like to make

  • 0

I have several constant defined for a webservice, and I would like to make these available to consuming client. Both the server and client are .Net.

I think it is possible to achieve this by using enum’s, but many of my constants are text string with spaces, so I would have to write an extra function to convert the enum into the equivalent text string.

So, is there any way of defining the constants in the web service so they would then be available to the client??

Update (Kev): I want to expose them to the client via the web service itself, not via a separate assembly.
Update #2 (Paige): So if I understand you, I will then have a new List object containing the constants, but how does the client use that? Wouldn’t it look like (roughly):
dim constants as List = mywebservice.GetConstants()
dim someresult as Integer = mywebservice.somefunction(constants(3))
Unless I misunderstand you, that totally defeats the point of defining constants.

  • 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-13T23:22:51+00:00Added an answer on May 13, 2026 at 11:22 pm

    The answer seems be…..cannot be done.

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

Sidebar

Related Questions

I have several old 3.5in floppy disks that I would like to backup. My
I have several RequiredFieldValidators in an ASP.NET 1.1 web application that are firing on
I am coding several reference algorithms in both Java and C/C++. Some of these
I have some constants in JavaScript that I'd like to reuse in several files
I have a single string constant that I have to re-use in several different
I have several CONST's defined on some classes, and want to get a list
I have several different databases for different environments to connect my application to. These
/** Constant <code>IDX_USER=IDX_+ USER_ID</code> */ I have several lines of code which was generated
I have several constants that I use, and my plan was to put them
I have several obj-c classes, each of which require a number of constants that

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.