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

Apache CXF example source code file (java2ws.xml)

This example Apache CXF source code file (java2ws.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, asf, asf, display, license, license, of, see, sei, specify, specify, the, the, verbose

The Apache CXF java2ws.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.
-->

<!-- The xhtml namespace is for usage documentation -->
<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 :
   java2ws -wsdl org.apache.hello_world_soap_http.Greeter 
   java2ws -cp ./tmp org.apache.hello_world_soap_http.Greeter -wsdl 
   java2ws -o hello.wsdl -wsdl org.apache.hello_world_soap_http.Greeter 
   java2ws -client -server org.apache.hello_world_soap_http.Greeter
   java2ws -wrapperbean org.apache.hello_world_soap_http.Greeter
	</annotation>
	<usage>
		<optionGroup id="options">
		
			<option id="databinding" maxOccurs="1">
				<annotation>
				    Specify the data binding (aegis, jaxb, xmlbeans, etc...). Default is jaxb for jaxws 
				    frontend, and aegis for simple frontend.
				</annotation>
				<switch>databinding
				<associatedArgument placement="afterSpace">
				  <annotation>databinding name
				</associatedArgument>
			</option>
			<option id="frontend" maxOccurs="1">
				<annotation>
					Specify the frontend to use.  jaxws and the simple frontend are supported.
				</annotation>
				<switch>frontend
				<associatedArgument placement="afterSpace">
					<annotation>jaxws or simple
				</associatedArgument>
			</option>
			
			<option id="wsdl" maxOccurs="1">
				<annotation>
					Specify to generate the WSDL file
				</annotation>
				<switch>wsdl
			</option>
			
			<option id="wrapperbean" maxOccurs="1">
				<annotation>
					Specify to generate the wrapper and fault bean
				</annotation>
				<switch>wrapperbean
			</option>
			
			<option id="client" maxOccurs="1">
				<annotation>
					Specify to generate client side code
				</annotation>
				<switch>client
			</option>
				
			<option id="server" maxOccurs="1">
				<annotation>
					Specify to generate server side code
				</annotation>
				<switch>server
			</option>
			
			<option id="ant" maxOccurs="1">
				<annotation>
					Specify to generate an Ant build.xml file
				</annotation>
				<switch>ant
			</option>
								
			<option id="outputfile" maxOccurs="1">
				<annotation>
					Specify the output wsdl file name
				</annotation>
				<switch>o
				<associatedArgument placement="afterSpace">
					<annotation>output-file
				</associatedArgument>
			</option>

			<option id="outputdir" maxOccurs="1">
				<annotation>
					The directory in which the output wsdl and other 
					resource files are placed
				</annotation>
				<switch>d
				<associatedArgument placement="afterSpace">
					<annotation>resource-directory
				</associatedArgument>
			</option>

			<option id="sourcedir" maxOccurs="1">
				<annotation>
					The directory in which the generated java source files
					are placed
				</annotation>
				<switch>s
				<associatedArgument placement="afterSpace">
					<annotation>source-directory
				</associatedArgument>
			</option>
			<option id="classdir" maxOccurs="1">
				<annotation>
					The directory in which the generated wrapper sources are
					compiled into. If not specified, the files are not
					compiled.
				</annotation>
				<switch>classdir
				<associatedArgument placement="afterSpace">
					<annotation>compile-classes-directory
				</associatedArgument>
			</option>

			<option id="classpath" maxOccurs="1">
				<annotation>
					Specify the SEI and types class search path of
					directories and zip/jar files
				</annotation>
				<switch>cp
				<associatedArgument placement="afterSpace">
					<annotation>class-path
				</associatedArgument>
			</option>

			<option id="soap12" maxOccurs="1">
				<annotation>
					Specify to generate SOAP 1.2 binding
				</annotation>
				<switch>soap12
			</option>

			<option id="tns" maxOccurs="1">
				<annotation>
					Specify the target namespace to use in the wsdl
				</annotation>
				<switch>t
				<associatedArgument placement="afterSpace">
					<annotation>target-namespace
				</associatedArgument>
			</option>
			
			<option id="beans" maxOccurs="unbounded">
				<annotation>Specify the pathname of a file defining additional Spring beans to customize databinding
				configuration.</annotation>
				<switch>beans
				<associatedArgument placement="afterSpace">
					<annotation>pathname of the bean definition file.
				</associatedArgument>
			</option>

			<option id="servicename" maxOccurs="1">
				<annotation>
					Specify the service name to use in the generated
					wsdl
				</annotation>
				<switch>servicename
				<associatedArgument placement="afterSpace">
					<annotation>service-name
				</associatedArgument>
			</option>

			<option id="port" maxOccurs="1">
				<annotation>
					Specify the port name to use in the generated wsdl
				</annotation>
				<switch>portname
				<associatedArgument placement="afterSpace">
					<annotation>port-name
				</associatedArgument>
			</option>
			
			<option id="address" maxOccurs="1">
				<annotation>
					Specify the port address 
				</annotation>
				<switch>address
				<associatedArgument placement="afterSpace">
					<annotation>address
				</associatedArgument>
			</option>			
			

			<option id="createxsdimports" maxOccurs="1">
				<annotation>
					Output schemas to separate files and use imports to
					load them instead of inlining them into the wsdl.
				</annotation>
				<switch>createxsdimports
			</option>

		</optionGroup>

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

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

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

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

		   <argument id="classname" minOccurs="1" maxOccurs="1">
			   <annotation>
			        SEI class name
			   </annotation>
		   </argument>
	</usage>
</toolspec>

Other Apache CXF examples (source code examples)

Here is a short list of links related to this Apache CXF java2ws.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.