Axis2 supports databinding using XML-Beans from 0.9 release. For more information please read the user guide
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
You have to add Bouncy Castle as a JCE provider. Add the following entry to java.security file of the appropriate JRE on your machine. This file is available in the lib\security\ directory within the JRE directory.
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
NOTE: For Windows XP the correct version can be found using 'java -version'. The correct file is JRE (typically c:\Program Files\Java\jre<version>\lib\security\java.security.
This happens specifically with tomcat 4.x and 5.0 in a JDK 1.5 environment. The reason is that the system picks up a wrong transformer factory class. This can be solved simply by putting the xalan-2.7.0.jar(found here) into the axis2/WEB-INF/lib directory
Look at the ServiceClient class, for more information please read the user guide
From Axis2 0.94 onwards, both request-response and one way messaging will be handled by ServiceClient.
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.
If you have engaged addressing , then you have to have wsa:action , so you have to called
option.setAction(“urn:myaction”);
It should be not that the action should be a URI.
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.
Axis2 requires itest plugin to run some of the tests. Better get it using following command.
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
You may need to update the itest plugin too, using the above command in #1.
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 |