You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Edell Nolan (JIRA)" <ji...@apache.org> on 2007/05/09 11:06:15 UTC

[jira] Created: (CXF-638) Need an api to use the wsdlValidator and SchemaValidator

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


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.


[jira] Assigned: (CXF-638) Need an api to use the wsdlValidator and SchemaValidator

Posted by "maomaode (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

maomaode reassigned CXF-638:
----------------------------

    Assignee: maomaode

> 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.


[jira] Commented: (CXF-638) Need an api to use the wsdlValidator and SchemaValidator

Posted by "maomaode (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (CXF-638) Need an api to use the wsdlValidator and SchemaValidator

Posted by "maomaode (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498458 ] 

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

So, sorry , you might have no wsdl definition, 

In that case, you should use:

                WSDL11Validator wsdlValidator = new WSDL11Validator(null, env);
                try {
                    wsdlValidator.isValid();
                catch (ToolException e) {
                    // failed, handle exception here
                }
and the env is ToolContext, you should put the wsdl url etc. in it

minimum, what you need is ToolConstants.CFG_WSDLURL
if it's logical wsdl you should also set ToolConstants.CFG_SUPPRESS_WARNINGS



> 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
>             Fix For: 2.0
>
>
> 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.


[jira] Updated: (CXF-638) Need an api to use the wsdlValidator and SchemaValidator

Posted by "Edell Nolan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edell Nolan updated CXF-638:
----------------------------


This means I would have to setup a wsdl builder in order to invoke the wsdlvalidator - is it not possible to get an api to directly call the validator.

thanks, Edell.

> 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
>             Fix For: 2.0
>
>
> 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.


[jira] Resolved: (CXF-638) Need an api to use the wsdlValidator and SchemaValidator

Posted by "maomaode (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

maomaode resolved CXF-638.
--------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

> 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
>             Fix For: 2.0
>
>
> 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.