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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:58:30+00:00 2026-05-11T08:58:30+00:00

In VB.NET, I am trying to talk to a webservice (that can’t be changed)

  • 0

In VB.NET, I am trying to talk to a webservice (that can’t be changed) to create and update customer data. The CreateCustomer service expects an object of type ConsumerPerson and the ChangeCustomer service expects an object of type ChangeData.

The properties of these two object are exactly the same, so I thought it would be wise to just set the properties using one single function.

However, I am unable to find a way to tell my function that I want to fill either the ConsumerPerson or the ChangeCustomer object.

How do I make this work without late binding problems?

  • 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-11T08:58:31+00:00Added an answer on May 11, 2026 at 8:58 am

    An interface sounds like your best approach. Here is a short code snippet. I picked a simple property named ‘Name’ of type string. It should be easy to modify with the actual properties on your class.

    Public Interface ICustomerData   ReadOnly Property Name As String End Interface  Public Class ConsumerPerson   Implements ICustomerData    Public ReadOnly Property Name As String Implements ICustomerData.Name     Get       return _name      End Get   End Property End Class  Public Class ChangeData   Implements ICustomerData    Public ReadOnly Property Name As String Implements ICustomerData.Name     Get       return _name      End Get   End Property End Class 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to talk to a C# program that uses protobuf-net from an iphone
OK, I'm stumped. I am trying to create a .NET Winforms app to talk
I am not a .Net guy but trying to get update an existing .net
I have some strange behavior occurring in an ASP.NET application that I am trying
I'm trying to connect to an existing Windows Service that exposes several WCF endpoints.
i'm trying to get CFHTTP to talk to a domain that i have created
I have an Android app that talks to .net web service via http over
I'm trying to figure something out regarding how I can create communication between 2
http://jsfiddle.net/N8dYL/ The goal i'm trying to acchieve is that when you click play, the
http://jsfiddle.net/JamesKyle/re73T/ Trying to make a class switcher that will do the following: On Load

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.