Tuesday, February 26, 2008

WSO2 WSF/C with Apache HTTP server

Following section will show you how to use WSO2 Web services framework for C (WSF/C) with the Apache HTTP server in linux environment.
First download and install apache2 server. Please follow the instructions in INSTALL file.
Then download WSF/C and configure with the following option

%./configure --with-apache2=/path/to/apache2 --prefix=/your/wsfc_home/directory
%make
%make install


Once you do make install, this will create a libmod_axis2.so inside WSFC_HOME/lib. Copy this file to apache2/modules directory. Now please open the httpd.conf file inside conf directory. Add following entries to the file. These will be your configurations to the axis2/c web services engine.

LoadModule axis2_module modules/libmod_axis2.so
Axis2RepoPath /your/path/to/wsf/c/home
Axis2LogFile /tmp/apache_axis2.log
Axis2LogLevel debug
Axis2MaxLogFileSize 32
<Location /axis2>
SetHandler axis2_module
</Location>

Done? Perfect. Let's start the server

%./httpd -k start

If the default port (i.e. 80) is in use try another port such as 8080. You can change the port in the conf/httpd.conf file

Listen 8080

Open s browser and enter the following address as the url

http://localhost:8080/axis2/services

If all goes well, this should show the deployed services. Usually these are samples comes with WSF/C.

Monday, February 18, 2008

WSO2 Web Services Framework for C language

As the B2B communication becomes loosely coupled and automated in a distributed environment, web services technology is blooming as the perfect solution for numerous business applications. With the ability of multiple legacy applications to be integrated to form a single system and allowing various clients, dispersed in contrasting platforms in different coordinates of the world to communicate are the major challenges faced by many software architects and developers.
As a solution for this WSO2 has introduced a series of web services middle-ware that can be used to implement your business application. Amongst them WSO2 Web services framework for C (WSF/C) can become appealing to the C, C++ community.
If you are a PHP or Ruby developer you have the option of using respective extensions of WSF/C in these languages. Please check WSF/PHP and WSF/Ruby for more details.

Monday, February 11, 2008

Google as a score board.

Google for "SL v IND" to view the latest score for the current match. Cricinfo is a bit slower to load, which is a common problem for battles btwn these two teams.
Lankans badly need to grab the first win for the series, today.

WSO2 registry 1.0 Unleashed



The WSO2 Registry team today announced the release of WSO2 Registry 1.0. Aligned with other WSO2 products, the Registry is also released under Apache license v2.0. To see features, read more or to download the product visit here.

Thursday, February 07, 2008

Tree view in UNIX

I found this is interesting. If you like to get your directory structure in a tree view with a single command try following.

  1. Create a shell script in directory /usr/local/bin/ (You need root permission)
  2. Give it a name (I call it gr. )
  3. Edit the script (usr/local/bin/gr)to include following command using a suitable editor (such as vi ;-))

    #!/bin/bash
    ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'

  4. Give excutable rights
    % chmod +x /usr/local/bin/gr

  5. Now go to any directory, (My preferred is Apache Rampart/C source) and issue
    % gr

    That should give you a tree view as follows.
       .
    |-core
    |-data
    |-handlers
    |-omxmlsec
    |---c14n
    |---openssl
    |---saml
    |---tokens
    |-secconv
    |-trust
    |-util



Tuesday, February 05, 2008

The best moment of a married life

The best moment of the married life would be the time when you realize... ohh yeah...!!! It's OVER.
I mean not the marriage, but the wedding :).
Don't I hate the experiences I'm having these days. This tiny little period in your life brings enough troubles to cry for the comfortable and relaxed life you had in the past.
Guys, the inertia of converting a GF to a wife is unreasonably tiresome and expensive. Still thinking why the "living together" is not popular among us, yet.