Axis 2: compiling the examples, ant build scripts?

Discussion in 'Java' started by bruce_phipps@my-deja.com, Jul 26, 2006.

  1. Guest

    Axis 2 newbie.
    I have downloaded and installed Axis2 in my Tomcat container ok.

    Now I want to code some simple web services as outlined in the Axis2
    User Guide.
    But the sample source included files in
    \axis2-std-1.0-bin
    don't seem to include ant build scripts...just some build scripts for
    running the test classes as far as I can see...

    -----
    <project name="samples" default="alltests">
    <property name="mainDir" value="../.."/>
    <path id="axis.classpath">
    <fileset dir="../../lib">
    <include name="*.jar"/>
    </fileset>
    <pathelement location="./sample.jar"/>
    </path>
    <path id="sample.classpath">
    <path refid="axis.classpath"/>
    </path>

    <target name="alltests"

    depends="testEchoBlockingClient,testEchoBlockingDualClient,testEchoNonBlockingDualClient,testPingClient,testWebServiceWithModuleClient">
    </target>

    <target name="testEchoBlockingClient">
    <java classname="userguide.clients.EchoBlockingClient"
    classpathref="axis.classpath" fork="true">
    <jvmarg value="-Daxis2.repo=${mainDir}"/>
    </java>
    </target>
    <target name="testEchoBlockingDualClient">
    <java classname="userguide.clients.EchoBlockingDualClient"
    classpathref="axis.classpath" fork="true">
    <jvmarg value="-Daxis2.repo=${mainDir}"/>
    </java>
    </target>
    <target name="testEchoNonBlockingDualClient">
    <java classname="userguide.clients.EchoNonBlockingDualClient"
    classpathref="axis.classpath" fork="true">
    <jvmarg value="-Daxis2.repo=${mainDir}"/>
    </java>
    </target>
    <target name="testPingClient">
    <java classname="userguide.clients.PingClient"
    classpathref="axis.classpath" fork="true">
    <jvmarg value="-Daxis2.repo=${mainDir}"/>
    </java>
    </target>
    <target name="testWebServiceWithModuleClient">
    <java
    classname="userguide.clients.ClientForWebServiceWithModule"
    classpathref="axis.classpath" fork="true">
    <jvmarg value="-Daxis2.repo=${mainDir}"/>
    </java>
    </target>

    <target name="testEchoNonBlockingClient">
    <java classname="userguide.clients.EchoNonBlockingClient"
    classpathref="axis.classpath" fork="true">
    <jvmarg value="-Daxis2.repo=${mainDir}"/>
    </java>
    </target>
    </project>
    ----
    Is it just a matter of me including \axis2-std-1.0-bin\lib in my
    classpath if I want to compile using axis classes?

    Thanks
    Bruce
    , Jul 26, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joey Vendetta
    Replies:
    0
    Views:
    3,430
    Joey Vendetta
    Apr 1, 2004
  2. illusions

    Debugging ANT build scripts

    illusions, Dec 16, 2004, in forum: Java
    Replies:
    4
    Views:
    11,285
    Bill Joy
    Dec 18, 2004
  3. Replies:
    0
    Views:
    898
  4. david wolf
    Replies:
    3
    Views:
    7,712
    soalib
    Apr 18, 2009
  5. Axel Bock
    Replies:
    1
    Views:
    2,173
    Thomas Fritsch
    May 10, 2006
Loading...

Share This Page