MSXML2 for validating SOAP messages?  
Author Message

PostPosted: ASMX Web Services and XML Serialization, MSXML2 for validating SOAP messages? Top

I'm currently developing a message framework with XML handling in C++, using MSXML2 and DOM. However, I'm not sure how I can validate SOAP messages with MSXML2. My problem is:

To add a schema into the schema cache before validating xml instances, I use the method

pSchemaCache->add(nspace, filePath);

But I have no file path to the SOAP definitions, and for me it seems that the cache does not comprise this definition by default. When trying to validate my SOAP message with the method


it returns the error "Validate failed because the document does not contain exactly one root node". This is the case even with this message:

< xml version="1.0" encoding="utf-8" >
<soap:Envelope xmlns:soap=" ">
<context:ContextHeader xmlns:context="contextHeader.xsd">
<date>26/04/2006 18:41:00</date>

Can somebody help me

.NET Development4