473,401 Members | 2,139 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,401 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.
Nov 16 '05 #1
0 936

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...
3
by: Alexander Muylaert | last post by:
Hi Is their a way to keep constructors visible in inherited classes? public class X{ public x(int A){} } public class Y : X{};
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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.