473,394 Members | 1,965 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,394 software developers and data experts.

Complex Type Collision with XSD.exe

I am having difficulty coming up with an elegant solution to a problem
that I am having. I have a web service that processes different types
of requests and return the appropriate response. Each request and
response type has its own schema, and requests and responses are in
different namespaces.

The problem is that there are several common global complex types among
the requests and responses. For example each response has an
ErrorDetails collection for reporting non-fatal errors, and each
request has a named value pair type called ValuePair. When I generate
the classes for these schemas with XSD and import them, there is a
conflict because there are multiple classes with the same name.

What is the best way to handle this so that I am able to properly
deserialize and serialize the XML documents? I don't want to change
the name of the types in each request, I like having consistency across
schemas. I also don't want to create a new namespace for each
request/response type.

Thanks,

Brian Gabriel
br***********@gmail.com

Jan 30 '06 #1
2 1405
You should put your common complex types in another XSD (eg:
CommonResponse.xsd) and include this schema in your other schemas.

Thanks,
Priya

<br***********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
I am having difficulty coming up with an elegant solution to a problem
that I am having. I have a web service that processes different types
of requests and return the appropriate response. Each request and
response type has its own schema, and requests and responses are in
different namespaces.

The problem is that there are several common global complex types among
the requests and responses. For example each response has an
ErrorDetails collection for reporting non-fatal errors, and each
request has a named value pair type called ValuePair. When I generate
the classes for these schemas with XSD and import them, there is a
conflict because there are multiple classes with the same name.

What is the best way to handle this so that I am able to properly
deserialize and serialize the XML documents? I don't want to change
the name of the types in each request, I like having consistency across
schemas. I also don't want to create a new namespace for each
request/response type.

Thanks,

Brian Gabriel
br***********@gmail.com

Jan 30 '06 #2
The problem is when I compile those schemas with XSD.exe. I tried
moving the common types to a seperate schema and including it, however
when the classes are generated the common types are included in all
requests.

Thanks,

Brian

Jan 31 '06 #3

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

Similar topics

4
by: Dave | last post by:
Hi folks, I am trying to develop a routine that will handle sphere-sphere and sphere-triangle collisions and interactions. My aim is to develop a quake style collision engine where a player can...
4
by: Brian Basquille | last post by:
Hello all, Well, we've gotten to it: the real meaty area of my Air Hockey game.. Any help or suggestions for the following would be much appreciated. In plain terms: My paddle needs to be...
0
by: licombo | last post by:
I am making a flash game which is similar to the classic game Asteroids. I am stuck in the final step of the game where I have to make the collision detection working before the whole game is...
1
by: May Amor | last post by:
Helu gurus!!! I have a code below about hashing method with collision resolution...My problem is how to use the collsion resolution again if the hash index though has already a value. Please kinda...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
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
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...

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.