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