Some times in SOA you need to find out whether the schema you have designed/developed is valid and conforms to XML schema standards etc.
For this you can use the JDK 1.6 tool xjc.exe to check ,
%JDK_HOME%\bin\xjc.exe <your-schema-file> and check whether you are getting errors or not.   
When I ran the xjc command with the original schmea , I got the errors    
parsing a schema...    
[ERROR] sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'party,IdentificationType'.    
  line 45 of file:/D:/bugs-download/Bug12965191/restriction_example/restriction/schema-restriction/xsd/party/party.xsd    
[ERROR] rcase-Recurse.2: There is not a complete functional mapping between the particles.    
  line 7 of file:/D:/bugs-download/Bug12965191/restriction_example/restriction/schema-restriction/xsd/local-party.xsd    
[ERROR] derivation-ok-restriction.5.4.2: Error for type 'LocalPartyType7'.  The particle of the type is not a valid restriction of the particle of the base.    
  line 7 of file:/D:/bugs-download/Bug12965191/restriction_example/restriction/schema-restriction/xsd/local-party.xsd    
Failed to parse a schema.
The above error indicates that schema is not a valid schema.
 
 
No comments:
Post a Comment