Hi Peter, The validation framework is indeed at an early stage and we're working out some details while implementing assertions. I think your statement about assertions that require checks of multiple elements int he WSDL document is correct. Your example with binding and interface is my current thinking about these types of assertions.
I captured some of our initial ideas about the validation API that we're working off of at [1]. Information about Woden extensions other than the validation extension can be found at [2]. Does this information answer your questions? [1] http://wiki.apache.org/ws/FrontPage/Woden/ValidationAPI [2] http://wiki.apache.org/ws/FrontPage/Woden/WSDLExtensions Lawrence "Peter Danielsen" <[EMAIL PROTECTED]> 03/19/2008 07:24 PM Please respond to [email protected] To [email protected] cc Subject Assertions Hi, I'm curious about the stability of the Assertion design in Woden. I've been looking at it from the point of view of an extension and I think this is the procedure: 1. Create a class that implements org.apache.woden.wsdl20.validation.Assertion for each class that is affected by an assertion. a. Implement "getId()" b. Implement "validate(Object, WodenContext)" 2. Register each Assertion class by calling ExtensionRegistry.registerAssertion passing an instance of the Assertion class and the affected class. This would likely be done from an ExtensionRegistrar. That seems reasonable, but the reason I asked about the stability is that when I look at the validate method of org.apache.woden.internal.wsdl20.validation.WSDLValidator I see that it's not checking assertions on Binding or Service elements. Their absence made me wonder whether this is still in an early design stage? Also, I'm assuming that cross-checks between elements (e.g. <interface> and <binding> ) will be the responsibility of the "more detailed" element (<binding> in this case) and that that element's Assertion may require navigation of the containing elements to do its work. Is that correct? Any references or explanations on the conventions and use of Assertions would be very useful. Thanks, Peter --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
