cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache CXF Documentation > WSDLValidator
Date Sun, 14 Nov 2010 01:23:00 GMT
    <base href="">
            <link rel="stylesheet" href="/confluence/s/1810/9/1/_/styles/combined.css?spaceKey=CXF20DOC&amp;forWysiwyg=true"
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="">WSDLValidator</a></h2>
    <h4>Page <b>edited</b> by             <a href="">Robert
                         <h4>Changes (2)</h4>
<div id="page-diffs">
            <table class="diff" cellpadding="0" cellspacing="0">
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" > <br>{noformat} <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">
wsdlvalidator -s &lt;_schema-url_&gt;* -w [-?|-h|-help] -v [-V|-verbose] -quiet &lt;wsdl-url&gt;
            <tr><td class="diff-added-lines" style="background-color: #dfd;">
wsdlvalidator -s &lt;schema-url&gt;* -w [[-V|-verbose]|-quiet] &lt;wsdl-url&gt;
<br> <br> wsdlvalidator [-?|-h|-help]  <br> <br> wsdlvalidator -v
            <tr><td class="diff-unchanged" >{noformat} <br> <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
</div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h1><a name="WSDLValidator-%7B%7Bwsdlvalidator%7D%7D"></a><tt>wsdlvalidator</tt></h1>

<p>The <tt><b>wsdlvalidator</b></tt> validates whether a WSDL
document is well-formed and schema conformed as noted by the following checks.</p>

	<li>Check the WSDL document for <a href=""
class="external-link" rel="nofollow">XML well-formedness</a>.</li>
	<li>Validate the WSDL document against its <a href=""
class="external-link" rel="nofollow">XML schema</a>.</li>
	<li>Validate the WSDL document using some of the semantic rules defined in the <a
href="" class="external-link" rel="nofollow">WSDL specification</a>.</li>
	<li>Validate the WSDL document against custom validation rules, such as those defined
by the Web Services Interoperability (WS-I) organization (i.e. <a href=""
class="external-link" rel="nofollow">WS-I Basic Profile</a> rules).</li>
	<li>Validate the WSDL against strange exceptions, incorrectly generated code and general
bad WSDL issues.</li>

<h3><a name="WSDLValidator-Syntax"></a>Syntax</h3>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
<pre> wsdlvalidator -s &lt;schema-url&gt;* -w [[-V|-verbose]|-quiet] &lt;wsdl-url&gt;

 wsdlvalidator [-?|-h|-help] 

 wsdlvalidator -v 

<h3><a name="WSDLValidator-Options"></a>Options</h3>

<p>The options used to validate WSDL file are reviewed in the following table.</p>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<th class='confluenceTh'>Option</th>
<th class='confluenceTh'>Interpretation</th>
<td class='confluenceTd'><tt>-s &lt;<em>schema-url</em>&gt;</tt></td>
<td class='confluenceTd'>Specifies the URL of a user specific schema to be included
in the validation of the contract. This switch can appear multiple times.</td>
<td class='confluenceTd'> <tt>-V</tt>,<tt>-verbose</tt> </td>
<td class='confluenceTd'> Displays comments during the code generation process. </td>
<td class='confluenceTd'> <tt>-quiet</tt> </td>
<td class='confluenceTd'> Suppresses comments during the code generation process. </td>
<td class='confluenceTd'> <tt>-w</tt> </td>
<td class='confluenceTd'> Suppress warnings, if you want to validate logical wsdl(no
service/bindings), you have to turn on this option </td>
<td class='confluenceTd'> <tt><em>wsdl-url</em></tt> </td>
<td class='confluenceTd'> The path and name of the WSDL file to use in generating the
code. </td>
<td class='confluenceTd'> <tt>-?</tt>,<tt>-h</tt>,<tt>-help</tt>
<td class='confluenceTd'> Displays the online help for this utility and exits. </td>
<td class='confluenceTd'> <tt>-v</tt> </td>
<td class='confluenceTd'> Displays the version number for the tool. </td>

<p>You must specify the absolute or relative path to the WSDL document as the last argument.</p>

<h3><a name="WSDLValidator-Examples"></a>Examples</h3>

<p><tt>wsdlvalidator HelloWorld.wsdl</tt></p>

<p><tt>wsdlvalidator -s <a href="" class="external-link"
rel="nofollow"></a> -s <a href="http://mycompany/schemas"
class="external-link" rel="nofollow">http://mycompany/schemas</a> Greeting.wsdl</tt></p>

<h3><a name="WSDLValidator-Antusage"></a>Ant usage</h3>

<p>To execute the <tt>wsdlvalidator</tt> tool using Ant set the Java task's
classname property to<br/>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href=""
class="grey">Change Notification Preferences</a>
        <a href="">View
        <a href="">View
        <a href=";showCommentArea=true#addcomment">Add

View raw message