Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

MZ notes - fault about import/types ?

Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the MZ notes:

This is not correct ? From the MH book:

Also, if you look at the WSDL schema, you see that any of the top level elements may be specified more then once (except 'types'). There seems also no constraints on the order in which they have to appear. You can for example first specify 'types' and then 'import'. From the WSDL schema point of view you should also be able to specify a 'binding' and then all the rest. This will not work, since the references made in the binding need the previous elements which are in this case defined later on. But it is valid according to the schema.

This is a valid WSDL fragment. The schema defined in types is never used (so its superflous) but it is nevertheless schema valid...

Am I missing something here ? ....
Jim Janssens
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, what the MZ notes say is taken from the BP, so it is indeed correct
To be BP conform, the order is fixed and the elements must appear in the stated order. Nevertheless it WSDL schema valid.

So, I have two question:

1. The MH is incorrect ? the 'should' should be a 'must' to be BP compliant ?

2. How can you validate the WSDL against the BP rules then ? When I create a WSDL document, how am I supposed to know that the 'types' must be declared after the import ?....
Paper jam tastes about as you would expect. Try some on this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic