[ 
https://issues.apache.org/jira/browse/CXF-638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494935
 ] 

maomaode commented on CXF-638:
------------------------------

Hi Edell,

We do have the API,  i assume you have cxf source code,

If you take a look at the JAXWSDefinitionBuilder, we have a method

    public boolean validate(Definition def) throws ToolException {
        return new WSDL11Validator(def, context).isValid();
    }

you can use this method to validate the wsdl/schema, so your code should like 
this

if (validationTurnedOn) {
   try {
         builder.validate(wsdlDefition);
    } catch (ToolException e) {
        // handle validation failure here
    }
}

> Need an api to use the wsdlValidator and SchemaValidator
> --------------------------------------------------------
>
>                 Key: CXF-638
>                 URL: https://issues.apache.org/jira/browse/CXF-638
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>            Reporter: Edell Nolan
>         Assigned To: maomaode
>
> Hi,
> Yoko tools would like to be able to use the wsdl and schema validator in cxf 
> instead of having to write one.
> There are currently no API's for these so it would be great if we can get 
> these implemented.
> thanks, Edell.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to