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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:39:56+00:00 2026-05-27T01:39:56+00:00

Whats the best way to implement this. I am building application that will be

  • 0

Whats the best way to implement this.

I am building application that will be hosted as a web service. This app takes an employeeID and returns an employee object that contains lots of info regarding the employee. (name, status, full-time/part-time, etc)

I want the two existing apps we have (and more to come) to be able to call a method that the web service will have and return the employee object. (also at time this web service that returns the object may have new fields added to it – Pay rate, etc)

How would I go about creating a new object from this web service reference in the existing applications.

Would I decalre it like Dim Employee as new emp_webservice.employee ?

And then be able to use this object within the app? Or would the better practice be to also included the same class files? It seems like this would not be the way to go, since if I make a change to that class I then have to make it in all places

Thanks for any clarification on this.

  • 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-27T01:39:56+00:00Added an answer on May 27, 2026 at 1:39 am

    When you add a reference to a web service in a .net application, the objects exposed by that web service exist in the namespace that you created for that web service when it was added to your application.

    So, any reference to classes from that web service would need to reference the namespace for that web service, as you have indicated. You could also have an Imports WebServiceNameSpace if you don’t want to fully qualify every class.

    You can’t really include the class files if you are using the automatic web service interface generation functionality that VS.Net provides.

    Also, if you change properties in the web service, those updated properties won’t be propagated to the client until you update the web service reference in your project.

    Finally, if you want to add methods or additional properties to the web service classes on the client side, you can use Partial classes.

    For example, let’s say that the web service only provides an hourly pay rate, but I want to show a weekly salary in the client. I can extend the web service class as follows:

    Namespace emp_webservice
      Partial Public Class employee
          Public Function GetWeeklyPayRate() As Decimal
              Return Me.HourlyRate * 8 * 5
          End Function
      End Class
    End Namespace
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wondering what the best practice way (in C#) is to implement this xpath
Whats the best way to implement rollover 'buttons' like Stackoverflow has for 'Questions', 'Tags',
What's the best way to implement user controls that require AJAX callbacks? I want
What's the best way to implement a Hash that can be modified across multiple
Duplicate: What’s the best way to implement an ‘enum’ in Python? Whats the recognised
I am building a WinForms application that interacts with a running application. This application
I'm building an application that will take an image of a single person's whole
What's the best way to implement the enum idiom in Ruby? I'm looking for
What's the best way to implement a classic curry function in actionscript with a
What's the best way to implement Meebo-style floating windows? I'd prefer to use Prototype

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.