Tuesday, November 11, 2008

Random entries from the internship diary..

17th: Creating services and adding them using upload service of axis2-admin. configuring the Tomcat Manager.

ANT: ant compile jar run

Making a directory (say opt) writable
sudo chmod -R 777 /opt/

if you want to execute file without using 'sh' ( ./script.sh ), you need to set execution bit....

$ chmod u+x script.sh
$ ./script.sh

20th: Parsing the xml file contents.

21st: XMLBEANS  SAX/DOM Parsing  xerces.jar

jar xf Xerces-J-bin.2.9.1.zip

copying a folder with its contents::
sudo cp -r /home/pradeeban/Desktop/xerces-2_9_1 /lib
should do the trick. The -r stands for recursive.

If you have problems with cp -r use cp -rf which is recursive force copy paste.

Xerces in the lib directory and Listing 2 in the src directory
it contains the intersection of the contents of xercesImpl.jar and xml-apis.jar

In windows:
mkdir classes
set classpath=classes;lib\xercesImpl.jar
javac -d classes src\Cheapest.java


In Linux we use : as we use ; to separate in windows. / is used in Linux, instead of \ of windows.

Printing the addresses using SAX and DOM Parsers.

24th: XMLBeans was used to compile the schema of the given address book file.
scomp sample.xsd
Validating and printing...

27th: Web Services from ant build

Axis 2
28th: configuring eclipse IDE; Plugins support for axis2.
Invoking the REST client

29th: Switching to IntelliJIDEA from Eclipse
Program reads the objects passed from the DOMParser.

30th: Service was invoked using a client program. Address will be printed for the input of a name. Installation of mysql.

31st: A web service - WS-Messagebox developed using XSUL [Web and XML Services Utility Library], another SOAP toolkit was given, which has to be converted to be run using axis2.

Hello World with Apache Axis2

Video Resources:
Secure and Reliable Web Services
Amazon Web Services: Building Blocks for True Internet Applications

Some references to Axis2 Context hierarchy:
Understanding Axis2 Context Hierarchy
Different Ways of Creating a ConfigurationContext in Axis2 

Axis2 Session Management