[
https://issues.apache.org/jira/browse/CXF-3125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13107664#comment-13107664
]
Freeman Fang commented on CXF-3125:
-----------------------------------
The "-validate" flag of wsdl2java and wsdl2js basically do same functionality
as wsdlvalidator CLI tool, and if the binding part of the wsdl is missing,
"validate" fail as this wsdl is incomplete and so invalid.
So add "-validate" flag to wsdl2xml, wsdl2soap and wsdl2corba isn't applicable,
as those three CLI tool just add xml binding/soap binding/corba binding to the
wsdl so the input wsdl typically have no binding part and hence they are
intended to be invalid at the first place.
But we can add "-validate" option to wsdl2service, though we are expected to
see a warning like
WARNING: WSDL document
file:/Users/ffang/apache-cxf-2.5.0-SNAPSHOT/bin/hello_world_mixed_style.wsdl
does not define any services
if the input wsdl have no service part, the other validator part still works.
> Add -validate option to the following utilities: wsdl2xml, wsdl2soap,
> wsdl2service and wsdl2corba.
> ---------------------------------------------------------------------------------------------------
>
> Key: CXF-3125
> URL: https://issues.apache.org/jira/browse/CXF-3125
> Project: CXF
> Issue Type: New Feature
> Components: Tooling
> Affects Versions: 2.3
> Reporter: Robert Liguori
> Assignee: Freeman Fang
> Priority: Minor
>
> The following utitlies have the "-validate" option which instructs the tool
> to validate the WSDL document before attempting to generate any code:
> -- wsdl2js
> -- wsdl2java
> This -validate option would be useful with other WSDL transformation
> utilities, such as the following:
> -- wsdl2xml
> -- wsdl2service
> -- wsdl2soap
> -- wsdl2corba
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira