Re: XmlSchemaCollection and schema imports question



Actually, I am loading the wsdl by using ServiceDescription class.
I haven't used XmlUrlResolver.
Would you have any sample code for this? (even if pseudo)

Thanks
Jiho

"Jiho Han" <jihohan@xxxxxxxxx> wrote in message
news:a19ab9b6217138c88ab23f375434@xxxxxxxxxxxxxxxxxxxxxxx

I am trying to validate a document against a set of schema [they are
part
of a wsdl] and in order to do that, I am using
XmlValidatingReader.Schemas.Add to add the schemas.
However, since there are dependencies, the framework is crapping out
(technical term) saying that the referenced type is not available.
Well,
the type is defined in the other schema which it imports. How do I
get
these schemas in there first and then have it validate so the
reference is
not checked until all the schemas are loaded?
BTW, this is on .NET 1.1.

Do you have access to the WSDL and to the schemas it references?

If so, you can load the WSDL into a ServiceDescription object. This
will give you access to the schema locations by following the
wsdl:import and wsdl:types/xs:schema elements. You can then load them
into XslSchema objects using an XmlUrlResolver configured to permit
access to the domain of the schemas.

John



.



Relevant Pages

  • Re: Fighting WSDL.exe
    ... through to using Altova XMLSpy to create what it says is a valid WSDL ... If a document-literal binding in a DESCRIPTION does not specify ... Operation 'StolenVehicleAdd' on binding 'StolenBinding' from namespace ... using nested schemas .There are many nested schema .Changing all schemas ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Fighting WSDL.exe
    ... through to using Altova XMLSpy to create what it says is a valid WSDL ... If a document-literal binding in a DESCRIPTION does not specify ... using nested schemas .There are many nested schema .Changing all schemas ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • wsdl design for importing multiple schemas
    ... I am designing wsdl that uses multiple schemas. ... schema imports in to one common schema and then import a single common ...
    (microsoft.public.dotnet.xml)
  • wsdl design for importing multiple schemas
    ... I am designing wsdl that uses multiple schemas. ... schema imports in to one common schema and then import a single common ...
    (microsoft.public.dotnet.framework.webservices)

Loading