Linux Commands Examples

A great documentation place for Linux commands

wsgen

tool generates JAXWS portable artifacts used in JAX-WS web services. The tool reads a web service endpoint implementation class (SEI) and generates all the required artifacts for web service deployment, and invocation.

Synopsis

wsgen [options] <SEI>


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

1
source
            
/cygdrive/c/Program\ Files/Java/jdk1.6.0_34/bin/wsgen -cp "$clpth" -wsdl -keep -r "$resourcedir" -d "$outdir" -s "$outsourcedir" $class
0
source
            
cd bin
wsgen -cp . ws.server.MyService
0
source
            
serialver \
wsgen \
wsimport \
xjc
do
oldpath=`update-alternatives --query $i | grep ^Best | awk '{print $2}'`

options

The following table lists the wsgen options.

Table 1-1 wsgen Options

Ant task
An Ant task for the wsgen tool is provided along with the tool. The attributes and elements supported by the Ant task are listed below:

<wsgen
sei="..."
destdir="directory for generated class files"
classpath="classpath" | cp="classpath"
resourcedestdir="directory for generated resource files such as WSDLs"
sourcedestdir="directory for generated source files"
keep="true|false"
verbose="true|false"
genwsdl="true|false"
protocol="soap1.1|Xsoap1.2"
servicename="..."
portname="...">
extension="true|false"
<classpath refid="..."/>
</wsgen>

The classpath attribute is a path-like structure @
http://ant.apache.org/manual/using.html#path and can also be set via nested <classpath> elements. Before this task can be used, a <taskdef> element needs to be added to the project as given below:

<taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen">
<classpath path="jaxws.classpath"/>
</taskdef>

where jaxws.classpath is a reference to a path-like structure @
http://ant.apache.org/manual/using.html#path, defined elsewhere in the build environment, and contains the list of classes required by the JAX-WS tools.

example

<wsgen
resourcedestdir="${wsdl.dir}"
sei="fromjava.server.AddNumbersImpl">
<classpath refid="compile.classpath"/>
</wsgen>

How can this site be more helpful to YOU ?


give  feedback