| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title>Axis Reference Guide</title> |
| 5 |
<meta http-equiv="Content-Type" |
| 6 |
content="text/html; charset=iso-8859-1"> |
| 7 |
<link href="axis.css" rel="stylesheet" type="text/css"> |
| 8 |
</head> |
| 9 |
<body> |
| 10 |
<h1 align="center"><img height="96" src="images/axis.jpg" width="176"></h1> |
| 11 |
<h1>Axis Reference Guide</h1> |
| 12 |
<i>1.2 Version</i> |
| 13 |
<br> |
| 14 |
<i>Feedback: <a href="mailto:[email protected]">[email protected]</a></i> |
| 15 |
<h3>Table of Contents</h3> |
| 16 |
<ul> |
| 17 |
<li><a href="#Tools">Tools Reference</a></li> |
| 18 |
<ul> |
| 19 |
<li><a href="#WSDL2Java">WSDL2Java</a></li> |
| 20 |
<li><a href="#Java2WSDL">Java2WSDL</a></li> |
| 21 |
<li><a href="#Java2WSDL">Java2WSDL</a></li> |
| 22 |
</ul> |
| 23 |
<li><a href="#Deployment">Deployment (WSDD) Reference</a></li> |
| 24 |
<li><a href="#global_configuration">Global Axis Configuration</a></li> |
| 25 |
<li><a href="#individual_service">Individual Service Configuration</a></li> |
| 26 |
<li><a href="#axis_logging">Axis Logging Configuration</a></li> |
| 27 |
<li><a href="#axis_components">Pre-Configured Axis Components |
| 28 |
Reference</a></li> |
| 29 |
</ul> |
| 30 |
<h2> <a name="Tools"></a>Tools Reference</h2> |
| 31 |
<h3><a name="WSDL2Java"></a>WSDL2Java Reference</h3> |
| 32 |
<p>Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI <br> |
| 33 |
Options: <br> |
| 34 |
-h, --help <br> |
| 35 |
|
| 36 |
print this message and exit <br> |
| 37 |
-v, --verbose <br> |
| 38 |
|
| 39 |
print informational messages <br> |
| 40 |
-n, --noImports <br> |
| 41 |
|
| 42 |
only generate code for the immediate WSDL document <br> |
| 43 |
-O, --timeout |
| 44 |
<argument> <br> |
| 45 |
|
| 46 |
timeout in seconds (default is 45, specify -1 to disable) <br> |
| 47 |
-D, --Debug <br> |
| 48 |
|
| 49 |
print debug information <br> |
| 50 |
-W, --noWrapped<br> |
| 51 |
|
| 52 |
turn off support for "wrapped" document/literal<br> |
| 53 |
-s, --server-side <br> |
| 54 |
|
| 55 |
emit server-side bindings for web service <br> |
| 56 |
-S, --skeletonDeploy |
| 57 |
<argument> <br> |
| 58 |
|
| 59 |
deploy skeleton (true) or implementation (false) in deploy.wsdd. <br> |
| 60 |
|
| 61 |
Default is false. Assumes --server-side. <br> |
| 62 |
-N, --NStoPkg |
| 63 |
<argument>=<value> <br> |
| 64 |
|
| 65 |
mapping of namespace to package <br> |
| 66 |
-f, --fileNStoPkg |
| 67 |
<argument> <br> |
| 68 |
|
| 69 |
file of NStoPkg mappings (default NStoPkg.properties) <br> |
| 70 |
-p, --package |
| 71 |
<argument> <br> |
| 72 |
|
| 73 |
override all namespace to package mappings, use this package <br> |
| 74 |
|
| 75 |
name instead <br> |
| 76 |
-o, --output |
| 77 |
<argument> <br> |
| 78 |
|
| 79 |
output directory for emitted files <br> |
| 80 |
-d, --deployScope |
| 81 |
<argument> <br> |
| 82 |
|
| 83 |
add scope to deploy.xml: "Application", "Request", "Session" <br> |
| 84 |
-t, --testCase <br> |
| 85 |
|
| 86 |
emit junit testcase class for web service <br> |
| 87 |
-a, --all <br> |
| 88 |
|
| 89 |
generate code for all elements, even unreferenced ones <br> |
| 90 |
-T, --typeMappingVersion <br> |
| 91 |
|
| 92 |
indicate 1.1 or 1.2. The default is 1.1 (SOAP 1.1 JAX-RPC compliant. |
| 93 |
|
| 94 |
1.2 indicates SOAP 1.1 encoded.) <br> |
| 95 |
-F, --factory |
| 96 |
<argument> <br> |
| 97 |
|
| 98 |
name of a custom class that implements GeneratorFactory interface |
| 99 |
|
| 100 |
(for extending Java generation functions)<br> |
| 101 |
-i, --nsInclude |
| 102 |
<namespace><br> |
| 103 |
|
| 104 |
namescape to specifically include in the generated code (defaults to |
| 105 |
all namespaces unless specifically excluded with the -x option)<br> |
| 106 |
-x, --nsExclude |
| 107 |
<namespace><br> |
| 108 |
|
| 109 |
namespace to specifically exclude from the generated code (defaults to |
| 110 |
none excluded until first namespace included with -i option)<br> |
| 111 |
-p, --property |
| 112 |
<name>=<value><br> |
| 113 |
|
| 114 |
name and value of a property for use by the custom GeneratorFactory<br> |
| 115 |
-H, --helperGen <br> |
| 116 |
|
| 117 |
emits separate Helper classes for meta data <br> |
| 118 |
-U, --user <argument> <br> |
| 119 |
|
| 120 |
username to access the WSDL-URI <br> |
| 121 |
-P, --password |
| 122 |
<argument> <br> |
| 123 |
|
| 124 |
password to access the WSDL-URI <br> |
| 125 |
-c, --implementationClassName |
| 126 |
<argument> <br> |
| 127 |
|
| 128 |
use this as the implementation class <br> |
| 129 |
-w, --wrapArrays |
| 130 |
<br> |
| 131 |
|
| 132 |
Prefer generating JavaBean classes like "ArrayOfString" for certain schema array patterns (default is to use String []) <br> |
| 133 |
</p> |
| 134 |
<h4> -h, --help</h4> |
| 135 |
Print the usage statement and exit |
| 136 |
<h4> -v, --verbose</h4> |
| 137 |
See what the tool is generating as it is generating it. |
| 138 |
<h4> -n, --noImports</h4> |
| 139 |
Only generate code for the WSDL document that appears on the command |
| 140 |
line. The default behaviour is to generate files for all WSDL |
| 141 |
documents, the immediate one and all imported ones. |
| 142 |
<h4> -O, --timeout</h4> |
| 143 |
Timeout in seconds. The default is 45. Use -1 to disable the timeout. |
| 144 |
<h4> -D, --Debug</h4> |
| 145 |
Print debug information, which currently is WSDL2Java's symbol table. |
| 146 |
Note that this is only printed after the symbol table is complete, ie., |
| 147 |
after the WSDL is parsed successfully. |
| 148 |
<h4>-W, --noWrapped</h4> |
| 149 |
This turns off the special treatment of what is called "wrapped" |
| 150 |
document/literal |
| 151 |
style operations. By default, WSDL2Java will recognize the |
| 152 |
following |
| 153 |
conditions:<br> |
| 154 |
<ul> |
| 155 |
<li>If an input message has is a single part.</li> |
| 156 |
<li>The part is an element.</li> |
| 157 |
<li>The element has the same name as the operation</li> |
| 158 |
<li>The element's complex type has no attributes<br> |
| 159 |
</li> |
| 160 |
</ul> |
| 161 |
When it sees this, WSDL2Java will 'unwrap' the top level element, and |
| 162 |
treat each of the components of the element as arguments to the |
| 163 |
operation. This type of WSDL is the default for Microsoft .NET web |
| 164 |
services, which wrap up RPC style arguments in this top level schema |
| 165 |
element. |
| 166 |
<h4> -s, --server-side</h4> |
| 167 |
Emit the server-side bindings for the web service: |
| 168 |
<ul> |
| 169 |
<li> a skeleton class named <bindingName>Skeleton. This |
| 170 |
may or may not be emitted (see -S, --skeletonDeploy).</li> |
| 171 |
<li> an implementation template class named |
| 172 |
<bindingName>Impl. Note that, if this class already exists, |
| 173 |
then it is not emitted.</li> |
| 174 |
<li> deploy.wsdd</li> |
| 175 |
<li> undeploy.wsdd</li> |
| 176 |
</ul> |
| 177 |
<h4> -S, --skeletonDeploy <argument></h4> |
| 178 |
Deploy either the skeleton (true) or the implementation (false) in |
| 179 |
deploy.wsdd. In other words, for "true" the service clause in the |
| 180 |
deploy.wsdd file will look something like: |
| 181 |
<pre class="example"><service name="AddressBook" provider="java:RPC"><br> <parameter name="className" value="samples.addr.AddressBookSOAPBindingSkeleton"/><br> ...<br></service></pre> |
| 182 |
<p>and for "false" it would look like: </p> |
| 183 |
<pre class="example"><service name="AddressBook" provider="java:RPC"><br> <parameter name="className" value="samples.addr.AddressBookSOAPBindingImpl"/><br> ...<br></service></pre> |
| 184 |
<p>The default for this option is false. When you use this |
| 185 |
option, the --server-side option is assumed, so you don't have to |
| 186 |
explicitly specify --server-side as well. </p> |
| 187 |
<h4> -N, --NStoPkg <argument>=<value></h4> |
| 188 |
By default, package names are generated from the namespace strings in |
| 189 |
the WSDL document in a magical manner (typically, if the namespace is |
| 190 |
of the form "http://x.y.com" or "urn:x.y.com" the corresponding package |
| 191 |
will be "com.y.x"). If this magic is not what you want, you can |
| 192 |
provide your own mapping using the --NStoPkg argument, which can be |
| 193 |
repeated as often as necessary, once for each unique namespace |
| 194 |
mapping. For example, if there is a namespace in the WSDL |
| 195 |
document called "urn:AddressFetcher2", and you want files generated |
| 196 |
from the objects within this namespace to reside in the package |
| 197 |
samples.addr, you would provide the following option to WSDL2Java: |
| 198 |
<pre>--NStoPkg urn:AddressFetcher2=samples.addr</pre> |
| 199 |
(Note that if you use the short option tag, "-N", then there must not |
| 200 |
be a space between "-N" and the namespace.) <br> |
| 201 |
|
| 202 |
<h4> -f, --fileNStoPkg <argument></h4> |
| 203 |
If there are a number of namespaces in the WSDL document, listing a |
| 204 |
mapping for them all could become tedious. To help keep the |
| 205 |
command line terse, WSDL2Java will also look for mappings in a |
| 206 |
properties file. By default, this file is named |
| 207 |
"NStoPkg.properties" and it must reside in the default package (ie., no |
| 208 |
package). But you can explicitly provide your own file using the |
| 209 |
--fileNStoPkg option. |
| 210 |
<p>The entries in this file are of the same form as the arguments to |
| 211 |
the --NStoPkg command line option. For example, instead of |
| 212 |
providing the command line option as above, we could provide the same |
| 213 |
information in NStoPkg.properties: </p> |
| 214 |
<pre>urn\:AddressFetcher2=samples.addr</pre> |
| 215 |
(Note that the colon must be escaped in the properties file.) |
| 216 |
<p>If an entry for a given mapping exists both on the command line and |
| 217 |
in the properties file, the command line entry takes precedence. </p> |
| 218 |
<h4> -p, --package <argument></h4> |
| 219 |
This is a shorthand option to map all namespaces in a WSDL document to |
| 220 |
the same Java package name. This can be useful, but |
| 221 |
dangerous. You must make sure that you understand the effects of |
| 222 |
doing this. For instance there may be multiple types with the |
| 223 |
same name in different namespaces. It is an error to use the |
| 224 |
--NStoPkg switch and --package at the same time. |
| 225 |
<h4> -o, --output <argument></h4> |
| 226 |
The root directory for all emitted files. |
| 227 |
<h4> -d, --deployScope <argument></h4> |
| 228 |
Add scope to deploy.wsdd: "Application", "Request", or "Session". |
| 229 |
If this option does not appear, no scope tag appears in deploy.wsdd, |
| 230 |
which the Axis runtime defaults to "Request". |
| 231 |
<h4> -t, --testCase</h4> |
| 232 |
Generate a client-side JUnit test case. This test case can stand |
| 233 |
on its own, but it doesn't really do anything except pass default |
| 234 |
values (null for objects, 0 or false for primitive types). Like |
| 235 |
the generated implementation file, the generated test case file could |
| 236 |
be considered a template that you may fill in. |
| 237 |
<h4> -a, --all</h4> |
| 238 |
Generate code for all elements, even unreferenced ones. By |
| 239 |
default, WSDL2Java only generates code for those elements in the WSDL |
| 240 |
file that are referenced. |
| 241 |
<p>A note about what it means to be referenced. We cannot simply |
| 242 |
say: start with the services, generate all bindings referenced by |
| 243 |
the service, generated all portTypes referenced by the referenced |
| 244 |
bindings, etc. What if we're generating code from a WSDL file |
| 245 |
that only contains portTypes, messages, and types? If WSDL2Java |
| 246 |
used service as an anchor, and there's no service in the file, then |
| 247 |
nothing will be generated. So the anchor is the lowest element |
| 248 |
that exists in the WSDL file in the order: <br> |
| 249 |
</p> |
| 250 |
<ol> |
| 251 |
<li>types </li> |
| 252 |
<li>portTypes </li> |
| 253 |
<li>bindings </li> |
| 254 |
<li>services </li> |
| 255 |
</ol> |
| 256 |
<p>For example, if a WSDL file only contained types, then all the |
| 257 |
listed types would be generated. But if a WSDL file contained |
| 258 |
types and a portType, then that portType will be generated and only |
| 259 |
those types that are referenced by that portType. |
| 260 |
</p> |
| 261 |
<p>Note that the anchor is searched for in the WSDL file appearing on |
| 262 |
the command line, <b>not</b> in imported WSDL files. This allows one |
| 263 |
WSDL file to import constructs defined in another WSDL file without the |
| 264 |
nuisance of having all the imported WSDL file's constructs generated. |
| 265 |
</p> |
| 266 |
<h4> -T, --typeMappingVersion <argument></h4> |
| 267 |
Indicate 1.1 or 1.2. The default is 1.2 (SOAP 1.2 JAX-RPC |
| 268 |
compliant). |
| 269 |
<h4> -F, --factory <argument></h4> |
| 270 |
Used to extend the functionality of the WSDL2Java emitter. The argument |
| 271 |
is the name of a class which extends JavaWriterFactory. |
| 272 |
<h4> -H, --helperGen</h4> |
| 273 |
Emits separate Helper classes for meta data. |
| 274 |
<h4> -U, --user <argument></h4> |
| 275 |
This username is used in resolving the WSDL-URI provided as the input |
| 276 |
to WSDL2Java. If the URI contains a username, this will override |
| 277 |
the command line switch. An example of a URL with a username and |
| 278 |
password is: <code>http://user:password@hostname:port/path/to/service?WSDL</code><br> |
| 279 |
<h4> -P, --password <argument></h4> |
| 280 |
This password is used in resolving the WSDL-URI provided as the input |
| 281 |
to WSDL2Java. If the URI contains a password, this will override |
| 282 |
the command line switch. <br> |
| 283 |
<h4> -c, --implementationClassName <argument></h4> |
| 284 |
<p>Set the name of the implementation class.Especially useful when |
| 285 |
exporting an existing class as a web service using java2wsdl |
| 286 |
followed by wsdl2java. If you are using the skeleton deploy option you must make sure, after generation, |
| 287 |
that your implementation class implements the port type name interface generated |
| 288 |
by wsdl2java. You should also make sure that all your exported methods throws |
| 289 |
java.lang.RemoteException. |
| 290 |
</p> |
| 291 |
<h4> -w, --wrapArrays</h4> |
| 292 |
<p>When processing a schema like this:</p> |
| 293 |
<pre> |
| 294 |
<element name="array"> |
| 295 |
<complexType> |
| 296 |
<sequence> |
| 297 |
<element name="item" type="xs:string"/> |
| 298 |
</sequence> |
| 299 |
</complexType> |
| 300 |
</element> |
| 301 |
</pre> |
| 302 |
The default behavior (as of Axis 1.2 final) is to map this XML construct to a Java String array (String[]). If you would rather a specific JavaBean class (i.e. ArrayOfString) be generated for these types of schemas, you may specify the -w or --wrapArrays option. |
| 303 |
</p> |
| 304 |
<br> |
| 305 |
<h3><a name="Java2WSDL"></a>Java2WSDL Reference</h3> |
| 306 |
<p>Here is the help message generated from the current tool: </p> |
| 307 |
<p><font color="#993366"> |
| 308 |
<pre> |
| 309 |
Java2WSDL emitter |
| 310 |
Usage: java org.apache.axis.wsdl.Java2WSDL [options] class-of-portType |
| 311 |
Options: |
| 312 |
-h, --help |
| 313 |
print this message and exit |
| 314 |
-I, --input <argument> |
| 315 |
input WSDL filename |
| 316 |
-o, --output <argument> |
| 317 |
output WSDL filename |
| 318 |
-l, --location <argument> |
| 319 |
service location url |
| 320 |
-P, --portTypeName <argument> |
| 321 |
portType name (obtained from class-of-portType if not specified) |
| 322 |
-b, --bindingName <argument> |
| 323 |
binding name (--servicePortName value + "SOAPBinding" if not |
| 324 |
specified) |
| 325 |
-S, --serviceElementName <argument> |
| 326 |
service element name (defaults to --servicePortName value + |
| 327 |
"Service") |
| 328 |
-s, --servicePortName <argument> |
| 329 |
service port name (obtained from --location if not specified) |
| 330 |
-n, --namespace <argument> |
| 331 |
target namespace |
| 332 |
-p, --PkgtoNS <argument>=<value> |
| 333 |
package=namespace, name value pairs |
| 334 |
-m, --methods <argument> |
| 335 |
space or comma separated list of methods to export |
| 336 |
-a, --all |
| 337 |
look for allowed methods in inherited class |
| 338 |
-w, --outputWsdlMode <argument> |
| 339 |
output WSDL mode: All, Interface, Implementation |
| 340 |
-L, --locationImport <argument> |
| 341 |
location of interface wsdl |
| 342 |
-N, --namespaceImpl <argument> |
| 343 |
target namespace for implementation wsdl |
| 344 |
-O, --outputImpl <argument> |
| 345 |
output Implementation WSDL filename, setting this causes |
| 346 |
--outputWsdlMode to be ignored |
| 347 |
-i, --implClass <argument> |
| 348 |
optional class that contains implementation of methods in |
| 349 |
class-of-portType. The debug information in the class is used |
| 350 |
to obtain the method parameter names, which are used to set |
| 351 |
the WSDL part names. |
| 352 |
-x, --exclude <argument> |
| 353 |
space or comma separated list of methods not to export |
| 354 |
-c, --stopClasses <argument> |
| 355 |
space or comma separated list of class names which will stop |
| 356 |
inheritance search if --all switch is given |
| 357 |
-T, --typeMappingVersion <argument> |
| 358 |
indicate 1.1 or 1.2. The default is 1.1 (SOAP 1.1 JAX-RPC |
| 359 |
compliant 1.2 indicates SOAP 1.1 encoded.) |
| 360 |
-A, --soapAction <argument> |
| 361 |
value of the operation's soapAction field. Values are DEFAULT, |
| 362 |
OPERATION or NONE. OPERATION forces soapAction to the name |
| 363 |
of the operation. DEFAULT causes the soapAction to be set |
| 364 |
according to the operation's meta data (usually ""). NONE |
| 365 |
forces the soapAction to "". The default is DEFAULT. |
| 366 |
-y, --style <argument> |
| 367 |
The style of binding in the WSDL, either DOCUMENT, RPC, or WRAPPED. |
| 368 |
-u, --use <argument> |
| 369 |
The use of items in the binding, either LITERAL or ENCODED |
| 370 |
-e, --extraClasses <argument> |
| 371 |
A space or comma separated list of class names to be added to |
| 372 |
the type section. |
| 373 |
-C, --importSchema |
| 374 |
A file or URL to an XML Schema that should be physically |
| 375 |
imported into the generated WSDL |
| 376 |
-X, --classpath |
| 377 |
additional classpath elements |
| 378 |
Details: |
| 379 |
portType element name= <--portTypeName value> OR <class-of-portType name> |
| 380 |
binding element name= <--bindingName value> OR <--servicePortName value>Soap |
| 381 |
Binding |
| 382 |
service element name= <--serviceElementName value> OR <--portTypeName value> |
| 383 |
Service |
| 384 |
port element name= <--servicePortName value> |
| 385 |
address location = <--location value> |
| 386 |
</pre> |
| 387 |
</font> |
| 388 |
<br> |
| 389 |
</p> |
| 390 |
<p><b>-h , --help</b> <br> |
| 391 |
Prints the help message. </p> |
| 392 |
<p><b>-I, --input <WSDL file></b> <br> |
| 393 |
Optional parameter that indicates the name of the input wsdl file. The |
| 394 |
output wsdl file will contain everything from the input wsdl file plus |
| 395 |
the new constructs. If a new construct is already present in the input |
| 396 |
wsdl file, it is not added. This option is useful for constructing a |
| 397 |
wsdl file with multiple ports, bindings, or portTypes. |
| 398 |
</p> |
| 399 |
<p><b>-o, --output <WSDL file></b> <br> |
| 400 |
Indicates the name of the output WSDL file. If not specified, a |
| 401 |
suitable default WSDL file is written into the current directory. </p> |
| 402 |
<p><b>-l, --location <location></b> <br> |
| 403 |
Indicates the url of the location of the service. The name after |
| 404 |
the last slash or backslash is the name of the service port (unless |
| 405 |
overridden by the -s option). The service port address location |
| 406 |
attribute is assigned the specified value. </p> |
| 407 |
<p><b>-P, --portTypeName <name></b> <br> |
| 408 |
Indicates the name to use use for the portType element. If not |
| 409 |
specified, the class-of-portType name is used. </p> |
| 410 |
<p><b>-b, --bindingName <name></b> <br> |
| 411 |
Indicates the name to use use for the binding element. If not |
| 412 |
specified, the value of the --servicePortName + "SoapBinding" is used. </p> |
| 413 |
<p><b>-S, --serviceElementName <name></b> <br> |
| 414 |
Indicates the name of the service element. If not specified, the |
| 415 |
service element is the <portTypeName>Service. </p> |
| 416 |
<p><b>-s, --servicePortName <name></b> <br> |
| 417 |
Indicates the name of the service port. If not specified, the |
| 418 |
service port name is derived from the --location value. </p> |
| 419 |
<p><b>-n, --namespace <target namespace></b> <br> |
| 420 |
Indicates the name of the target namespace of the WSDL. </p> |
| 421 |
<p><b>-p, --PkgToNS <package> <namespace></b> <br> |
| 422 |
Indicates the mapping of a package to a namespace. If a package |
| 423 |
is encountered that does not have a namespace, the Java2WSDL emitter |
| 424 |
will generate a suitable namespace name. This option may be |
| 425 |
specified multiple times. </p> |
| 426 |
<p><b>-m, --methods <arguments></b> <br> |
| 427 |
If this option is specified, only the indicated methods in your |
| 428 |
interface class will be exported into the WSDL file. The methods |
| 429 |
list must be comma separated. If not specified, all methods |
| 430 |
declared in the interface class will be exported into the WSDL file. </p> |
| 431 |
<p><b>-a, --all</b> <br> |
| 432 |
If this option is specified, the Java2WSDL parser will look into |
| 433 |
extended classes to determine the list of methods to export into the |
| 434 |
WSDL file. </p> |
| 435 |
<p><b>-w, --outputWSDLMode <mode></b> <br> |
| 436 |
Indicates the kind of WSDL to generate. Accepted values are: </p> |
| 437 |
<ul> |
| 438 |
<li> All --- (default) Generates wsld containing both interface and |
| 439 |
implementation WSDL constructs.</li> |
| 440 |
<li> Interface --- Generates a WSDL containing the interface |
| 441 |
constructs (no service element).</li> |
| 442 |
<li> Implementation -- Generates a WSDL containing the |
| 443 |
implementation. The interface WSDL is imported via the -L option.</li> |
| 444 |
</ul> |
| 445 |
<b>-L, --locationImport <url></b> <br> |
| 446 |
Used to indicate the location of the interface WSDL when generating an |
| 447 |
implementation WSDL. |
| 448 |
<p><b>-N, --namespaceImpl <namespace></b> <br> |
| 449 |
Namespace of the implementation WSDL. </p> |
| 450 |
<p><b>-O, --outputImpl <WSDL file></b> <br> |
| 451 |
Use this option to indicate the name of the output implementation WSDL |
| 452 |
file. If specified, Java2WSDL will produce interface and |
| 453 |
implementation WSDL files. If this option is used, the -w option |
| 454 |
is ignored. </p> |
| 455 |
<p><b>-i, --implClass <impl-class></b> <br> |
| 456 |
Sometimes extra information is available in the implementation class |
| 457 |
file. Use this option to specify the implementation class. </p> |
| 458 |
<p><b>-x, --exclude <list></b> <br> |
| 459 |
List of methods to not exclude from the wsdl file. </p> |
| 460 |
<p><b>-c, --stopClasses <list></b> <br> |
| 461 |
List of classes which stop the Java2WSDL inheritance search. </p> |
| 462 |
<p><b>-T, --typeMappingVersion <version></b> <br> |
| 463 |
Choose the default type mapping registry to use. Either 1.1 or 1.2.</p> |
| 464 |
<p><b>-A, --soapAction <argument></b> <br> |
| 465 |
The value of the operations soapAction field. Values are DEFAULT, |
| 466 |
OPERATION or NONE. OPERATION forces soapAction to the name of the |
| 467 |
operation. DEFAULT causes the soapAction to be set according to the |
| 468 |
operation's meta data (usually ""). NONE forces the soapAction to "". |
| 469 |
The default is DEFAULT. |
| 470 |
</p> |
| 471 |
<p><b>-y, --style <argument></b> <br> |
| 472 |
The style of the WSDL document: RPC, DOCUMENT or WRAPPED. The default |
| 473 |
is RPC. If RPC is specified, an rpc wsdl is generated. If DOCUMENT is |
| 474 |
specified, a document wsdl is generated. If WRAPPED is specified, a |
| 475 |
document/literal wsdl is generated using the wrapped approach. Wrapped |
| 476 |
style forces the use attribute to be literal. |
| 477 |
</p> |
| 478 |
<p><b>-u, --use <argument></b><br> |
| 479 |
The use of the WSDL document: LITERAL or ENCODED. If LITERAL is |
| 480 |
specified, the XML Schema defines the representation of the XML for the |
| 481 |
request. If ENCODED is specified, SOAP encoding is specified in the |
| 482 |
generated WSDL. </p> |
| 483 |
<p><b>-e, --extraClasses <argument></b><br> |
| 484 |
Specify a space or comma seperated list of class names which should be |
| 485 |
included in the <b>types</b> section of the WSDL document. This is |
| 486 |
useful in the case where your service interface references a base class |
| 487 |
and you would like your WSDL to contain XML Schema type defintions for |
| 488 |
these other classes. The -extraClasses option can be specified |
| 489 |
duplicate times. Each specification results in the additional classes |
| 490 |
being added to the list. |
| 491 |
</p> |
| 492 |
<p> <strong>-C, --importSchema</strong><br> |
| 493 |
A file or URL to an XML Schema that should be physically imported into the generated WSDL</p> |
| 494 |
<p><br> |
| 495 |
<strong>-X, --classpath</strong><br> |
| 496 |
Additional classpath elements</p> |
| 497 |
<p> </p> |
| 498 |
<h2><a name="Deployment"></a>Deployment (WSDD) Reference</h2> |
| 499 |
Note : all the elements referred to in this section are in the WSDD namespace, |
| 500 |
namely "http://xml.apache.org/axis/wsdd/". |
| 501 |
<dl> |
| 502 |
<dt><b><font face="Courier New, Courier, mono"><deployment></font></b></dt> |
| 503 |
<dd>The root element of the deployment document which tells the Axis engine |
| 504 |
that this is a deployment. A deployment document may represent EITHER a complete |
| 505 |
engine configuration OR a set of components to deploy into an active engine.</dd> |
| 506 |
<dt><br> |
| 507 |
<b><font face="Courier New, Courier, mono"><GlobalConfiguration></font></b></dt> |
| 508 |
<dd>This element is used to control the engine-wide configuration of Axis. It |
| 509 |
may contain several subelements: |
| 510 |
<ul> |
| 511 |
<li><b><parameter></b> : This is used to set options on the Axis engine |
| 512 |
- see the <a href="#global_configuration">Global Axis Configuration</a> |
| 513 |
section below for more details. Any number of <strong><parameter></strong> |
| 514 |
elements may appear.</li> |
| 515 |
<li><strong><role></strong> : This is used to set a SOAP actor/role |
| 516 |
URI which the engine will recognize. This allows SOAP headers targeted |
| 517 |
at that role to be successfully processed by the engine. Any number of |
| 518 |
<strong><role></strong> elements may appear.</li> |
| 519 |
<li><strong><requestFlow></strong> : This is used to configure global |
| 520 |
request Handlers, which will be invoked before the actual service on every |
| 521 |
request.</li> |
| 522 |
</ul> |
| 523 |
</dd> |
| 524 |
<dd> |
| 525 |
<ul> |
| 526 |
<li><strong><responseFlow></strong> : This is used to configure global |
| 527 |
response Handlers, which will be invoked after the actual service on every |
| 528 |
request.</li> |
| 529 |
</ul> |
| 530 |
</dd> |
| 531 |
<dt> </dt> |
| 532 |
<dt><b><font face="Courier New, Courier, mono"><requestFlow [name="</font></b><font |
| 533 |
face="Courier New, Courier, mono"><i>name</i></font><b><font |
| 534 |
face="Courier New, Courier, mono">"] [type="</font></b><font |
| 535 |
face="Courier New, Courier, mono"><i>type</i></font><b><font |
| 536 |
face="Courier New, Courier, mono">"] ></font></b></dt> |
| 537 |
<dd>This is used to configure handlers in request flow. You may put any number of <strong><handler></strong> or |
| 538 |
<strong><chain></strong> elements (see below) inside the <strong><requestFlow></strong>, |
| 539 |
but there may only be one <strong><requestFlow></strong>.</dd> |
| 540 |
<dt> </dt> |
| 541 |
<dt><b><font face="Courier New, Courier, mono"><responseFlow [name="</font></b><font |
| 542 |
face="Courier New, Courier, mono"><i>name</i></font><b><font |
| 543 |
face="Courier New, Courier, mono">"] [type="</font></b><font |
| 544 |
face="Courier New, Courier, mono"><i>type</i></font><b><font |
| 545 |
face="Courier New, Courier, mono">"] ></font></b></dt> |
| 546 |
<dd>This is used to configure handlers in response flow. You may put any number of <strong><handler></strong> or |
| 547 |
<strong><chain></strong> elements (see below) inside the <strong><responseFlow></strong>, |
| 548 |
but there may only be one <strong><responseFlow></strong>.</dd> |
| 549 |
<dt> </dt> |
| 550 |
<dt><b><font face="Courier New, Courier, mono"><undeployment></font></b></dt> |
| 551 |
<dd>The root element of the deployment document which tells Axis that this is |
| 552 |
an undeployment.</dd> |
| 553 |
<dt> </dt> |
| 554 |
<dt><b><font face="Courier New, Courier, mono"><handler [name="</font></b><font |
| 555 |
face="Courier New, Courier, mono"><i>name</i></font><b><font |
| 556 |
face="Courier New, Courier, mono">"] type="</font></b><font |
| 557 |
face="Courier New, Courier, mono"><i>type</i></font><b><font |
| 558 |
face="Courier New, Courier, mono">"></font></b></dt> |
| 559 |
<dd>Belongs at the top level inside a <b><deployment></b> or <b><undeployment></b>, |
| 560 |
or inside a <b><chain></b>, <b><requestFlow></b>, or <b><responseFlow></b>. |
| 561 |
Defines a Handler, and indicates the type of the handler. "Type" is either |
| 562 |
the name of another previously defined Handler, or a QName of the form "<b>java:<i>class.name</i></b>". |
| 563 |
The optional "name" attribute allows you to refer to this Handler definition |
| 564 |
in other parts of the deployment. May contain an arbitrary number of <b><font |
| 565 |
face="Courier New, Courier, mono"><parameter name="</font></b><font |
| 566 |
face="Courier New, Courier, mono"><i>name</i></font><b><font |
| 567 |
face="Courier New, Courier, mono">" value="</font></b><font |
| 568 |
face="Courier New, Courier, mono"><i>value</i></font><b><font |
| 569 |
face="Courier New, Courier, mono">"></font></b> elements, each of which will |
| 570 |
supply a parameter to the deployed Handler.</dd> |
| 571 |
<dt> </dt> |
| 572 |
<dt><b><font face="Courier New, Courier, mono"><service name="</font></b><font |
| 573 |
face="Courier New, Courier, mono"><i>name</i></font><b><font |
| 574 |
face="Courier New, Courier, mono">" provider="</font></b><font |
| 575 |
face="Courier New, Courier, mono"><i>provider</i></font><b><font |
| 576 |
face="Courier New, Courier, mono">" ></font></b></dt> |
| 577 |
<dd>Deploys/undeploys an Axis Service. This is the most complex WSDD tag, so |
| 578 |
we're going to spend a little time on it.<br> |
| 579 |
<br> |
| 580 |
<b>Options</b> may be specified as follows : <code><b><parameter name="</b>name<b>" |
| 581 |
value="</b>value<b>"/></b></code>, and common ones include:<br> |
| 582 |
<br> |
| 583 |
<ul> |
| 584 |
<li><b>className</b> : the backend implementation class<br> |
| 585 |
</li> |
| 586 |
<li><b>allowedMethods</b> : Each provider can determine which methods are |
| 587 |
allowed to be exposed as web services. <br> |
| 588 |
To summaries for Axis supplied providers:<br> |
| 589 |
<p><u>Java RPC Provider</u> (provider="java:RPC") by default all public |
| 590 |
methods specified by the class in the className option, including any |
| 591 |
inherited methods are available as web services.<br> |
| 592 |
For more details regarding the Java Provider please see <b>WHERE???</b>. |
| 593 |
</p> |
| 594 |
<p><u>Java MsgProvder</u> (provider="java:MSG") |
| 595 |
<!-- Glen to provide details --> |
| 596 |
</p> |
| 597 |
<p>In order to further restrict the above methods, the <b>allowedMethods</b> |
| 598 |
option may be used to specify in a space delimited list the names of |
| 599 |
only those methods which are allowed as web services. It is also possible |
| 600 |
to specify for this option the value <b>"*"</b> which is functionally |
| 601 |
equivalent to not specify the option at all. Also, it is worth mentioning |
| 602 |
that the <b>operation</b> element is used to further define the methods |
| 603 |
being offered, but it does not affect which methods are made available. |
| 604 |
</p> |
| 605 |
<p><i>Note, while this is true for Axis supplied providers, it is implementation |
| 606 |
dependent on each individual provider. Please review your providers |
| 607 |
documentation on how or if it supports this option.</i> </p> |
| 608 |
<p> <b><u>Note, Exposing any web service has security implications.</u><br> |
| 609 |
</b>As a best practices guide it is <u>highly</u> recommend when offering |
| 610 |
a web service in un secure environment to restrict allowed methods to |
| 611 |
only those required for the service being offered. And, for those that |
| 612 |
are made available, to <b>fully</b> understand their function and how |
| 613 |
they may access and expose your systems's resources. </p> |
| 614 |
<p> </p> |
| 615 |
</li> |
| 616 |
<li><b>allowedRoles</b> : comma-separated list of roles allowed to access |
| 617 |
this service. (Note that these are security roles, as opposed to SOAP |
| 618 |
roles. Security roles control access, SOAP roles control which SOAP headers |
| 619 |
are processed.)</li> |
| 620 |
<li><b>extraClasses</b> : Specify a space or comma seperated list of class |
| 621 |
names which should be included in the <b>types</b> section of the WSDL document. |
| 622 |
This is useful in the case where your service interface references a base class |
| 623 |
and you would like your WSDL to contain XML Schema type defintions for these other classes. |
| 624 |
</li> |
| 625 |
</ul> |
| 626 |
<p> If you wish to define handlers which should be invoked either before or |
| 627 |
after the service's provider, you may do so with the <b><requestFlow></b> |
| 628 |
and the <b><responseFlow></b> subelements. Either of those elements |
| 629 |
may be specified inside the <b><service></b> element, and their semantics |
| 630 |
are identical to the <b><chain></b> element described below - in other |
| 631 |
words, they may contain <b><handler></b> and <b><chain</b>> |
| 632 |
elements which will be invoked in the order they are specified.</p> |
| 633 |
<p>To control the <a href="http://www.w3.org/TR/2003/REC-soap12-part1-20030624/#soaproles">roles</a> |
| 634 |
that should be recognized by your service Handlers, you can specify any |
| 635 |
number of <b><role></b> elements inside the service declaration.</p> |
| 636 |
Example:<br> |
| 637 |
<pre> |
| 638 |
<service name="test"> |
| 639 |
<parameter name="className" value="test.Implementation"/> |
| 640 |
<parameter name="allowedMethods" value="*"/> |
| 641 |
<namespace>http://testservice/</namespace> |
| 642 |
<role>http://testservice/MyRole</role> |
| 643 |
<requestFlow> <!-- Run these before processing the request --> |
| 644 |
<handler type="java:MyHandlerClass"/>\ |
| 645 |
<handler type="somethingIDefinedPreviously"/> |
| 646 |
</requestFlow> |
| 647 |
</service> |
| 648 |
</pre> |
| 649 |
Metadata may be specified about particular operations in your service by using |
| 650 |
the <operation> tag inside a service. This enables you to map the java |
| 651 |
parameter names of a method to particular XML names, to specify the parameter |
| 652 |
modes for your parameters, and to map particular XML names to particular operations.<br> |
| 653 |
<br> |
| 654 |
<operation name="method"><br> |
| 655 |
</operation> <br> |
| 656 |
</dd> |
| 657 |
<dt> </dt> |
| 658 |
<dt><b><font face="Courier New, Courier, mono"><chain name="</font></b><font |
| 659 |
face="Courier New, Courier, mono"><i>name</i></font><b><font |
| 660 |
face="Courier New, Courier, mono">"</font></b><b><font |
| 661 |
face="Courier New, Courier, mono">><br> |
| 662 |
<<i>subelement</i>/>...<br> |
| 663 |
</chain> </font></b></dt> |
| 664 |
<dd>Defines a chain. Each <i>handler</i> (i.e. deployed handler name) in the |
| 665 |
list will be invoked() in turn when the chain is invoked. This enables you |
| 666 |
to build up "modules" of commonly used functionality. The subelements inside |
| 667 |
chains may be <<b>handler</b>>s or <<b>chain</b>>s. <handler>s |
| 668 |
inside a <chain> may either be defined in terms of their Java class:<br> |
| 669 |
<pre><chain name="myChain"><br> <handler type="java:org.apache.axis.handlers.LogHandler"/><br></chain></pre> |
| 670 |
or may refer to previously defined <handlers>, with the "type" of the |
| 671 |
handler referring to the name of the other handler definition:<br> |
| 672 |
<pre><handler name="logger" type="java:org.apache.axis.handlers.LogHandler"/><br><chain name="myChain"/><br> <handler type="logger"/><br></chain></pre> |
| 673 |
</dd> |
| 674 |
<dt> </dt> |
| 675 |
<dt><b><font face="Courier New, Courier, mono"><transport name="</font></b><font |
| 676 |
face="Courier New, Courier, mono"><i>name</i></font><b><font |
| 677 |
face="Courier New, Courier, mono">"></font></b></dt> |
| 678 |
<dd>Defines a transport on the server side. Server transports are invoked when |
| 679 |
an incoming request arrives. A server transport may define <b><requestFlow></b> |
| 680 |
and/or <b><responseFlow></b> elements to specify handlers/chains which |
| 681 |
should be invoked during the request (i.e. incoming message) or response (i.e. |
| 682 |
outgoing message) portion of processing (this function works just like the |
| 683 |
<b><service></b> element above). Typically handlers in the transport |
| 684 |
request/response flows implement transport-specific functionality, such as |
| 685 |
parsing protocol headers, etc.</dd> |
| 686 |
<br> |
| 687 |
<br> |
| 688 |
<dd>For any kind of transport (though usually this relates to HTTP transports), |
| 689 |
users may allow Axis servlets to perform arbitrary actions (by means of a |
| 690 |
"plug-in") when specific query strings are passed to the servlet (see the |
| 691 |
section <a |
| 692 |
href="developers-guide.html#Axis%20Servlet%20Query%20String%20Plug-ins">Axis |
| 693 |
Servlet Query String Plug-ins</a> in the <a |
| 694 |
href="developers-guide.html">Axis Developer's Guide</a> for more information |
| 695 |
on what this means and how to create a plug-in). When the name of a query |
| 696 |
string handler class is known, users can enable it by adding an appropriate |
| 697 |
<b><parameter></b> element in the Axis server configuration's <b><transport></b> |
| 698 |
element. An example configuration might look like the following:<br> |
| 699 |
<br> |
| 700 |
<code> <transport name="http"><br> |
| 701 |
<parameter name="useDefaultQueryStrings" value="false" /><br> |
| 702 |
<parameter name="qs.name" value="class.name" /><br> |
| 703 |
</transport><br> |
| 704 |
</code><br> |
| 705 |
In this example, the query string that the Axis servlet should respond to |
| 706 |
is <i>?name</i> and the class that it should invoke when this query string |
| 707 |
is encountered is named <code>class.name</code>. The <code>name</code> attribute |
| 708 |
of the <b><parameter></b> element must start with the string "qs." to |
| 709 |
indicate that this <b><parameter></b> element defines a query string |
| 710 |
handler. The <code>value</code> attribute must point to the name of a class |
| 711 |
implementing the <code>org.apache.axis.transport.http.QSHandler</code> interface. |
| 712 |
By default, Axis provides for three Axis servlet query string handlers (<i>?list</i>, |
| 713 |
<i>?method</i>, and <i>?wsdl</i>). See the Axis server configuration file |
| 714 |
for their definitions. If the user wishes not to use these default query string |
| 715 |
handlers (as in the example), a <b><parameter></b> element with a <code>name</code> |
| 716 |
attribute equal to "useDefaultQueryStrings" should have its <code>value</code> |
| 717 |
attribute set to <code>false</code>. By default it is set to <code>true</code> |
| 718 |
and the element is not necessary if the user wishes to have this default behavior. |
| 719 |
</dd> |
| 720 |
<dt> </dt> |
| 721 |
<dt><b><font face="Courier New, Courier, mono"><transport name="</font></b><font |
| 722 |
face="Courier New, Courier, mono"><i>name</i></font><b><font |
| 723 |
face="Courier New, Courier, mono">" pivot="</font></b><font |
| 724 |
face="Courier New, Courier, mono"><i>handler type</i><b>"</b></font><b><font |
| 725 |
face="Courier New, Courier, mono"> ></font></b></dt> |
| 726 |
<dd>Defines a transport on the client side, which is invoked when sending a |
| 727 |
SOAP message. The "pivot" attribute specifies a Handler to be used as the |
| 728 |
actual sender for this transport (for example, the HTTPSender). Request and |
| 729 |
response flows may be specified as in server-side transports to do processing |
| 730 |
on the request (i.e. outgoing message) or response (i.e. incoming message).</dd> |
| 731 |
<dt> </dt> |
| 732 |
<dt><b><font face="Courier New, Courier, mono"><typeMapping qname="</font></b><font |
| 733 |
face="Courier New, Courier, mono"><i>ns:localName</i></font><b><font |
| 734 |
face="Courier New, Courier, mono">" classname="</font></b><font |
| 735 |
face="Courier New, Courier, mono"><i>classname</i></font><b><font |
| 736 |
face="Courier New, Courier, mono">" serializer="</font></b><font |
| 737 |
face="Courier New, Courier, mono"><i>classname</i></font><b><font |
| 738 |
face="Courier New, Courier, mono">" deserializer="</font></b><font |
| 739 |
face="Courier New, Courier, mono"><i>classname</i></font><b><font |
| 740 |
face="Courier New, Courier, mono">"/></font></b></dt> |
| 741 |
<dd>Each typeMapping maps an XML qualified name to/from a Java class, using |
| 742 |
a specified Serializer and Deserializer. </dd> |
| 743 |
<dt> </dt> |
| 744 |
<dt><b><font face="Courier New, Courier, mono"><beanMapping qname="</font></b><font |
| 745 |
face="Courier New, Courier, mono"><i>ns:localName</i></font><b><font |
| 746 |
face="Courier New, Courier, mono">" classname="</font></b><font |
| 747 |
face="Courier New, Courier, mono"><i>classname</i></font><b><font |
| 748 |
face="Courier New, Courier, mono">"</font></b><b><font |
| 749 |
face="Courier New, Courier, mono">></font></b></dt> |
| 750 |
<dd><b></b>A simplified type mapping, which uses pre-defined serializers/deserializers |
| 751 |
to encode/decode JavaBeans. The class named by "classname" must follow the |
| 752 |
JavaBean standard pattern of get/set accessors.</dd> |
| 753 |
<dt> </dt> |
| 754 |
<dt><b><font face="Courier New, Courier, mono"><documentation></font></b></dt> |
| 755 |
<dd>Can be used inside a <b><service></b>, an <b><operation></b> |
| 756 |
or an operation <b><parameter></b>. The content of the element is arbitrary |
| 757 |
text which will be put in the generated wsdl inside a wsdl:document element.<br> |
| 758 |
<br> |
| 759 |
Example:<br> |
| 760 |
<code><operation name="echoString" ><br> |
| 761 |
<documentation>This operation echoes a string</documentation><br> |
| 762 |
<parameter name="param"><br> |
| 763 |
<documentation>a string</documentation><br> |
| 764 |
</parameter><br> |
| 765 |
</operation> </code> </dd> |
| 766 |
</dl> |
| 767 |
<p> </p> |
| 768 |
<h2><a name="global_configuration">Global Axis Configuration</a></h2> |
| 769 |
|
| 770 |
The server is configured (by default) by |
| 771 |
values in the |
| 772 |
server-config.wsdd file, though a dedicated Axis user can write their |
| 773 |
own configuration handler, and so store configuration data in an LDAP |
| 774 |
server, database, remote web service, etc. Consult the source on |
| 775 |
details |
| 776 |
as to how to do that. You can also add options to the web.xml file and |
| 777 |
have them picked up automatically. We don't encourage that as it is |
| 778 |
nice |
| 779 |
to keep configuration stuff in one place. |
| 780 |
|
| 781 |
<p>In the server-config file, there is |
| 782 |
a global configuration section, |
| 783 |
which supports parameter name/value pairs as nested elements. Here are |
| 784 |
the options that we currently document, though there may be more |
| 785 |
(consult the source, as usual). </p> |
| 786 |
<pre> |
| 787 |
<globalConfiguration> |
| 788 |
<parameter name="adminPassword" value="admin"/> |
| 789 |
<parameter name="axis.servicesPath" value="/services/"/> |
| 790 |
<parameter name="attachments.Directory" value="c:\temp\attachments"/> |
| 791 |
<parameter name="sendMultiRefs" value="true"/> |
| 792 |
<parameter name="sendXsiTypes" value="true"/> |
| 793 |
<parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/> |
| 794 |
<parameter name="sendXMLDeclaration" value="true"/> |
| 795 |
<parameter name="enable2DArrayEncoding" value="true"/> |
| 796 |
<parameter name="dotNetSoapEncFix" value="false"/> |
| 797 |
</globalConfiguration> |
| 798 |
</pre> |
| 799 |
<table> |
| 800 |
<tbody> |
| 801 |
<tr> |
| 802 |
<td><b>adminPassword</b></td> |
| 803 |
<td>Adminstrator password, as used by AdminService. </td> |
| 804 |
</tr> |
| 805 |
<tr> |
| 806 |
<td><b>attachments.Directory</b></td> |
| 807 |
<td>The directory where attachments end up. This should be in the |
| 808 |
syntax appropriate for the target platform. </td> |
| 809 |
</tr> |
| 810 |
<tr> |
| 811 |
<td><b>attachments.implementation</b></td> |
| 812 |
<td> Name of class that implements attachments support. Default |
| 813 |
is <tt>org.apache.axis.attachments.AttachmentsImpl</tt> </td> |
| 814 |
</tr> |
| 815 |
<tr> |
| 816 |
<td><b>axis.enableListQuery</b></td> |
| 817 |
<td>Flag to enable the "list the WSDD" feature. Set to false by |
| 818 |
default, because listing the current system config can expose |
| 819 |
information (such as the adminservice password) that one does not want |
| 820 |
widely avaialable. </td> |
| 821 |
</tr> |
| 822 |
<tr> |
| 823 |
<td><b>axis.disableServiceList</b></td> |
| 824 |
<td>Flag to disable the list of services feature. Set to false by |
| 825 |
default, which enables the list of services by the AxisServlet when a GET |
| 826 |
request is performed on the servlet root.</td> |
| 827 |
</tr> |
| 828 |
<tr> |
| 829 |
<td><b>axis.servicesPath</b></td> |
| 830 |
<td>Path to the Axis servlet. This should be the same as the services |
| 831 |
servlet-mapping defined in web.xml. Used for displaying |
| 832 |
the list of services. Default is "/services/".</td> |
| 833 |
</tr>> |
| 834 |
<tr> |
| 835 |
<td><b>axis.Compiler</b></td> |
| 836 |
<td>Compiler adapter classname for JWS compilation. Default is <tt>org.apache.axis.components.compiler.Javac</tt>; |
| 837 |
change this to <tt>org.apache.axis.components.compiler.Jikes</tt> to |
| 838 |
invoke jikes instead. </td> |
| 839 |
</tr> |
| 840 |
<tr> |
| 841 |
<td><b>axis.development.system</b></td> |
| 842 |
<td>Flag to switch the system from <i>production</i> (false) to <i>development</i> |
| 843 |
(true). A development system gives out stack traces and other |
| 844 |
information that production boxes should not. </td> |
| 845 |
</tr> |
| 846 |
<tr> |
| 847 |
<td><b>axis.xmlEncoding</b></td> |
| 848 |
<td>Encoding used for XML messages -either UTF-8 (default) or |
| 849 |
UTF-16</td> |
| 850 |
</tr> |
| 851 |
<tr> |
| 852 |
<td><b>axis.engineConfigClass</b></td> |
| 853 |
<td>Name of a class that provides Axis configuration. Implement a |
| 854 |
new class implementing <tt>EngineConfiguration</tt> and name it here |
| 855 |
to use alternate configuration mechanisms. </td> |
| 856 |
</tr> |
| 857 |
<tr> |
| 858 |
<td><b>axis.jws.servletClassDir</b></td> |
| 859 |
<td>Path to where compiled JWS pages are placed. </td> |
| 860 |
</tr> |
| 861 |
<tr> |
| 862 |
<td><b>axis.sendMinimizedElements</b></td> |
| 863 |
<td>Flag to turn on support for a when .NET1.0 can't correctly |
| 864 |
handle some bits of XML <a |
| 865 |
href="http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17021"> that |
| 866 |
it should. </a> The flag defaults to true; if some .NET clients are |
| 867 |
failing to handle a Web Service returning an empty array inside another |
| 868 |
object, set this flag to <i>false</i>. </td> |
| 869 |
</tr> |
| 870 |
<tr> |
| 871 |
<td><b>enable2DArrayEncoding</b></td> |
| 872 |
<td>Set this to "true" to turn 2D array encoding on; this |
| 873 |
encoding is incompatible with .NET 1.0: default="false". </td> |
| 874 |
</tr> |
| 875 |
<tr> |
| 876 |
<td><b>sendMultiRefs</b></td> |
| 877 |
<td>true/false flag to control whether multirefs are sent or not. |
| 878 |
</td> |
| 879 |
</tr> |
| 880 |
<tr> |
| 881 |
<td><b>sendXMLDeclaration</b></td> |
| 882 |
<td>true/false flag to control whether the <?xml?> |
| 883 |
declaration is sent in messages </td> |
| 884 |
</tr> |
| 885 |
<tr> |
| 886 |
<td><b>sendXsiTypes</b></td> |
| 887 |
<td>true/false flag to enable/disable sending the type of every |
| 888 |
value sent over the wire. Defaults to true. </td> |
| 889 |
</tr> |
| 890 |
<tr> |
| 891 |
<td><strong>SingleSOAPVersion</strong></td> |
| 892 |
<td>When set to either "1.1" or "1.2", this configures the engine |
| 893 |
to only accept the specified SOAP version. Attempts to connect to the |
| 894 |
engine using another version will result in a fault.</td> |
| 895 |
</tr> |
| 896 |
<tr> |
| 897 |
<td><b>use-servlet-security</b></td> |
| 898 |
<td>Set this flag to hand authentication off to the servlet |
| 899 |
container. </td> |
| 900 |
</tr> |
| 901 |
<tr> |
| 902 |
<td><b>dotNetSoapEncFix</b></td> |
| 903 |
<td>Set this flag to true to turn on a preference for the XML Schema (xsd) types in the |
| 904 |
Axis engine. This improved interop with .NET. In particular, .NET seems to have problems |
| 905 |
accepting SOAP encoded types (soapenc) in arrays. Due to bugs in the Axis 1.1 type mapping |
| 906 |
system, Axis generally perferred the schema types. Axis 1.2 now correctly uses the SOAP |
| 907 |
encoded types when it is using SOAP encoding for a service. See JAX-RPC 1.1, section 4.2.1. |
| 908 |
Note: You can also set this flag by setting the static property on the TypeMappingImpl class: |
| 909 |
<pre>TypeMappingImpl.dotnet_soapenc_bugfix = true;</pre> |
| 910 |
</td> |
| 911 |
</tr> |
| 912 |
<!-- end table --> |
| 913 |
</tbody> |
| 914 |
</table> |
| 915 |
<h2><a name="individual_service">Individual Service Configuration</a></h2> |
| 916 |
<p>Here is a service element with examples of the current set of options you can set. More may exists (consult the source, as usual).</p> |
| 917 |
<pre> |
| 918 |
<service name="MyServiceName" |
| 919 |
provider="java:RPC" |
| 920 |
style="rpc|document|wrapped" |
| 921 |
use="encoded|literal" |
| 922 |
streaming="off|on" |
| 923 |
attachment="MIME|DIME|NONE"> |
| 924 |
|
| 925 |
<parameter name="className" value="org.apache.mystuff.MyService"/> |
| 926 |
<parameter name="allowedMethods" value="method1 method2 method3"/> |
| 927 |
<parameter name="wsdlTargetNamespace" value="http://mystuff.apache.org/MyService"/> |
| 928 |
<parameter name="wsdlServiceElement" value="MyService"/> |
| 929 |
<parameter name="wsdlServicePort" value="MyServicePort"/> |
| 930 |
<parameter name="wsdlPortType" value="MyPort"/> |
| 931 |
<parameter name="wsdlSoapActionMode" value="NONE|DEFAULT|OPERATION"/> |
| 932 |
|
| 933 |
<parameter name="SingleSOAPVersion" value="1.1|1.2/> |
| 934 |
|
| 935 |
<documentation>Service level info</documentation> |
| 936 |
<endpointURL>http://example.com:5050/my/custom/url/to/service</endpointURL> |
| 937 |
<wsdlFile>/path/to/wsdl/file</wsdlFile> |
| 938 |
<namespace>http://my.namespace.com/myservice</namespace> |
| 939 |
<handlerInfoChain>handlerChainName</handlerInfoChain> |
| 940 |
|
| 941 |
<operation ... /> |
| 942 |
|
| 943 |
<typeMapping ... /> |
| 944 |
|
| 945 |
<beanMapping ... /> |
| 946 |
|
| 947 |
</service></pre> |
| 948 |
<h3>Service Element Attributes</h3> |
| 949 |
|
| 950 |
<h4>name</h4> |
| 951 |
The name of the service. |
| 952 |
<h4>provider</h4> |
| 953 |
The provider for the service. The recognized providers are: java:RPC, java:MSG, |
| 954 |
java:EJB, java:COM, java:BSF, java:CORBA, java:RMI and "Handler" |
| 955 |
where <tt>xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"</tt>. The RPC provider supports |
| 956 |
both rpc/encoded, document/literal and wrapped/literal services. the MSG provider supports the |
| 957 |
'fixed signature' service which takes XML in and returns XML our directly. The other providers must be |
| 958 |
built in to Axis. See the code in org.apache.axis.providers. |
| 959 |
|
| 960 |
<h4>style</h4> |
| 961 |
The style of the service. |
| 962 |
"rpc" uses the RPC style of wrapping the parts of the message an element that has the same name |
| 963 |
as the operation. |
| 964 |
"document" style means the messages in and out of the service are exactly as |
| 965 |
they are describe by the XML Schema in the WSDL. |
| 966 |
"wrapped" is a subset of the document style. The arguments to the operation are wrapped up in and |
| 967 |
element that has the same name as the operation. This is the style of service .NET generates by |
| 968 |
default. The generated WSDL specifies document style (and literal use) but Axis will 'unwrapped' |
| 969 |
the parts of the message for the Axis service at the back end. |
| 970 |
|
| 971 |
<h4>use</h4> |
| 972 |
This can be either "encoded" or "literal". Encoded means the SOAP 1.1 "Section 5 Encoding" is used to |
| 973 |
encode the data structures returned by the service and incoming XML is decoded using the same rules. |
| 974 |
Literal use means no such encoding is performed. |
| 975 |
|
| 976 |
<h4>streaming</h4> |
| 977 |
Valid values are "on" or "off". This turns on or off the streaming mode of the XML deserializer. |
| 978 |
The default is currently off. Certain Axis functionality may not function properly if this is turned |
| 979 |
on. Use with caution. |
| 980 |
|
| 981 |
<h4>attachment</h4> |
| 982 |
Valied values are "MIME" for SOAP with attachements (SwA), "DIME" for DIME support and "NONE" for no attachement |
| 983 |
support at all. The default mode of Axis is to use MIME attachements (SwA). |
| 984 |
|
| 985 |
<h3>Elements allowed in the Service element</h3> |
| 986 |
|
| 987 |
<h4><wsdlFile></h4> |
| 988 |
<p>The path to a WSDL File; can be an absolute path or a |
| 989 |
resource that axis.jar can load. Useful to export your custom WSDL |
| 990 |
file. When specify a path to a resource, place a forward slash to start |
| 991 |
at the beginning of the classpath (e.g "/org/someone/res/mywsdl.wsdl"). |
| 992 |
How does Axis know whether to return a file or resource? It looks for a |
| 993 |
file first, if that is missing a resource is returned. </p> |
| 994 |
|
| 995 |
<h4><documentation></h4> |
| 996 |
<p>Documentation text that will get inserted in to the document element of the WSDL for the service</p> |
| 997 |
|
| 998 |
<h4><endpointURL></h4> |
| 999 |
<p>Specify the endpoint URL of the service, which will override the transport level URL |
| 1000 |
created by the Axis servlet. This is usefull if you have a proxy handling requests |
| 1001 |
and you need the endpoint URL to reflect a different hostname than the one Axis is |
| 1002 |
executing on.</p> |
| 1003 |
|
| 1004 |
<h4><namespace></h4> |
| 1005 |
<p>Specify the default namespace for the service.</p> |
| 1006 |
|
| 1007 |
<h4><handlerInfoChain></h4> |
| 1008 |
<p>Specify the JAX RPC handler chain for this service.</p> |
| 1009 |
|
| 1010 |
<p>In addition, as described above, the <B><requestFlow></B> and/or <B><responseFlow></B> elements are also allowed in the service element.</p> |
| 1011 |
|
| 1012 |
|
| 1013 |
|
| 1014 |
<p> |
| 1015 |
|
| 1016 |
<h3>Service Level Parameters</h3> |
| 1017 |
The following parameters can be set on a service wide basis using the <parameter> tag. There may be more than those documented here, but this list should be almost complete. |
| 1018 |
<p> |
| 1019 |
<table cellpadding="2"> |
| 1020 |
<tbody> |
| 1021 |
<tr> |
| 1022 |
<td><strong>className</strong></td> |
| 1023 |
<td>The fully qualified name of the implemenation class of the service.<br> |
| 1024 |
</td> |
| 1025 |
</tr> |
| 1026 |
<tr> |
| 1027 |
<td><strong>allowedMethods</strong></td> |
| 1028 |
<td>A space or comma seperated list of method names, or "*" for all methods in the service class. |
| 1029 |
If this parameter isn't specified, all methods ("*") is the default. |
| 1030 |
</td> |
| 1031 |
</tr> |
| 1032 |
<tr> |
| 1033 |
<td><strong>wsdlPortType</strong></td> |
| 1034 |
<td>The name of the portType element in the generated WSDL for the service.</td> |
| 1035 |
</tr> |
| 1036 |
<tr> |
| 1037 |
<td><strong>wsdlServiceElement</strong></td> |
| 1038 |
<td>The name of the Service element in the generated WSDL for the service.</td> |
| 1039 |
</tr> |
| 1040 |
<tr> |
| 1041 |
<td><strong>wsdlServicePort</strong></td> |
| 1042 |
<td>The name of the port in the generated WSDL for the service.</td> |
| 1043 |
</tr> |
| 1044 |
<tr> |
| 1045 |
<td><strong>wsdlTargetNamespace</strong></td> |
| 1046 |
<td>The target namespace in the generated WSDL for the service.</td> |
| 1047 |
</tr> |
| 1048 |
<tr> |
| 1049 |
<td><strong>wsdlInputSchema</strong></td> |
| 1050 |
<td>A comma separated list of of input Schema for the generated WSDL for the service.</td> |
| 1051 |
</tr> |
| 1052 |
<tr> |
| 1053 |
<td><strong>wsdlSoapActionMode</strong></td> |
| 1054 |
<td>Values are DEFAULT, OPERATION or NONE. |
| 1055 |
OPERATION forces soapAction to the name of the operation. |
| 1056 |
DEFAULT causes the soapAction to be set according to the |
| 1057 |
operations meta data, specifically the soapAction attribute of the operation |
| 1058 |
in the deployment information. |
| 1059 |
NONE forces the soapAction to "". The default is DEFAULT.</td> |
| 1060 |
</tr> |
| 1061 |
<tr> |
| 1062 |
<td><strong>SingleSOAPVersion</strong></td> |
| 1063 |
<td>When set to either "1.1" or "1.2", this configures a service |
| 1064 |
to only accept the specified SOAP version. Attempts to connect to the |
| 1065 |
service using another version will result in a fault.</td> |
| 1066 |
</tr> |
| 1067 |
</tbody> |
| 1068 |
</table> |
| 1069 |
|
| 1070 |
|
| 1071 |
|
| 1072 |
<h2><a name="individual_operations">Individual Operation Configuration</a></h2> |
| 1073 |
|
| 1074 |
<p>Here is an <tt><operation></tt> element with examples of the current set of options you can set. More may exists (consult the source, as usual).</p> |
| 1075 |
<pre> |
| 1076 |
<operation name="GetQuote" |
| 1077 |
qname="operNS:GetQuote" |
| 1078 |
returnQName="GetQuoteResult" |
| 1079 |
returnType="xsd:float" |
| 1080 |
soapAction="" |
| 1081 |
returnHeader="true|false"> |
| 1082 |
|
| 1083 |
<documentation>Operation level documentation here</documentation> |
| 1084 |
|
| 1085 |
<parameter name="ticker" type="tns:string"/> |
| 1086 |
|
| 1087 |
<fault name="InvalidTickerFaultMessage" |
| 1088 |
qname="tickerSymbol" |
| 1089 |
class="test.wsdl.faults.InvalidTickerFaultMessage" |
| 1090 |
type="xsd:string"/> |
| 1091 |
<br></operation> |
| 1092 |
</pre> |
| 1093 |
|
| 1094 |
<p>The example above omits the XML Namespace declarations (xmlns:foo="http://my.namespace/") that could appear |
| 1095 |
in each of the elements for the namespaces used.</p> |
| 1096 |
|
| 1097 |
<h3>Operation Attributes</h3> |
| 1098 |
|
| 1099 |
<h4>name</h4> |
| 1100 |
The name of the operation. This would generally match the name of the function in your service implementation. |
| 1101 |
|
| 1102 |
<h4>qname</h4> |
| 1103 |
The Qualified Name of the top level element for this operation. This is how Axis maps operations for document/literal services, |
| 1104 |
which do not have the operation name in the QName of the XML element on the wire. |
| 1105 |
|
| 1106 |
<h4>returnQName</h4> |
| 1107 |
The Qualified Name of the XML element that is returned from this operation. |
| 1108 |
|
| 1109 |
<h4>returnType</h4> |
| 1110 |
The Qualified Name of the return type. |
| 1111 |
|
| 1112 |
<h4>returnHeader</h4> |
| 1113 |
If true, the return value of the operation is contained in a header. |
| 1114 |
|
| 1115 |
<h4>soapAction</h4> |
| 1116 |
The value of the SOAPAction attribute for this operation in the WSDL generated for this service. |
| 1117 |
|
| 1118 |
<h3>Elements allowed in the Operation Element</h3> |
| 1119 |
|
| 1120 |
<h4><documentation></h4> |
| 1121 |
Documentation text that will get inserted in to the document element of the WSDL for the operation. |
| 1122 |
|
| 1123 |
<h4><parameter></h4> |
| 1124 |
<p>Defines a parameter for the operation. Valid attributes are:</p> |
| 1125 |
<table> |
| 1126 |
<tr><td><strong>name</strong></td> |
| 1127 |
<td>The name of the parameter.</td></tr> |
| 1128 |
<tr><td><strong>qname</strong></td> |
| 1129 |
<td>The QName of the parameter, used in preference to name.</td> |
| 1130 |
</tr> |
| 1131 |
<tr><td><strong>mode</strong></td> |
| 1132 |
<td>The mode of the parameter. One of "in", "out" or "inout".</td></tr> |
| 1133 |
<tr><td><strong>inHeader</strong></td> |
| 1134 |
<td>If "true", this parameter is an input header.</td></tr> |
| 1135 |
<tr><td><strong>outHeader</strong></td> |
| 1136 |
<td>If "true", this parameter is an output header.</td></tr> |
| 1137 |
<tr><td><strong>type</strong></td> |
| 1138 |
<td>The QName of the type of the parameter.</td></tr> |
| 1139 |
</table> |
| 1140 |
<p> |
| 1141 |
<strong>NOTE:</strong> A <tt><documentation></tt> element may appear as a child of parameter. |
| 1142 |
</p> |
| 1143 |
|
| 1144 |
<h4><fault></h4> |
| 1145 |
Defines the type information for each fault that the operation may throw. |
| 1146 |
Valid attributes are:</p> |
| 1147 |
<table> |
| 1148 |
<tr><td><strong>name</strong></td> |
| 1149 |
<td>The name of the fault.</td></tr> |
| 1150 |
<tr><td><strong>qname</strong></td> |
| 1151 |
<td>The QName of the fault.</td> |
| 1152 |
</tr> |
| 1153 |
<tr><td><strong>class</strong></td> |
| 1154 |
<td>The Java class that represents this fault.</td></tr> |
| 1155 |
<tr><td><strong>type</strong></td> |
| 1156 |
<td>The QName of the type that represents the data for this fault.</td></tr> |
| 1157 |
</table> |
| 1158 |
|
| 1159 |
|
| 1160 |
|
| 1161 |
|
| 1162 |
|
| 1163 |
<h2><a name="axis_logging">Axis Logging Configuration</a></h2> |
| 1164 |
Axis uses the Jakarta Projects's |
| 1165 |
<a href="http://jakarta.apache.org/commons/logging.html">commons-logging API</a>, |
| 1166 |
as implemented in <tt>commons-logging.jar</tt> to implement logging |
| 1167 |
throughout the code. Normally |
| 1168 |
this library routes the logging to the Log4j library, provided that an |
| 1169 |
implementation of log4j is on the classpath of the server or client. |
| 1170 |
The |
| 1171 |
commons-logging API can also bind to Avalon, <tt>System.out</tt> or |
| 1172 |
the Java1.4 |
| 1173 |
logger. The JavaDocs for the library explain the process for selecting |
| 1174 |
a logger, |
| 1175 |
which can be done via a system property or a properties file in the |
| 1176 |
classpath. |
| 1177 |
<p>Log4J can be configured using the file log4j.properties in the |
| 1178 |
classpath; later |
| 1179 |
versions also support an XML configuration. Axis includes a |
| 1180 |
preconfigured |
| 1181 |
log4j.properties file in <tt>axis.jar</tt>. While this is adequate for |
| 1182 |
basic use, |
| 1183 |
any complex project will want to modify their own version of the file. |
| 1184 |
Here is |
| 1185 |
what to do </p> |
| 1186 |
<ol> |
| 1187 |
<li>Open up axis.jar in a zipfile viewer and remove log4j.properties |
| 1188 |
from the jar |
| 1189 |
</li> |
| 1190 |
<li>Or, when building your own copy of axis.jar, set the Ant property |
| 1191 |
<tt>exclude.log4j.configuration</tt> to keep the properties file |
| 1192 |
out the JAR. |
| 1193 |
</li> |
| 1194 |
<li>Create your own log4J.properties file, and include it in <tt>WEB-INF/classes</tt> |
| 1195 |
(server-side), in your main application JAR file client side. |
| 1196 |
</li> |
| 1197 |
<li>Edit this log4J properties file to your hearts content. Server |
| 1198 |
side, |
| 1199 |
setting up rolling logs with fancy html output is convenient, though |
| 1200 |
once you |
| 1201 |
start clustering the back end servers that ceases to be as usuable. |
| 1202 |
Log4J power tools, |
| 1203 |
such as 'chainsaw', are the secret here. |
| 1204 |
</li> |
| 1205 |
</ol> |
| 1206 |
<h3>Log Categories</h3> |
| 1207 |
Axis classes that log information create their own per-class log, each |
| 1208 |
of which |
| 1209 |
may output information at different levels. For example, the main entry |
| 1210 |
point |
| 1211 |
servlet has a log called <tt>org.apache.axis.transport.http.AxisServlet</tt>, |
| 1212 |
the AxisEngine is <tt>org.apache.axis.AxisEngine</tt>, and so on. |
| 1213 |
There are |
| 1214 |
also special logs for special categories. |
| 1215 |
<p> |
| 1216 |
<table border="0"> |
| 1217 |
<tbody> |
| 1218 |
<tr> |
| 1219 |
<td valign="top"><tt>org.apache.axis.TIME</tt></td> |
| 1220 |
<td>A log that records the time to execute incoming messages, |
| 1221 |
splitting up into preamble, invoke, post and send times. These are only |
| 1222 |
logged at debug level. |
| 1223 |
</td> |
| 1224 |
</tr> |
| 1225 |
<tr> |
| 1226 |
<td valign="top"><tt>org.apache.axis.EXCEPTIONS</tt></td> |
| 1227 |
<td>Exceptions that are sent back over the wire. AxisFaults, |
| 1228 |
which are normally created in 'healthy' operation, are logged at debug |
| 1229 |
level. Other Exceptions are logged at the Info level, as they are more |
| 1230 |
indicative of server side trouble. |
| 1231 |
</td> |
| 1232 |
</tr> |
| 1233 |
<tr> |
| 1234 |
<td valign="top"><tt>org.apache.axis.enterprise</tt></td> |
| 1235 |
<td>''Enterprise'' level stuff, which generally means stuff that |
| 1236 |
an enterprise product might want to track, but in a simple environment |
| 1237 |
(like the Axis build) would be nothing more than a nuisance. </td> |
| 1238 |
</tr> |
| 1239 |
</tbody> |
| 1240 |
</table> |
| 1241 |
<a name="axis_components"> |
| 1242 |
</a></p> |
| 1243 |
<h2><a name="axis_components">Pre-Configured Axis Components Reference</a></h2> |
| 1244 |
<h3><a name="axis_components">On the server:</a></h3> |
| 1245 |
<dl> |
| 1246 |
<dt><a name="axis_components"><b>SimpleSessionHandler</b> </a></dt> |
| 1247 |
<dd><a name="axis_components">uses SOAP headers to do simple session |
| 1248 |
management </a></dd> |
| 1249 |
<dt><a name="axis_components"> </a></dt> |
| 1250 |
<dt><a name="axis_components"><b>LogHandler</b> </a></dt> |
| 1251 |
<dd><a name="axis_components">The LogHandler will simply log a |
| 1252 |
message to a logger when it gets invoked. </a></dd> |
| 1253 |
<dt><a name="axis_components"> </a></dt> |
| 1254 |
<dt><a name="axis_components"><b>SoapMonitorHandler</b> </a></dt> |
| 1255 |
<dd><a name="axis_components">Provides the hook into the message |
| 1256 |
pipeline sending the SOAP request and response messages to the |
| 1257 |
SoapMonitor utility. </a></dd> |
| 1258 |
<dt><a name="axis_components"> </a></dt> |
| 1259 |
<dt><a name="axis_components"><b>DebugHandler</b> </a></dt> |
| 1260 |
<dd><a name="axis_components">Example handler that demonstrates |
| 1261 |
dynamically setting the debug level based on a the value of a soap |
| 1262 |
header element. </a></dd> |
| 1263 |
<dt><a name="axis_components"> </a></dt> |
| 1264 |
<dt><a name="axis_components"> </a></dt> |
| 1265 |
<dt><a name="axis_components"><b>ErrorHandler</b> </a></dt> |
| 1266 |
<dd><a name="axis_components">Example handler that throws an |
| 1267 |
AxisFault to stop request/response flow processing. </a></dd> |
| 1268 |
<dt><a name="axis_components"> </a></dt> |
| 1269 |
<dt><a name="axis_components"> </a></dt> |
| 1270 |
<dt><a name="axis_components"><b>EchoHandler</b> </a></dt> |
| 1271 |
<dd><a name="axis_components">The EchoHandler copies the request |
| 1272 |
message into the response message. </a></dd> |
| 1273 |
<dt><a name="axis_components"> </a></dt> |
| 1274 |
<dt><a name="axis_components"><b>HTTPAuth</b> </a></dt> |
| 1275 |
<dd><a name="axis_components">The HTTPAuthHandler takes HTTP-specific |
| 1276 |
authentication information (right now, just Basic authentication) and |
| 1277 |
turns it into generic MessageContext properties for username and |
| 1278 |
password </a></dd> |
| 1279 |
<dt><a name="axis_components"><b>SimpleAuthenticationHandler</b> </a></dt> |
| 1280 |
<dd><a name="axis_components">The SimpleAuthentication handler passes |
| 1281 |
a MessageContext to a SecurityProvider (see org.apache.axis.security) |
| 1282 |
to authenticate the user using whatever information the |
| 1283 |
SecurityProvider wants (right now, just the username and password). </a></dd> |
| 1284 |
<dt><a name="axis_components"><b>SimpleAuthorizationHandler</b> </a></dt> |
| 1285 |
<dd><a name="axis_components">This handler, typically deployed |
| 1286 |
alongside the SimpleAuthenticationHandler (a chain called "authChecks" |
| 1287 |
is predefined for just this combination), checks to make sure that the |
| 1288 |
currently authenticated user satisfies one of the allowed roles for the |
| 1289 |
target service. Throws a Fault if access is denied. </a></dd> |
| 1290 |
<dt><a name="axis_components"> </a></dt> |
| 1291 |
<dt><a name="axis_components"><b>MD5AttachHandler</b> </a></dt> |
| 1292 |
<dd><a name="axis_components">Undocumented, uncalled, untested |
| 1293 |
handler that generates an MD5 hash of attachment information and adds |
| 1294 |
the value as an attribute in the soap body. </a></dd> |
| 1295 |
<dt><a name="axis_components"> </a></dt> |
| 1296 |
<dt><a name="axis_components"><b>URLMapper</b> </a></dt> |
| 1297 |
<dd><a name="axis_components">The URLMapper, an HTTP-specific |
| 1298 |
handler, usually goes on HTTP transport chains (it is deployed by |
| 1299 |
default). It serves to do service dispatch based on URL - for instance, |
| 1300 |
this is the Handler which allows URLs like |
| 1301 |
http://localhost:8080/axis/services/MyService?wsdl to work. </a></dd> |
| 1302 |
<dt><a name="axis_components"> </a></dt> |
| 1303 |
<dt><a name="axis_components"><b>RPCProvider</b> </a></dt> |
| 1304 |
<dd><a name="axis_components">The RPCProvider is the pivot point for |
| 1305 |
all RPC services. It accepts the following options: <br> |
| 1306 |
<b><i>className</i></b> = the class of the backend object to invoke<br> |
| 1307 |
<b><i>methodName</i></b> = a space-separated list of methods which |
| 1308 |
are exported as web services. The special value "*" matches all public |
| 1309 |
methods in the class. </a></dd> |
| 1310 |
<dt><a name="axis_components"> </a></dt> |
| 1311 |
<dt><a name="axis_components"><b>MsgProvider</b> </a></dt> |
| 1312 |
<dd><a name="axis_components">The MsgProvider is the pivot point for |
| 1313 |
all messaging services. It accepts the following options: <br> |
| 1314 |
</a></dd> |
| 1315 |
<dd><a name="axis_components"><b><i>className</i></b> = the class of |
| 1316 |
the backend object to invoke<br> |
| 1317 |
<b><i>methodName</i></b> = a space-separated list of methods which |
| 1318 |
are exported as web services. The special value "*" matches all public |
| 1319 |
methods in the class. </a></dd> |
| 1320 |
<dt><a name="axis_components"> </a></dt> |
| 1321 |
<dt><a name="axis_components"><b>JWSHandler</b> </a></dt> |
| 1322 |
<dd><a name="axis_components">Performs drop-in deployment magic. </a></dd> |
| 1323 |
<dt><a name="axis_components"> </a></dt> |
| 1324 |
<dt><a name="axis_components"><b>JAXRPCHandler</b> </a></dt> |
| 1325 |
<dd><a name="axis_components">Wrapper around JAX-RPC compliant |
| 1326 |
handlers that exposes an Axis handler interface to the engine. </a></dd> |
| 1327 |
<dt><a name="axis_components"> </a></dt> |
| 1328 |
<dt><a name="axis_components"><b>LocalResponder</b> </a></dt> |
| 1329 |
<dd><a name="axis_components">The LocalResponder is a Handler whose |
| 1330 |
job in life is to serialize the response message coming back from a |
| 1331 |
local invocation into a String. It is by default on the server's local |
| 1332 |
transport response chain, and it ensures that serializing the message |
| 1333 |
into String form happens in the context of the server's type mappings. |
| 1334 |
</a></dd> |
| 1335 |
</dl> |
| 1336 |
<h3><a name="axis_components">On the client:</a></h3> |
| 1337 |
<dl> |
| 1338 |
<dt><a name="axis_components"><b>SimpleSessionHandler</b> </a></dt> |
| 1339 |
<dd><a name="axis_components">uses SOAP headers to do simple session |
| 1340 |
management </a></dd> |
| 1341 |
<dt><a name="axis_components"> </a></dt> |
| 1342 |
<dt><a name="axis_components"><b>JAXRPCHandler</b> </a></dt> |
| 1343 |
<dd><a name="axis_components">Wrapper around JAX-RPC compliant |
| 1344 |
handlers that exposes an Axis handler interface to the engine. </a></dd> |
| 1345 |
<dt><a name="axis_components"> </a></dt> |
| 1346 |
<dt><a name="axis_components"><b>HTTPSender</b> </a></dt> |
| 1347 |
<dd><a name="axis_components">A Handler which sends the request |
| 1348 |
message to a remote server via HTTP, and collects the response message. |
| 1349 |
</a></dd> |
| 1350 |
<dt><a name="axis_components"> </a></dt> |
| 1351 |
<dt><a name="axis_components"><b>LocalSender</b> </a></dt> |
| 1352 |
<dd><a name="axis_components">A Handler which sends the request |
| 1353 |
message to a "local" AxisServer, which will process it and return a |
| 1354 |
response message. This is extremely useful for testing, and is by |
| 1355 |
default mapped to the "local:" transport. So, for instance, you can |
| 1356 |
test the AdminClient by doing something like this:<br> |
| 1357 |
</a> |
| 1358 |
<pre><a name="axis_components">% java org.apache.axis.client.AdminClient -llocal:// list</a></pre> |
| 1359 |
<a name="axis_components"> </a></dd> |
| 1360 |
<dt><br> |
| 1361 |
</dt> |
| 1362 |
</dl> |
| 1363 |
</body> |
| 1364 |
</html> |