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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:12:02+00:00 2026-05-25T19:12:02+00:00

I have a class say supplierAddress which comes from a webservice (it is a

  • 0

I have a class say supplierAddress which comes from a webservice (it is a datacontact). I then have a second class myAddress which inherits from that class and has a few more constructors and metods.

What I want to do is pass a myAddress back to the webservice. When I pass a cast down myAddress it throws seriazation errors, which makes sence as its a refrence object and the whole object is still being passed even if im casting down.

Is it possible to clone just the base class of an object? Is what im trying to do possible/correct ?

  • 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-25T19:12:02+00:00Added an answer on May 25, 2026 at 7:12 pm

    You should specify Known types for your base class.

    UPDATE: additional clarification.

    SOA (Service-Oriented Architecture) paradigm doesn’t support such common features like polymorphism or method overloading. This behaviour based on very simple fact: you don’t know which platform will consume your service. Its definitely possible to consume your service in platform or language that doesn’t support such thing like inheritance or method overloading.

    That’s why you should create your service functions with unique names and that’s why you should explicitly stated what types you’re going to pass instead of base class reference.

    When you specify known types this information would expose out of your service through metadata and every client could understand how to deal with your responses.

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

Sidebar

Related Questions

I have a class which inherits from CListCtrl class, say class list. I have
i have a class say A that has a protected method say methodA(), then
I have a custom class say 'MyCanvas' derived from wpf Canvas class. MyCanvas has
Let's say we have a class foo which has a private instance variable bar
I have created a class say A which has some functions defined as protected.
I have a class say: ClassA which has a collection of ClassB @OneToMany(cascade =
I have say class/ojbect one which I am returning as details. But then there
I have a class (say MyClass ) that uses (has as a private field)
Let's say I have class PersonSummary, which combines properties (columns) from 2 database tables
I have a class that has a function, lets say class.php: class fun {

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.