• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MZ notes - fault about import/types ?

 
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?....
 
reply
    Bookmark Topic Watch Topic
  • New Topic