General

  1. I see OMElements in all the signatures, in the stubs, Client API and in skeletons. Where is data binding?

    Axis2 supports databinding using XML-Beans from 0.9 release. For more information please read the user guide

  2. What is OMElement, What does it represents?

    OMElement is Axis2 representation of XML, it provide a tree model like DOM. If you are familiar with DOM or JDOM you can soon get familiarize with OM quickly. For more information read Axiom Tutorial

  3. Integration security tests fail with JDK 1.5

    You have to add Bouncy Castle as a JCE provider. Add the following entry to JDK_HOME/jre/lib/security/java.security file

    security.provider.7=org.bouncycastle.jce.provider.BouncyCastleProvider

    security.provider.# will have to be decided depending on the existing entries in the java.security file

Client API

  1. I want to do request response Messaging, Where should I look?

    Look at the ServiceClient class, for more information please read the user guide

  2. I want to do One Way Messaging, Where should I look?

    From Axis2 0.94 onwards, both request-response and one way messaging will be handled by ServiceClient.

  3. When I try to do a non blocking call with use Separate Listener true I get the error to do two Transport Channels the Addressing Modules must be engaged, Why is this?

    To do the two transport Channel invocation you need to engage the addressing module. You can enable it by un-commenting the entry in the axis2.xml file or Call.engageModule(QName). But addressing is enabled by default.

  4. What is Axis Repository?

    Repository stores the configuration of Axis2, the users should specify the repository folder starting the Axis Server (HTTP or TCP). In the case of tomcat it is the webapps/axis2/WEB-INF folder. Following picture shows a sample repository.

    Modules and services have a archive format defined and they are automatically picked up by Axis2 when they are copied to corresponding folders.

Maven

  1. I just installed maven and it gives an error when I was trying to run maven on Axis2 ......

    Axis2 requires itest plugin to run some of the tests. Better get it using following command.

  2. I have problems building with maven 1.1 ....

    It seems that maven 1.1 doesn't come bundled with the required artifact plugin. Run following to get it updated

  3. What are the frequently used maven commands ?
  4. Command
    Description
    maven
    download relevant jars, if not available and compile and run tests of the system.
    maven clean Clean all the stuff build so far, that are in the target folder. This will not clean the jar repository
    maven test
    run only the tests. Will do automatic compilation of changed sources as well. This will not run soap interop tests
    maven clean all-tests
    Clean up and run all off line and on line tests
    maven itest
    To run the online-mode tests for say the modules/integration Run "maven itest" from modules/integration
    maven test itest
    To run all tests for say the modules/integration Run "maven test itest" from modules/integration
    maven -g
    List down all the commands available with maven
    maven multiproject
    generate this site
    maven idea:multiproject
    generate IDEA .ipr, .iml and .iws project files
    maven -Dmaven.test.skip=true
    Builds Axis2 and skips all the tests
    maven dist-min-bin Will generate the binary version of Axis2 minimal distribution
    maven dist-min-src Will generate the source version of Axis2 minimal distribution
    maven dist-std-bin Will generate the binary version of Axis2 standard distribution
    maven dist-std-bin Will generate the source version of Axis2 standard distribution
    maven release Generate all the distributales for Axis2
    maven clean jar -Dmaven.test.skip=true -o This will clean all the target folder and compile your source, without running the tests or downloading snapshots of dependancies. This is the quickest way of compiling Axis2 sources. However it is highly recommended to run the tests all the time