473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

SoapTypeAttribute causing problems with inherited classes

I am trying to use a web service written in Java but I get the
following error message (the names have been changed to protect the
innocent):

"Member 'ChildClassVO.lastUpdateDate' hides inherited member
'ParentClassVO.lastUpdateDate', but has different custom attributes."

The relevant snippets from the "reference.cs" file for web reference
are:

[System.Xml.Serialization.SoapTypeAttribute("PsapCo ntactVO",
"java:level3.enterprise.tai.valueobjects.psap" )]
public class ChildClassVO : ParentClassVO {

/// <remarks/>
public string lastUpdateDate;

/// <remarks/>
public long ChildAttribute;

}

[System.Xml.Serialization.SoapTypeAttribute("Parent ClassVO",
"java:level3.enterprise.tai.valueobjects")]
[System.Xml.Serialization.SoapIncludeAttribute(type of(ChildClassVO))]
public class ParentClassVO {

/// <remarks/>
public string lastUpdateDate;
}

The issue seems to be with the two values
"java:level3.enterprise.tai.valueobjects.psap" and
"java:level3.enterprise.tai.valueobjects" in the SoapTypeAttribute for
both classes not matching. The guys who wrote the web service and I
are on the same team so we were able to experiment a bit and found if
we moved the ParentClassVO to the same level as the ChildClassVO on
the java side I have no problem.

Has anybody run into a similar problem and besides moving the
ParentClassVO, what is the solution? I'd like to be able to generate
the web service proxy using VS.NET but not have to modify if each time
I have to regenerate it.
Jul 21 '05 #1
0 1114

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Kevin Schneider | last post by:
I am trying to use a web service written in Java but I get the following error message (the names have been changed to protect the innocent): "Member 'ChildClassVO.lastUpdateDate' hides...
4
by: Dan | last post by:
I have a need to make a set of classes that all share the same public methods, some implementation and some data. So, I made an abstract base (BaseClass) with an interface (IBaseClass) and a...
8
by: Spam Trap | last post by:
I am getting strange resizing problems when using an inherited form. Controls are moving themselves seemingly randomly, but reproducibly. "frmBase" is my base class (a windows form), and...
6
by: Peter Oliphant | last post by:
I just discovered that the ImageList class can't be inherited. Why? What could go wrong? I can invision a case where someone would like to add, say, an ID field to an ImageList, possible so that...
3
by: Wayne Brantley | last post by:
VS2005 RTM Create a web user control to use as a base class for other web user controls. Now, create a new web user control, change the class it inherits from to your base class and compile....
14
by: lovecreatesbea... | last post by:
Could you tell me how many class members the C++ language synthesizes for a class type? Which members in a class aren't derived from parent classes? I have read the book The C++ Programming...
12
by: Janaka Perera | last post by:
Hi All, We have done a object oriented design for a system which will create a class multiply inherited by around 1000 small and medium sized classes. I would be greatful if you can help me...
7
by: ademirzanetti | last post by:
Hi there !!! I would like to listen your opinions about inherit from a STL class like list. For example, do you think it is a good approach if I inherit from list to create something like...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.