another Validation question 2003-01-20 - By Jeff Greif
Since you are validating the document against the wsdl schema, it must conform to the WSDL schema. The root element, <definitions> must have element content of <documentation>?,<import>* <types>? ,<message>*,<portType>*,<binding>*, <service>* (and, in WSDL 1.2, <serviceType>*). No other element content is permitted. At least one content element other than documentation must be present. The various elements allowed as content may contain extension elements (outside the wsdl namespace) in certain parts of their content.
<import> is used to access either datatypes or wsdl elements (those listed above) held in other files. In wsdl 1.2, no imported item may be in the targetNamespace of the wsdl definitions while wsdl 1.1 is looser. When <import> specifies a namespace, this means it is legal to refer to components from that namespace in the importing document. The schema processor must also be able to find the declarations of those references, and uses the schema locations for this purpose (or a location attribute specified in <import>).
Jeff
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word" xmlns:st1 = "urn:schemas-microsoft-com:office:smarttags"><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content=Word.Document name=ProgId> <META content="MSHTML 6.00.2800.1126" name=GENERATOR> <META content="Microsoft Word 10" name=Originator><LINK href="cid:filelist.xml@(protected)" rel=File-List><o:SmartTagType name="time" namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!-- [if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:SpellingState>Clean</w:SpellingState> <w:GrammarState>Clean</w:GrammarState> <w:DocumentKind>DocumentEmail</w:DocumentKind> <w:EnvelopeVis/> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if !mso]> <STYLE>st1\:* { BEHAVIOR: url(#default#ieooui) } </STYLE> <![endif]--> <STYLE> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} p.MsoPlainText, li.MsoPlainText, div.MsoPlainText {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Courier New"; mso-fareast-font-family:"Times New Roman";} span.EmailStyle17 {mso-style-type:personal-compose; mso-style-noshow:yes; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; font-family:Arial; mso-ascii-font-family:Arial; mso-hansi-font-family:Arial; mso-bidi-font-family:Arial; color:windowtext;} span.SpellE {mso-style-name:""; mso-spl-e:yes;} span.GramE {mso-style-name:""; mso-gram-e:yes;} @(protected) Section1 {size:8.5in 11.0in; margin:1.0in 77.95pt 1.0in 77.95pt; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </STYLE> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]--></HEAD> <BODY lang=EN-US style="tab-interval: .5in" vLink=purple link=blue bgColor=#ffffff> <DIV><FONT face=Verdana size=2>Since you are validating the document against the wsdl schema, it must conform to the WSDL schema. The root element, <definitions> must have element content of</FONT></DIV> <DIV><FONT face=Verdana size=2><documentation>?,<import>* <types>? ,<message>*,<portType>*,<binding>*, <service>* (and, in WSDL 1.2, <serviceType>*). No other element content is permitted. At least one content element other than documentation must be present. The various elements allowed as content may contain extension elements (outside the wsdl namespace) in certain parts of their content.</FONT></DIV> <DIV><FONT face=Verdana size=2></FONT> </DIV> <DIV><FONT face=Verdana size=2><import> is used to access either datatypes or wsdl elements (those listed above) held in other files. In wsdl 1.2, no imported item may be in the targetNamespace of the wsdl definitions while wsdl 1.1 is looser. When <import> specifies a namespace, this means it is legal to refer to components from that namespace in the importing document. The schema processor must also be able to find the declarations of those references, and uses the schema locations for this purpose (or a location attribute specified in <import>).</FONT></DIV> <DIV><FONT face=Verdana size=2></FONT> </DIV> <DIV><FONT face=Verdana size=2>Jeff</FONT></DIV> <DIV><FONT face=Verdana size=2></FONT> </DIV> <DIV> </DIV></BODY></HTML>
|
|