cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache CXF > cxf-xjc-wsdlextension
Date Fri, 22 Oct 2010 18:10:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/15/_/styles/combined.css?spaceKey=CXF&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/CXF/cxf-xjc-wsdlextension">cxf-xjc-wsdlextension</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://cwiki.apache.org/confluence/display/~dkulp">Daniel
Kulp</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <h2><a name="cxf-xjc-wsdlextension-CXFXJCWSDLExtensionPlugin"></a>CXF
XJC WSDL Extension Plugin</h2>

<p>The CXF XJC WSDL Extension Plugin is used by CXF to generate beans that can be used
directly with WSDL4J as extensors in the WSDL.     For each top level type, it adds "implements
ExtensibilityElement" to the interfaces it implements and then adds:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
    @XmlTransient
    <span class="code-keyword">protected</span> QName elementType;
    @XmlAttribute(namespace = <span class="code-quote">"http:<span class="code-comment">//schemas.xmlsoap.org/wsdl/"</span>)
</span>    <span class="code-keyword">protected</span> <span class="code-object">Boolean</span>
required;
</pre>
</div></div>
<p>and appropriate getter/setters required by the ExtensibilityElement interface.  CXF
had several customer WSDL extensors for controlling various things such as  the CORBA transports/binding,
JMS configuration, https configuration, etc...    This extension is used to convert them into
wsdl extensors.    CXF uses the class org.apache.cxf.wsdl.JAXBExtensionHelper to add these
generated classes to the the extension registries so the are able to be seemlessly parsed
and written.</p>



<h3><a name="cxf-xjc-wsdlextension-TousewithMaven"></a>To use with Maven</h3>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml">
           <span class="code-tag">&lt;plugin&gt;</span>
                <span class="code-tag">&lt;groupId&gt;</span>org.apache.cxf<span
class="code-tag">&lt;/groupId&gt;</span>
                <span class="code-tag">&lt;artifactId&gt;</span>cxf-xjc-plugin<span
class="code-tag">&lt;/artifactId&gt;</span>
                <span class="code-tag">&lt;executions&gt;</span>
                    <span class="code-tag">&lt;execution&gt;</span>
                        <span class="code-tag">&lt;goals&gt;</span>
                            <span class="code-tag">&lt;goal&gt;</span>xsdtojava<span
class="code-tag">&lt;/goal&gt;</span>
                        <span class="code-tag">&lt;/goals&gt;</span>
                    <span class="code-tag">&lt;/execution&gt;</span>
                <span class="code-tag">&lt;/executions&gt;</span>
                <span class="code-tag">&lt;configuration&gt;</span>
                    <span class="code-tag">&lt;xsdOptions&gt;</span>
                        <span class="code-tag">&lt;xsdOption&gt;</span>
                            <span class="code-tag">&lt;extension&gt;</span>true<span
class="code-tag">&lt;/extension&gt;</span>
                            <span class="code-tag">&lt;xsd&gt;</span>${basedir}/src/main/resources/schemas/configuration/foo.xsd<span
class="code-tag">&lt;/xsd&gt;</span>
                            <span class="code-tag">&lt;extensionArgs&gt;</span>
                                <span class="code-tag">&lt;arg&gt;</span>-Xwsdlextension<span
class="code-tag">&lt;/arg&gt;</span>
                            <span class="code-tag">&lt;/extensionArgs&gt;</span>
                        <span class="code-tag">&lt;/xsdOption&gt;</span>
                    <span class="code-tag">&lt;/xsdOptions&gt;</span>
                    <span class="code-tag">&lt;extensions&gt;</span>
                        <span class="code-tag">&lt;extension&gt;</span>org.apache.cxf.xjcplugins:cxf-xjc-wsdlextension:2.3.0<span
class="code-tag">&lt;/extension&gt;</span>
                    <span class="code-tag">&lt;/extensions&gt;</span>
                <span class="code-tag">&lt;/configuration&gt;</span>
            <span class="code-tag">&lt;/plugin&gt;</span>

</pre>
</div></div>
    </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/CXF/cxf-xjc-wsdlextension">View
Online</a>
              |
       <a href="https://cwiki.apache.org/confluence/display/CXF/cxf-xjc-wsdlextension?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message