cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache CXF Documentation > WSDLValidator
Date Sun, 14 Nov 2010 01:23:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/1/_/styles/combined.css?spaceKey=CXF20DOC&amp;forWysiwyg=true"
type="text/css">
    </head>
<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="https://cwiki.apache.org/confluence/display/CXF20DOC/WSDLValidator">WSDLValidator</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~gliesian">Robert
Liguori</a>
    </h4>
        <br/>
                         <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;
<br></td></tr>
            <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
 <br></td></tr>
            <tr><td class="diff-unchanged" >{noformat} <br> <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
        </table>
</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>

<ul>
	<li>Check the WSDL document for <a href="http://en.wikipedia.org/wiki/XML#Well-formedness_and_error-handling"
class="external-link" rel="nofollow">XML well-formedness</a>.</li>
	<li>Validate the WSDL document against its <a href="http://en.wikipedia.org/wiki/XML#Schemas_and_validation"
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="http://www.w3.org/TR/wsdl" 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="http://www.ws-i.org/profiles/basicprofile-1.1.html"
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>
</ul>


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

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

 wsdlvalidator [-?|-h|-help] 

 wsdlvalidator -v 
</pre>
</div></div>

<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>
<tr>
<th class='confluenceTh'>Option</th>
<th class='confluenceTh'>Interpretation</th>
</tr>
<tr>
<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>
</tr>
<tr>
<td class='confluenceTd'> <tt>-V</tt>,<tt>-verbose</tt> </td>
<td class='confluenceTd'> Displays comments during the code generation process. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>-quiet</tt> </td>
<td class='confluenceTd'> Suppresses comments during the code generation process. </td>
</tr>
<tr>
<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>
</tr>
<tr>
<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>
</tr>
<tr>
<td class='confluenceTd'> <tt>-?</tt>,<tt>-h</tt>,<tt>-help</tt>
</td>
<td class='confluenceTd'> Displays the online help for this utility and exits. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>-v</tt> </td>
<td class='confluenceTd'> Displays the version number for the tool. </td>
</tr>
</tbody></table>
</div>

<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="http://cxf.apache.org/schemas" class="external-link"
rel="nofollow">http://cxf.apache.org/schemas</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/>
<tt>org.apache.cxf.tools.validator.WSDLValidator</tt>.</p>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/CXF20DOC/WSDLValidator">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=54224&revisedVersion=17&originalVersion=16">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/CXF20DOC/WSDLValidator?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message