I am trying to work with some XML (a SOAP -> WSDL service request) in which I have an XML schema with the namespace like:
NWMLS:EverNet:ImageQuery:1.0
<xs:schema id="ImageQuery_1.0"
targetNamespace="NWMLS:EverNet:ImageQuery:1.0"
xmlns="NWMLS:EverNet:ImageQuery:1.0"
xmlns:mstns="NWMLS:EverNet:ImageQuery:1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified" elementFormDefault="qualified"> ...remainder of xsd...
I keep getting this error from the web service I am requesting:
Could not find schema information for the element 'NWMLS:EverNet:ImageQuery:1.0:ImageQuery'.
Can someone please help me understand formatting namespaces like this, and perhaps point me to some reading? I have been looking for several hours. Thanks!
A construct like xmlns:mstns=”NWMLS:EverNet:ImageQuery:1.0″ is mapping from a prefix (mstns) to a namespace URI (purported to be NWMLS:EverNet:ImageQuery:1.0).
RFC2396 defines the syntax or a URI. What you have here is a perfectly valid non-hierarchical URI with a scheme of NWMLS.
Your error message indicates that you just don’t have a W3C XML Schema with targetNamespace of the URI. The URI is just a string that uniquely identifies the schema.
It has nothing to do with the syntax or format. In fact, it has a very simple syntax: NWMLS is the scheme, and everything else is just an opaque lump.