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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:51:53+00:00 2026-05-11T17:51:53+00:00

I am writing a .NET webservice (VB.NET). One of the methods DisplayChild() returns an

  • 0

I am writing a .NET webservice (VB.NET). One of the methods DisplayChild() returns an object of type Child. Child is defined:

<Serializable()> _
Public Class Child
    Inherits BaseClass
    Property NotInInheritedProperties() as Object
    ...
    End Property
End Class

and the BaseClass looks something like:

<Serializable()> _
Public MustInherit Class BaseClass

    Property BaseProperty() as Object
    ...
    End Property
End Class

However, in the SOAP definition that shows the return from the DisplayChild() the only property shown in the output is the NotInInheritedProperties property. My question then, is how do I get the properties in the BaseClass to show up in the SOAP document? Originally I didn’t have the Serializable attribute on the BaseClass thinking that was the problem. However, even after changing that it still didn’t work.

  • 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-11T17:51:53+00:00Added an answer on May 11, 2026 at 5:51 pm

    Even if BaseProperty isn’t on displayed on the SOAP Definition when you view the service via your web browser, it looks like it’s still part of the WSDL. If you review the WSDL (YourService.asmx?WSDL, or that link that says “Service Description” on YourService.asmx), you should see the inheritance between BaseClass and Child, something like:

    <s:complexType name="Child">
      <s:complexContent mixed="false">
        <s:extension base="tns:BaseClass">
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="NotInInheritedProperties" />
          </s:sequence>
        </s:extension>
      </s:complexContent>
    </s:complexType>
    <s:complexType name="BaseClass" abstract="true">
      <s:sequence>
        <s:element minOccurs="0" maxOccurs="1" name="BaseProperty" />
      </s:sequence>
    </s:complexType>
    

    If you have a consumer of your web service that can’t see that property, then it may be an issue with their specific implementation (I’ve worked with some “web service enabled” enterprise apps that absolutely choked on web services that return complex types)

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

Sidebar

Related Questions

In a scientific application I'm writing (vb.net) I use a huge collection of object
I am writing a webservice using .Net 3.5. My webservice consumes an external WCF,
I'm writing a ASP.NET webservice (.ASMX), and to test this webservice, I'm using a
I am writing a simple web service using .NET, one method is used to
I am writing a vb.net application which calls a webservice method. The webservice method
I am writing a small app to teach myself ASP.NET MVC, and one of
I'm writing a .net webservice that will be cosumed by a java program. I
I am writing a social networking android application. I have create a .Net webservice
I have an ASP.NET MVC 4 application targeting .NET 4.5. One of our child
I've been tasked with writing a SOAP web-service in .Net to be middleware between

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.