alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Apache CXF example source code file (wsdlto.xml)

This example Apache CXF source code file (wsdlto.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Apache CXF tags/keywords

apache, enable, exception, generates, license, license, optionally, see, specifies, specifies, the, the, wsdl, wsdl

The Apache CXF wsdlto.xml source code

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<toolspec xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xhtml="http://www.w3.org/TR/xhtml1/strict"
      xsi:schemaLocation="http://cxf.apache.org/Xutil/ToolSpecification http://cxf.apache.org/schema/xutil/tool-specification.xsd"
      xmlns="http://cxf.apache.org/Xutil/ToolSpecification"
      xmlns:ts="http://cxf.apache.org/Xutil/ToolSpecification">

    <annotation>
        Examples :

        wsdl2java HelloWorld.wsdl
        wsdl2java -p com.iona.greeting Greeting.wsdl
        wsdl2java -client HelloWorld.wsdl
    </annotation>

    <usage>
        <optionGroup id="options">
            <option id="frontend" maxOccurs="1">
                <annotation>Specifies the front end. (default use jaxws)
                <switch>fe
                <switch>frontend
                <associatedArgument placement="afterSpace">
                    <annotation>front-end-name
                </associatedArgument>
            </option>

            <option id="databinding" maxOccurs="1">
                <annotation>Specify the databinding name.  (default use jaxb)
                <switch>db
                <switch>databinding
                <associatedArgument placement="afterSpace">
                    <annotation>data-binding-name
                </associatedArgument>
            </option>

            <option id="packagename" maxOccurs="unbounded">
                <annotation>
                    Specifies the java package name to use for the generated code.
                    Optionally  specify a WSDL namespace to Java package name
                    mapping.
                </annotation>
                <switch>p
                <associatedArgument placement="afterSpace">
                    <valuetype>NamingSpacePackageString
                    <annotation>[wsdl-namespace =]package-name
                </associatedArgument>
            </option>

            <!--
            <option id="binding" maxOccurs="unbounded">
            <annotation>
                Specify external jaxws or jaxb binding files, (Each 
                file must have its own -b)
            </annotation>
            <switch>b
            <associatedArgument placement="afterSpace">
                <annotation>binding-name
            </associatedArgument>
            </option>
            -->

            <option id="outputdir" maxOccurs="1">
                <annotation>Specify the directory into which the code is placed.
                <switch>d
                <associatedArgument placement="afterSpace">
                    <annotation>output-directory
                </associatedArgument>
            </option>

            <option id="compile" maxOccurs="1">
                <annotation>Specifies that the generated code is compiled by the tool.
                <switch>compile
            </option>

            <option id="classdir" maxOccurs="1">
                <annotation>Specifies the directory into which compiled class files are placed.
                <switch>classdir
                <associatedArgument placement="afterSpace">
                    <annotation>compile-classes-directory
                </associatedArgument>
            </option>

            <!--
            <option id="impl" maxOccurs="1">
            <annotation>
            Generate the dummy service implementation.</annotation>
            <switch>impl
            </option>
    
            <option id="server" maxOccurs="1">
            <annotation>
            Generates the server code</annotation>
            <switch>server
            </option>
    
            <option id="client" maxOccurs="1">
            <annotation>
            Generates the client code.</annotation>
            <switch>client
            </option>
    
            <option id="all" maxOccurs="1">
            <annotation>
                Generates interfaces,types,service,server,impl,client
                and ant script.
            </annotation>
            <switch>all
            </option>
            
            <option id="ant" maxOccurs="1">
            <annotation>
                ant script generation.
            </annotation>
            <switch>ant
            </option>
            -->

            <option id="nexclude" maxOccurs="unbounded">
                <annotation>
                    Specifies a WSDL namespace to exclude when generating code. This
                    option can be specified multiple times. Optionally
                    specify the Java package name to use for the WSDL namespace.
                </annotation>
                <switch>nexclude
                <associatedArgument placement="afterSpace">
                    <annotation>schema-namespace [= java-package-name]
                </associatedArgument>
            </option>

            <option id="exsoapheader" maxOccurs="1">
                <annotation>Enables the processing of extended SOAP header message binding.
                </annotation>
                <switch>exsh
                <associatedArgument placement="afterSpace">
                    <annotation>(true, false)
                    <valueenum>true|false
                </associatedArgument>
            </option>

            <option id="defaultns" maxOccurs="1">
                <annotation>Enables loading the default namespace package name mapping. The default is true.
                </annotation>
                <switch>dns
                <associatedArgument placement="afterSpace">
                    <annotation>(true, false)
                    <valueenum>true|false
                </associatedArgument>
            </option>

            <option id="defaultex" maxOccurs="1">
                <annotation> Enable loading the default excludes namespace mapping. The default is true.
                <switch>dex
                <associatedArgument placement="afterSpace">
                    <annotation>(true, false)
                    <valueenum>true|false
                </associatedArgument>
            </option>

            <option id="validate" maxOccurs="1">
                <annotation>
                    Specifies that the WSDL is validated before generating the code. Using 
                    this option is highly recommended.
                </annotation>
                <switch>validate
            </option>

            <option id="wsdlLocation" maxOccurs="1">
                <annotation>
                    Specifies the value of the @WebServiceClient annotation's wsdlLocation property.
                </annotation>
                <associatedArgument placement="afterSpace">
                    <annotation>wsdlLocation
                </associatedArgument>
            </option>

            <option id="useFQCNForFaultSerialVersionUID" maxOccurs="1">
                <annotation>
                    Enable generation of Serial Version UID in fault Exception(s) based on hashcode
                    of the fully qualified class name of the Exception.
                </annotation>
                <switch>useFQCNForFaultSerialVersionUID
            </option>

        </optionGroup>
        <optionGroup id="common_options">
            <option id="help" maxOccurs="1">
                <annotation>Display detailed information for options.
                <switch>h
                <switch>?
                <switch>help
            </option>

            <option id="version">
                <annotation>Display the version of the tool.
                <switch>v
            </option>

            <option id="verbose">
                <annotation>Verbose mode
                <switch>verbose
                <switch>V
            </option>

            <option id="quiet">
                <annotation>Quiet mode
                <switch>quiet
                <switch>q
            </option>

        </optionGroup>
        <argument id="wsdlurl" minOccurs="1" maxOccurs="1">
            <annotation>wsdl-url
        </argument>
    </usage>
</toolspec>

Other Apache CXF examples (source code examples)

Here is a short list of links related to this Apache CXF wsdlto.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.