Using Axis with Deployment Descriptors
We could use a deployment descriptor to deploy a service inside the axis webapp (where the JWS example ran) but just to do something a little more illustrative we'll put the deployment descriptor example in its own webapp. A webapp, for the uninitiated, is the basic Java web application unit, it has a directory structure that separates the classes and libraries into distinct locations from display elements. We can create a standalone SOAP service, in a standalone webapp, by putting our class in the classes directory and the libraries we depend on in the lib directory.

We begin by creating a stand-alone webapp file system hierarchy

hello/WEB-INF
    web.xml
    attachments/  
    classes/
        HelloServer.class
    lib/
        axis.jar
        jaxrpc.jar
        saaj.jar
        wsdl4j.jar
        commons-logging.jar
        log4j-1.2.4.jar
        tt-bytecode.jar
Slide 29 of 58 Contents
  1 |   2 |   3 |   4 |   5 |   6 |   7 |   8 |   9 | 10
11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20
21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30
31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40
41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50
51 | 52 | 53 | 54 | 55 | 56 | 57 | 58
www.arachna.com > Educational Resources > Tutorials > O'Reilly Open Source Conference (2002) > Exchanging Objects and Messages With SOAP

spidaman
© 2002-2009 Ian Kallen | Copyright Notice