Click here to Skip to main content
15,913,055 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: XML Schema(s): Help Needed Pin
JussiL3-Jun-04 20:57
JussiL3-Jun-04 20:57 
GeneralVB.net XmlNode to C# Pin
eggie527-May-04 13:34
eggie527-May-04 13:34 
GeneralRe: VB.net XmlNode to C# Pin
eggie527-May-04 15:18
eggie527-May-04 15:18 
GeneralLearning XML Schemas Pin
mlauzon2727-May-04 9:26
mlauzon2727-May-04 9:26 
GeneralRe: Learning XML Schemas Pin
Arjan Einbu27-May-04 13:37
Arjan Einbu27-May-04 13:37 
Generalxsl generating META tag Pin
IsaacB26-May-04 10:56
IsaacB26-May-04 10:56 
GeneralSAX parser - dont work Pin
VictorPr25-May-04 5:21
VictorPr25-May-04 5:21 
GeneralXSD importing problem Pin
Grimolfr24-May-04 4:50
Grimolfr24-May-04 4:50 
I have an XSD schema file that defines data structures for a legacy EDI system (still in use.) As we're moving more and more apps to .Net, and our customers are doing the same, we're adding WebService support for processing transactions currently handled by the EDI systems.

The edi definitions XSD file will be used by applications other than the new WebService, and will provide cross-compatibility for a variety of applications that communicate back and forth by passing this data around.

The XSD that defines valid service requests and responses for the WebService is dependent on the edi definitions in the edi.xsd file. To provide the customer an opportunity to pre-validate transaction requests prior to sending, I have a WebMethod that returns the WebService's XSD file. The problem lies in the fact that the WebService's XSD imports the edi.xsd.

Actually, this isn't much of a problem. It's a simple matter to provide a fully-qualified URL for the schemaLocation in the <xsd:import> element. The real problem lies in the fact that both schema definitions change with some regularity. And at any one time we may have up to four separate versions of each file (dev, test, staging/cust test, production).

My concern lies in this last problem. I'm concerned that if we hard-code the URL of the development edi.xsd schema into the development WebService schema, that someone may forget to change it as the WebService moves up the deployment ladder. It would be a VBT for us to have a production schema that is importing a development schema dependency. One experimental change to the development edi schema could cause the WebService to cease functioning.

I know there have to be other shops that are providing dynamic XSD's with imports to their clients/customers. What's a good tried-and-true method of ensuring that each level of WebService XSD imports the correct version of the edi.xsd?

Is there any way to combine the two schemas on-the-fly, so that the client only has one schema definition to look at, instead of having to find the imported schema?

Alternatively, would it be possible for me to return an XmlSchema object that properly refers to the correct dependency schema(s)? I've looked into the XmlResolver, which may work for this, but I've had no success figuring out how to attach one to an XmlSchema.

I've also considered returning an XmlSchemaCollection containing both schemas, but there's a bug in the framework that prevents an XmlSchemaCollection from being a return type on a WebMethod. Whenever I try to do this, I get an InvalidOperationException.

Any solutions or suggestions are appreciated.

Thanks


Grim
(aka Toby)
MCDBA, MCSD, MCP+SB

Questioncompiling expatpp ? Pin
caignaoli23-May-04 21:57
caignaoli23-May-04 21:57 
QuestionWhy am I getting "The expression...should result in a NodeSet"? Pin
Marc Clifton22-May-04 13:08
mvaMarc Clifton22-May-04 13:08 
AnswerRe: Why am I getting &quot;The expression...should result in a NodeSet&quot;? Pin
Mike Ellison22-May-04 13:47
Mike Ellison22-May-04 13:47 
GeneralRe: Why am I getting &quot;The expression...should result in a NodeSet&quot;? Pin
Marc Clifton22-May-04 14:48
mvaMarc Clifton22-May-04 14:48 
Generalamazon upload Need Help Pin
Sumit Kapoor19-May-04 19:52
Sumit Kapoor19-May-04 19:52 
QuestionXML the way? Pin
RichGuk18-May-04 11:16
RichGuk18-May-04 11:16 
AnswerRe: XML the way? Pin
Christian Graus18-May-04 11:45
protectorChristian Graus18-May-04 11:45 
AnswerRe: XML the way? Pin
eggie527-May-04 13:44
eggie527-May-04 13:44 
QuestionGet child nodes of certain element?? Pin
Jack78917-May-04 19:27
Jack78917-May-04 19:27 
AnswerRe: Get child nodes of certain element?? Pin
Wilbur J. Pereira17-May-04 19:52
Wilbur J. Pereira17-May-04 19:52 
GeneralRe: Get child nodes of certain element?? Pin
Jack78917-May-04 20:19
Jack78917-May-04 20:19 
GeneralRe: Get child nodes of certain element?? Pin
Philip Fitzsimons18-May-04 3:05
Philip Fitzsimons18-May-04 3:05 
GeneralRe: Get child nodes of certain element?? Pin
Wilbur J. Pereira18-May-04 19:40
Wilbur J. Pereira18-May-04 19:40 
GeneralRe: Get child nodes of certain element?? Pin
Jack78918-May-04 21:41
Jack78918-May-04 21:41 
GeneralRe: Get child nodes of certain element?? Pin
Ghazi Malik21-May-04 6:04
Ghazi Malik21-May-04 6:04 
QuestionHow to build a DataBase of data types (int, char, struct, &#8230;)? Pin
Michigan185417-May-04 4:25
Michigan185417-May-04 4:25 
GeneralDynamic Webservice Client Pin
BernardYardley17-May-04 2:29
BernardYardley17-May-04 2:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.