Debian Codegraph @

docs/architecture-guide.html

raw
1 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5 <title>Axis Architecture Guide</title>
6 <link href="axis.css" rel=stylesheet type=text/css>
7 </head>
8 <body>
9
10 <center>
11 <h1>
12 <img SRC="images/axis.jpg" height=96 width=176></h1></center>
13
14 <h1>
15 Axis Architecture Guide</h1>
16 <br><i>1.2 Version</i>
17 <br><i>Feedback: <a href="mailto:[email protected]">[email protected]</a></i>
18 <h3>
19 Contents</h3>
20 <a href="#Introduction">Introduction</a>
21 <br><a href="#Overview">Architecture Overview</a>
22 <br><a href="#Subsystems">Subsystems</a>
23 <br><a href="#Message Flow">Message Flow Subsystem</a>
24 <br>&nbsp;&nbsp;&nbsp; <a href="#Handlers">Handlers and Chains</a>
25 <br>&nbsp;&nbsp;&nbsp; <a href="#Message Contexts">Message Contexts</a>
26 <br>&nbsp;&nbsp;&nbsp; <a href="#Engine">Engine</a>
27 <br><a href="#Administration Subsystem">Administration Subsystem</a>
28 <br><a href="#Message Model Subsystem">Message Model Subsystem</a>
29 <br>&nbsp;&nbsp;&nbsp; <a href="#SOAP message model">SOAP Message Model</a>
30 <br>&nbsp;&nbsp;&nbsp; <a href="#Message elements">Message Elements</a>
31 <br>&nbsp;&nbsp;&nbsp; <a href="#D13n">Deserialization</a>
32 <br><a href="#Encoding Subsystem">Encoding Subsystem</a>
33 <br><a href="#WSDL Subsystem">WSDL Tools Subsystem</a>
34 <br>&nbsp;&nbsp;&nbsp; <a href="#WSDL2Java">WSDL2Java</a>
35 <br><a href="#Sequence Diagrams">Interaction Diagrams</a>
36 <br>&nbsp;&nbsp;&nbsp; <a href="#Client Interaction">Client Side Processing</a>
37 <br><a href="#Pluggable-Component Discovery">Pluggable-Component Discovery</a>
38 <br><a href="#Open Issues">Open Issues</a>
39 <h2>
40 <a NAME="Introduction"></a>Introduction</h2>
41 This guide records some of the rationale of the architecture and design
42 of Axis.
43 <h2>
44 <a NAME="Overview"></a>Architectural Overview</h2>
45 Axis consists of several subsystems working together, as we shall see later.
46 In this section we'll give you an overview of how the core of Axis works.
47 <h3>
48 Handlers and the Message Path in Axis</h3>
49 Put simply, Axis is all about processing Messages. When the central Axis
50 processing logic runs, a series of <b>Handlers</b> are each invoked in
51 order. The particular order is determined by two factors - deployment configuration
52 and whether the engine is a client or a server. The object which is passed
53 to each Handler invocation is a <b>MessageContext</b>. A MessageContext
54 is a structure which contains several important parts: 1) a "request" message,
55 2) a "response" message, and 3) a bag of properties. More on this in a
56 bit.
57 <p>There are two basic ways in which Axis is invoked:
58 <ol>
59 <li>
60 As a <b>server</b>, a <b>Transport Listener</b> will create a MessageContext
61 and invoke the Axis processing framework.</li>
62
63 <li>
64 As a <b>client</b>, application code (usually aided by the client programming
65 model of Axis) will generate a MessageContext and invoke the Axis processing
66 framework.</li>
67 </ol>
68 <p>
69 In either case, the Axis framework's job is simply to pass the resulting
70 MessageContext through the configured set of Handlers, each of which has
71 an opportunity to do whatever it is designed to do with the MessageContext.
72 <h3>
73 Message Path on the Server</h3>
74 The server side message path is shown in the following diagram. The small
75 cylinders represent Handlers and the larger, enclosing cylinders represent
76 <b>Chains</b> (ordered collections of Handlers which will be described
77 shortly).
78 <br><img SRC="images/ServerMessagePath.jpg" VSPACE=30 height=282 width=602>
79 <br>A message arrives (in some protocol-specific manner) at a Transport
80 Listener. In this case, let's assume the Listener is a HTTP servlet. It's
81 the Listener's job to package the protocol-specific data into a <b>Message</b>
82 object (org.apache.axis.Message), and put the Message into a <b>MessageContext</b>.
83 The MessageContext is also loaded with various <b>properties</b> by the
84 Listener -&nbsp; in this example the property "http.SOAPAction" would be
85 set to the value of the SOAPAction HTTP header. The Transport Listener
86 also sets the <b>transportName</b> String on the MessageContext , in this
87 case to "http". Once the MessageContext is ready to go, the Listener hands
88 it to the AxisEngine.
89 <p>The AxisEngine's first job is to look up the transport by name. The
90 transport is an object which contains a <b>request</b> Chain, a <b>response</b>
91 Chain, or perhaps both. A <b>Chain</b> is a Handler consisting of a sequence
92 of Handlers which are invoked in turn -- more on Chains later. If a transport
93 request Chain exists, it will be invoked, passing the MessageContext into
94 the invoke() method. This will result in calling all the Handlers specified
95 in the request Chain configuration.
96 <p>After the transport request Handler, the engine locates a global request
97 Chain, if configured, and
98 then invokes any Handlers specified therein.
99 <p>At some point during the processing up until now, some Handler has hopefully
100 set the <b>serviceHandler</b> field of the MessageContext (this is usually
101 done in the HTTP transport by the "URLMapper" Handler, which maps a URL
102 like "http://localhost/axis/services/AdminService" to the "AdminService"
103 service). This field determines the Handler we'll invoke to execute service-specific
104 functionality, such as making an RPC call on a back-end object. Services
105 in Axis are typically instances of the "SOAPService" class (org.apache.axis.handlers.soap.SOAPService),
106 which may contain <b>request</b> and <b>response</b> Chains (similar to
107 what we saw at the transport and global levels), and must contain a <b>provider</b>,
108 which is simply a Handler responsible for implementing the actual back
109 end logic of the service.
110 <p>For RPC-style requests, the provider is the org.apache.axis.providers.java.RPCProvider
111 class. This is just another Handler that, when invoked, attempts to call
112 a backend Java object whose class is determined by the "className" parameter
113 specified at deployment time. It uses the SOAP RPC convention for determining
114 the method to call, and makes sure the types of the incoming XML-encoded
115 arguments match the types of the required parameters of the resulting method.
116 <h3>
117 The Message Path on the Client</h3>
118 The Message Path on the client side is similar to that on the server side,
119 except the order of scoping is reversed, as shown below.
120 <br><img SRC="images/ClientMessagePath.jpg" VSPACE=30 height=281 width=592>
121 <br>The <b>service</b> Handler, if any, is called first - on the client
122 side, there is no "provider" since the service is being provided by a remote
123 node, but there is still the possibility of request and response Chains.
124 The service request and response Chains perform any service-specific
125 processing of the request message on its way out of the system, and also
126 of the response message on its way back to the caller.
127 <p>After the service request Chain, the global request Chain, if any, is
128 invoked, followed by the transport. The <b>Transport Sender</b>, a special
129 Handler whose job it is to actually perform whatever protocol-specific
130 operations are necessary to get the message to and from the target SOAP
131 server, is invoked to send the message. The response (if any) is placed
132 into the responseMessage field of the MessageContext, and the MessageContext
133 then propagates through the response Chains - first the transport, then
134 the global, and finally the service.
135 <h2>
136 <a NAME="Subsystems"></a>Subsystems</h2>
137 Axis comprises several subsystems working together with the aim of separating
138 responsibilities cleanly and making Axis modular. Subsystems which are
139 properly layered enable parts of a system to be used without having to
140 use the whole of it (or hack the code).
141 <p>The following diagram shows the layering of subsystems. The lower layers
142 are independent of the higher layers. The 'stacked' boxes represent mutually
143 independent, although not necessary mutually exclusive, alternatives. For
144 example, the HTTP, SMTP, and JMS transports are independent of each other but
145 may be used together.
146 <p><img SRC="images/subsystems.jpg">
147 <p>
148 In fact, the Axis source code is not as cleanly separated into subsystems
149 as the above diagram might imply. Some subsystems are spread over
150 several packages and some packages overlap more than one subsystem.
151 Proposals to improve the code structure and make it
152 conform more accurately to the notional Axis subsystems will be considered
153 when we get a chance.
154
155 <h2>
156 <a NAME="Message Flow"></a>Message Flow Subsystem</h2>
157
158 <h3>
159 <a NAME="Handlers"></a>Handlers and Chains</h3>
160 Handlers are invoked in sequence to process messages. At some point in
161 the sequence a Handler may send a request and receive a response or else
162 process a request and produce a response. Such a Handler is known as the
163 <i>pivot
164 point</i> of the sequence. As described above, Handlers are either transport-specific,
165 service-specific, or global. The Handlers of each of these three different
166 kinds are combined together into Chains. So the overall sequence of Handlers
167 comprises three Chains: transport, global, and service. The following diagram
168 shows two sequences of handlers: the client-side sequence on the left and
169 the server-side sequence on the right.
170 <br><img SRC="images/pivots.jpg" height=240 width=403>
171 <p>A web service does not necessarily send a response message to each request
172 message, although many do. However, response Handlers are still useful
173 in the message path even when there isn't a response message, e.g. to stop
174 timers, clean up resources, etc.
175 <p>A Chain is a composite Handler, i.e. it aggregates a collection of Handlers
176 as well as implementing the Handler interface as shown in the following
177 UML diagram:
178 <br><img SRC="images/chainclasses.jpg">
179 <p>A Chain also has similarities to the Chain of Responsibility design pattern
180 in which a request flows along a sequence of Handlers until it is processed.
181 Although an Axis Chain may process a request in stages over a succession of
182 Handlers, it has the same advantages as Chain of Responsibility:
183 flexibility and the ease with which new function can be added.
184 <p>Back to message processing -- a message is processed by passing through
185 the appropriate Chains. A message context is used to pass the message and
186 associated environment through the sequence of Handlers. The model is that
187 Axis Chains are constructed offline by having Handlers added to them one
188 at a time. Then they are turned online and message contexts start to flow
189 through the Chains. Multiple message contexts may flow through a single
190 Chain concurrently. Handlers are never added to a Chain once it goes online.
191 If a Handler needs to be added or removed, the Chain must be 'cloned',
192 the modifications made to the clone, and then the clone made online and
193 the old Chain retired when it is no longer in use. Message contexts that
194 were using the old Chain continue to use it until they are finished. This
195 means that Chains do not need to cope with the addition and removal of
196 Handlers while the Chains are processing message contexts -- an important
197 simplification.
198 <p>The deployment registry has factories for Handlers and Chains. Handlers
199 and Chains can be defined to have 'per-access', 'per-request', or 'singleton'
200 scope although the registry currently only distinguishes between these
201 by constructing non-singleton scope objects when requested and constructing
202 singleton scope objects once and holding on to them for use on subsequent
203 creation requests.
204 <h4>
205 Targeted Chains</h4>
206 A <b>Targeted Chain</b> is a special kind of chain which may have any or
207 all of: a request Handler, a pivot Handler, and a response Handler. The
208 following class diagram shows how Targeted Chains relate to Chains. Note
209 that a Targeted Chain is an aggregation of Handlers by virtue of extending
210 the Chain interface which is an aggregation of Handlers.
211 <p><img SRC="images/targetedchainclasses.jpg">
212 <p>A service is a special kind of Targeted Chain in which the pivot Handler
213 is known as a "provider".
214 <h4>
215 Fault Processing</h4>
216 Now let's consider what happens when a fault occurs. The Handlers prior
217 to the Handler that raised the fault are driven, in reverse order, for
218 onFault (previously misnamed 'undo'). The scope of this backwards scan
219 is interesting: all Handlers previously invoked for the current Message
220 Context are driven.
221 <p><i>Need to explain how "FaultableHandlers" and "WSDD Fault Flows" fit
222 in.</i>
223 <h3>
224 <a NAME="Message Contexts"></a>Message Contexts</h3>
225 The current structure of a MessageContext is shown below. Each message
226 context may be associated with a request Message and/or a response Message.
227 Each Message has a SOAPPart and an Attachments object, both of which implement
228 the Part interface.
229 <br><img SRC="images/messagecontext.jpg">
230 <br>The typing of Message Contexts needs to be carefully considered in
231 relation to the Axis architecture. Since a Message Context appears on the
232 Handler interface, it should not be tied to or biassed in favour of&nbsp;
233 SOAP. The current implementation is marginally biassed towards SOAP in
234 that the setServiceHandler method narrows the specified Handler to a SOAPService.
235
236 <h3>
237 <a NAME="Engine"></a>Engine</h3>
238 Axis has an abstract AxisEngine class with two concrete subclasses: AxisClient
239 drives the client side handler chains and AxisServer drives the server
240 side handler chains. The relationships between these classes is fairly
241 simple:
242 <br><img SRC="images/engineclasses.jpg">
243 <h4>Engine Configuration</h3>
244 The EngineConfiguration interface is the means of configuring the Handler
245 factories and global options of an engine instance. An instance of a
246 concrete implementation of EngineConfiguration must be passed to the engine
247 when it is created and the engine must be notified if the EngineConfiguration
248 contents are modified. The engine keeps a reference to the EngineConfiguration
249 and then uses it to obtain Handler factories and global options.
250 <p>
251 The EngineConfiguration interface belongs to the Message Flow subsystem
252 which means that the Message Flow subsystem does not depend on the
253 Administration subsystem.
254 <h2>
255 <a NAME="Administration Subsystem"></a>Administration Subsystem</h2>
256 The Administration subsystem provides a way of configuring Axis engines.
257 The configuration information an engine needs is a collection of factories for
258 runtime artefacts such as Chains and SOAPServices and a set of global
259 configuration options for the engine.
260 <p>
261 The Message Flow subsystem's EngineConfiguration interface
262 is implemented by the Administration subsystem. FileProvider enables
263 an engine to be configured statically from a file containing a
264 deployment descriptor which is understood by the WSDDDeployment class.
265 SimpleProvider, on the other hand, enables an engine to be configured
266 dynamically.
267 <br><img SRC="images/engineconfig.jpg">
268 <h3>
269 WSDD-Based Administration</h3>
270 WSDD is an XML grammer for deployment descriptors which are used to
271 statically configure Axis engines.
272 Each Handler needs configuration in terms of the concrete class name
273 of a factory for the Handler, a set of options for the handler, and
274 a lifecycle scope value which determines the scope of sharing of
275 instances of the Handler.
276 <p>
277 The structure of the WSDD grammar is mirrored by a class hierarchy of factories
278 for runtime artefacts.
279 The following diagram shows the classes and the types of runtime
280 artefacts they produce (a dotted arrow means "instantiates").
281 <br><img SRC="images/wsddclasses.jpg">
282 <h2><a NAME="Message Model Subsystem"></a>Message Model Subsystem</h2>
283 <h3><a name="SOAP message model"></a>SOAP Message Model</h3>
284 The XML syntax of a SOAP message is fairly simple.
285 A SOAP message consists of an <i>envelope</i> containing:
286 <ul>
287 <li>an optional <i>header</i> containing zero or more <i>header entries</i>
288 (sometimes ambiguously referred to as <i>headers</i>),</li>
289 <li>a <i>body</i> containing zero or more <i>body entries</i>, and</li>
290 <li>zero or more additional, non-standard elements.</li>
291 </ul>
292 The only body entry defined by SOAP is a <i>SOAP fault</i> which is
293 used for reporting errors.
294 <p>
295 Some of the XML elements of a SOAP message define namespaces, each in terms
296 of a URI and a local name, and encoding styles, a standard one of which
297 is defined by SOAP.
298 <p>
299 Header entries may be tagged with the following optional SOAP attributes:
300 <ul>
301 <li><i>actor</i> which specifies the intended recipient of the header
302 entry in terms of a URI, and</li>
303 <li><i>mustUnderstand</i> which specifies whether or not the intended
304 recipient of the header entry is required to process the header
305 entry.</li>
306 </ul>
307 <p>
308 So the SOAP message model looks like this:
309 <br><img SRC="images/soapmessagemodel.jpg">
310
311 <h3><a name="Message elements"></a>Message Elements</h3>
312 The classes which represent SOAP messages form a class hierarchy based on
313 the MessageElement class which takes care of namespaces and encodings.
314 The SOAPHeaderElement class looks after the actor and mustUnderstand
315 attributes.
316 <br><img SRC="images/messagemodelclasses.jpg">
317
318 During deserialization, a parse tree is constructed consisting of instances
319 of the above classes in parent-child relationships as shown below.
320 <br><img SRC="images/messagetree.jpg">
321 <h3><a name="D13n"></a>Deserialization</h3>
322 The class mainly responsible for XML parsing, i.e. deserialization, is DeserializationContext
323 ('DC'). DC manages the construction of the parse tree and maintains a stack of
324 SAX handlers, a reference to the MessageElement that is currently being deserialized,
325 a stack of namespace mappings, a mapping from IDs to elements, a set of type mappings
326 for deserialization (see <a href="#Encoding Subsystem">Encoding Subsystem</a>)
327 and a SAX event recorder.
328 <p>Elements that we scan over, or ones for which we don't have a particular
329 deserializer, are recorded - in other words, the SAX events are placed into
330 a queue which may be 'played back' at a later time to any SAX ContentHandler.
331 <p>Once a SOAPEnvelope has been built, either through a parse or manual
332 construction by the user, it may be output using a SerializationContext (also
333 see <a href="#Encoding Subsystem">Encoding Subsystem</a>).
334 MessageElements all have an output() method which lets them write out their
335 contents.
336 <p>The SAX handlers form a class hierarchy:
337 <br><img SRC="images/SAXHandlerClasses.jpg">
338 <p>and stack up as shown in the following diagram:
339 <br><img SRC="images/SAXhandlers.jpg">
340 <p>Initially, the SAX handler stack just contains an instance of
341 EnvelopeHandler which represents the fact that parsing of the SOAP envelope
342 has not yet started.
343 The EnvelopeHandler is constructed with a reference to an EnvelopeBuilder,
344 which is the SAX handler responsible for parsing the SOAP envelope.
345 <p>During parsing, DC receives the events from the SAX parser and notifies either
346 the SAX handler on the top of its handler stack, the SAX event recorder, or
347 both.
348 <p>On the start of an element, DC calls the SAX handler on the top of its handler
349 stack for onStartChild. This method returns a SAX handler to be used to parse
350 the child, which DC pushes on its SAX handler stack and calls for startElement.
351 startElement, amongst other things, typically creates a new MessageElement of
352 the appropriate class and calls DC for pushNewElement. The latter action creates
353 the parent-child relationships of the parse tree.
354 <p>On the end of an element, DC pops the top SAX handler from its handler stack
355 and calls it for endElement. It then drives SAX handler which is now on the
356 top of the handler stack for onEndChild. Finally, it sets the MessageElement
357 that is currently being deserialized to the parent of the current one.
358 <p>Elements which are not defined by SOAP are treated using a SOAPHandler
359 as a SAX event handler and a MessageElement as a node in the parse tree.
360 <h2><a NAME="Encoding Subsystem"></a>Encoding Subsystem</h2>
361 Encoding is most easily understood from the bottom up. The basic
362 requirement is to transform between values of programming language
363 datatypes and their XML representations. In Axis, this means
364 encoding (or 'serializing') Java objects and primitives into XML
365 and decoding (or 'deserializing') XML into Java objects and primitives.
366 The basic classes that implement these steps are <i>serializers</i>
367 and <i>deserializers</i>.
368 <br><img SRC="images/serclasses.jpg">
369 <p>
370 Particular serializers and deserializers are written to support
371 a specific XML processing mechanism such as DOM or SAX.
372 So <i>serializer factories</i> and <i>deserializer factories</i>
373 are introduced to construct serializers and deserializers
374 for a XML processing mechanism which is specified
375 as a parameter.
376 <br><img SRC="images/serfactoryclasses.jpg">
377 <p>
378 As is apparent from the above class diagrams, each pair of Java
379 type and XML data type which needs encoding
380 and decoding requires specific serializers and
381 deserializers (actually one of each per XML processing mechanism).
382 So we need to maintain a mapping from a pair of Java type and XML data
383 type, identified by a QName, to a serializer factory and a
384 deserializer factory.
385 Such a mapping is known as a <i>type mapping</i>.
386 The type mapping class hierarchy is shown below. Notice how
387 the default type mapping instantiates the various serializer and
388 deserialiser factories.
389 <br><img SRC="images/typemappingclasses.jpg">
390 <p>
391 There is one final level of indirection. How do we know
392 which type mapping to use for a particular message?
393 This is determined by the encoding which is specified in
394 the message. A <i>type mapping registry</i> maintains
395 a map from encoding name (URI) to type mapping.
396 Note that the XML data type QNames are defined by the encoding.
397 <br><img SRC="images/typemappingclasses.jpg">
398 <p>
399 So, in summary, to encode a Java object or primitive data value
400 to a XML datatype or to decode the latter to the former,
401 we need to know:
402 <ul>
403 <li>the Java type we are dealing with,</li>
404 <li>the QName of the XML data type we want to encode it as,</li>
405 <li>the XML processing mechanism we are using, and</li>
406 <li>the encoding name.</li>
407 <eul>
408
409 <h2>
410 <a NAME="WSDL Subsystem"></a>WSDL Tools Subsystem</h2>
411 The WSDL Tools subsystem contains WSDL2Java and Java2WSDL. The
412 Axis runtime does not depend on these tools -- they are just there
413 to make life easier for the user.
414
415 <a name="WSDL2Java"></a><h3>WSDL2Java</h3>
416 This tool takes a description of a web service written in WSDL
417 and emits Java artefacts used to access the web service.
418 <p>
419 There are three layers inside the tool:
420 <ul>
421 <li>framework: SymbolTable, Emitter, WriterFactory</li>
422 <li>WSDL2Java plugin to the framework: WSDL2Java (the main),
423 JavaWriterFactory, and all the WSDL-relative writers: JavaPortTypeWriter,
424 JavaBindingWriter, etc.</li>
425 <li>The actual WSDL2Java emitters, one for each file generated:
426 JavaInterfaceWriter, JavaStubWriter, etc.</li>
427 </ul>
428
429 <a name="Java2WSDL"></a><h3>Java2WSDL</h3>
430 tbd.
431
432 <h2>
433 <a NAME="Sequence Diagrams"></a>Interaction Diagrams</h2>
434
435 <h3>
436 <a NAME="Client Interaction"></a>Client Side Processing</h3>
437 The client side Axis processing constructs a Call object with associated
438 Service, MessageContext, and request Message as shown below before invoking
439 the AxisClient engine.
440 <p><img SRC="images/clientobjects.jpg" height=120 width=349>
441 <br>An instance of&nbsp; Service and its related AxisClient instance are
442 created before the Call object. The Call object is then created by invoking
443 the Service.createCall <i>factory method</i>. Call.setOperation creates
444 a Transport instance, if a suitable one is not already associated with
445 the Call instance. Then Call.invoke creates a MessageContext and associated
446 request Message, drives AxisClient.invoke, and processes the resultant
447 MessageContext. This significant method calls in this sequence are shown
448 in the following interaction diagram.
449 <br><img SRC="images/clientinteraction.jpg" height=503 width=731>
450
451 <h2>
452 <a NAME="Pluggable-Component Discovery"></a>Pluggable-Component Discovery</h2>
453 <p>
454 While most pluggable components infrastructures (jaxp/xerces, commons-logging, etc)
455 provide discovery features, it is foreseen that there are situations where
456 these may evolve over time.
457 For example, as leading-edge technologies are
458 reworked and adopted as standards,
459 discovery mechanisms are likely to change.
460 <p>
461 Therefore,
462 component discovery must be relegated to a <b>single</b>
463 point of control within AXIS,
464 typically an AXIS-specific factory method.
465 These factory methods should conform to current standards,
466 when available.
467 As technologies evolve and/or are standardized, the factory methods
468 should be kept up-to-date with appropriate discovery mechanisms.
469
470 <h2>
471 <a NAME="Open Issues"></a>Open Issues</h2>
472
473 <ol>
474 <li>
475 The relationship between the Axis subsystems needs to be documented
476 and somewhat cleaned up as there is leakage of responsibilities between
477 some of the subsystems. For example,
478 there is some SOAP and HTTP bias in the basic MessageContext
479 type and associated classes.</li>
480
481 <li>
482 What classes are included in the "encoding" subsystem?
483 Are the encoding and message model subsystems independent of the other subsystems which depend on
484 "message flow"?</li>
485
486 <li>
487 (Possibly related to the previous issue) How should we distribute the classes
488 in the above diagram between the Axis subsystems taking into account&nbsp;
489 SOAP-specific and HTTP-specific features?</li>
490
491 <li>
492 The Axis Engine currently knows about three layers of handlers: transport,
493 global, and service. However, architecturally, this is rather odd. What
494 "law" of web services ensures that there will always and only ever be <i>three</i>
495 layers? It would be more natural to use Targeted Chains with their more
496 primitive notion of request, pivot, and response Handlers. We would then
497 implemented the Axis Engine as a Targeted Chain whose pivot Handler is
498 itself a Targeted Chain with global request and response Handlers and a
499 service pivot Handler (which is itself a Targeted Chain as we have just
500 described). Such an Axis Engine architecture is shown in the diagram below.</li>
501
502 <br><img SRC="images/stcengine.jpg" height=312 width=667>
503 <li>
504 WSDDService.faultFlows is initialised to an empty Vector and there is no
505 way of adding a fault flow to it. Is this dead code or is something else
506 missing?</li>
507
508 <li>
509 If a fault occurs after the pivot Handler, should the backwards scan notify
510 Handlers which were invoked prior to the pivot Handler? The current implementation
511 does notify such Handlers. However, this is not consistent with the processing
512 of faults raised in a downstream system and stored in the message context
513 by the pivot Handler. These faults are passed through any response Handlers,
514 but do not cause onFault to be driven in the local engine.</li>
515
516 <br>&nbsp;
517 <p>&nbsp;
518 <br>&nbsp;
519 <br>&nbsp;
520 <p>We need to consider what's going on here. If you take a sequence of
521 Handlers and then introduce a distribution boundary into the sequence,
522 what effect should that have on the semantics of the sequence in terms
523 of its effects on message contexts? The following diagram shows a client-side
524 Handler sequence invoking a server-side Handler sequence. We need to consider
525 how the semantics of this combined sequence compares with the sequence
526 formed by omitting the transport-related Handlers.
527 <br><img SRC="images/pivots2.jpg" height=413 width=658>
528 </ol>
529
530 </body>
531 </html>