Calling Apache Axis Web Services

Once you've deployed your Web service, you'll use Java files to call it from your application. Axis provides a method to generate Java client source code, WSDL2JAVA.

To access an Apache Axis Web service
  1. From a command line run:
    java -cp %classpath%; 
    C:\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\axis.jar;
    C:\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\log4jcore.jar;
    C:\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\xerces.jar;
    C:\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\jaxrpc.jar;
    C:\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\saaj.jar;
    C:\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\
    Continued linecommons-logging.jar; C:\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\
    Continued linecommons-discovery.jar; C:\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\wsdl4j.jar; C:\jakarta-tomcat-4.1.12\webapps\axis\WEB-INF\lib\
    Continued linett-bytecode.jar;

    org.apache.axis.wsdl.WSDL2Java
    http://server_name:Tomcat_port/axis/services/task_name?wsdl

  2. The resulting Java files can be used to call the Axis Web service from your application.
Related Topics
Bullet Using Apache Axis Web Services
Bullet Deploying Apache Axis Web Services
Bullet How to Provide Tasks as Apache Axis Web Services
  Attachmate