Giter Site home page Giter Site logo

axis2-gradle's Introduction

Axis2 Client and Server with Gradle

This project is a primitive example of Axis2 client and server generation via Gradle. It automates much of the tasks required to build and deploy from a provided WSDL file.

Preparing

Axis2

  1. Download and extract the Apache Axis2 binary distribution
  2. Assuming your version is 1.7.9, set the following environment variables:
    1. Append PATH with: /path/to/axis2-1.7.9/bin
    2. Set AXIS2_HOME to: /path/to/axis2-1.7.9

If you have your IDE open, you may have to restart it for Gradle to pick up the new environment.

Generation

Inside this project's root directory, run gradlew generate. This will invoke the code generation for both the client and server using ApproverService.wsdl. Then, edit server/generated/resources/services.xml and set ServiceClass to the full name of the implemented server class:

<serviceGroup>
    ...
        <parameter name="ServiceClass">com.axisapp.ApproverService</parameter>
    ...
</serviceGroup>

Note that every time you make a change in the WSDL file, you will have to re-generate the code via gradlew generate. This will revert all manual changes, such as the server class above, so make sure to apply it again.

Building

In the project's root directory, run gradlew jar. Once complete, you will find the client and server JARs in the following directories, respectively:

Deploying

  1. Download and extract the Apache Tomcat binary distribution
  2. Download the Apache Axis2 WAR distribution

You will now need to start a Tomcat server and deploy the Axis2 WAR to it, so it can host the server generated by this project.

If running IntelliJ, you can open this project and configure a Run/Debug Configuration for Tomcat Server > Local, selecting TomCat's home directory. Then, in the Deployment tab, you can select the Axis2 WAR you downloaded earlier. This way, once you click Run or Debug, Tomcat will automatically start, Axis2 will be deployed, and your browser will open the configuration page.

If not running IntelliJ, you will need to start Tomcat and deploy the Axis2 WAR manually.

Finally, deploy the server JAR to Axis2. Once that finishes, you can either run the client JAR or run the client via an IDE to see it interact with the server.

axis2-gradle's People

Contributors

virb3 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.