Subject:WSDL validator? Author:Florent Georges Date:27 Feb 2008 04:27 PM
Hi
The page on the Stylus Studio website about the WSDL editor says: "Stylus Studio's WSDL editor supports working with WSDL files, making editing WSDL files and validating them a breeze!"
But I can't find how to validate a WSDL file. Any idea?
Subject:WSDL validator? Author:Florent Georges Date:27 Feb 2008 08:02 PM
Thanks Ivan for the quick response. But this is a simple schema validation, right? I am rather looking for a validator dedicated to WSDL.
See for instance the enclosed screenshot: the 'element' attribute must reference a global element declared in a schema referenced by the WSDL definition, but it does not. This is an example of a rule that is toward a simple schema validation and that I would like to enforce, among other.
Subject:WSDL validator? Author:Florent Georges Date:27 Feb 2008 08:58 PM
Actually, the WS-I test tools for checking conformance to the basic profile do the job. But they are annoying to use both from the command line and from soapUI. Having them integrated directly into the Stylus WSDL editor would be really great...
Subject:WSDL validator? Author:(Deleted User) Date:28 Feb 2008 09:13 AM
Hi,
you can define a new "Custom Validator" in the Tools | Options dialog, and insert the command line tool for the WS-I validator (be sure to check the 'supports XMLSchema validation' check box). This way you will be able to invoke this validator from the drop-down list under the "Validate" button.
Subject:WSDL validator? Author:Florent Georges Date:28 Feb 2008 10:03 AM
Thanks Alberto.
Unfortunately calling the WS-I validator requires to create a config file with among other things the name of the port type or the binding to check within the WSDL file. And the result should require some work to be useful (for instance to allow highlighting errors in the editor, or allow clicking the error message.)
But that should be possible with a quite simple wrapper application.
I haven't found any documentation on the interface to define a custom validator (the variables that are available in the 'Arguments' field in the above dialog box, how to report result back to Stylus, if there is any document type to report meaningful info...) Is there something available on that matter?
Subject:WSDL validator? Author:(Deleted User) Date:29 Feb 2008 02:44 AM
Hi,
the list of arguments that can be used in the command line is:
${FilePath} = the path of the file being validated
${FileDir} = the folder of the file being validated
${FileName} = the name of the file being validated
${FileExt} = the extension of the file being validated
${StylusDir}= the folder where Stylus Studio is located
${SchemaURLFile} = the full path of a file containing the paths of the XMLSchema documents to be used during validation (even if the XML file doesn't specify them)
Stylus expects errors or warnings to be reported in the format <file>:<line>:<space><message>