Friday, August 01, 2008

Adaptive software systems and their challenges - Part I

There are different challenges posed by different software executing environments. As the technology advances, the computer is no longer something that you see in your office desk. It can be varied from your mobile to a something distributed along the network. Or may a teeny tiny chip, which can be stored anywhere. And software is not something that ready to do your work once you install it using a wizard. The traditional definitions and methodologies are demolishing so as the traditional software designs. Just like the human beings trying to adapt to the changing environments software itself needed to be adapted. The adaptation is a sign of survival. Just like humans trying to survive in different weather conditions, software systems too need to survive in different environments. For example a system installed in your car or the mobile need to sense the changing environment and adjust itself to suite the changes without dieing.
So what are the challenges faced by different categories of systems when it comes to adaptation? What are the challenges in designing such systems? Following is a brief of such challenges categorized in terms of different types of software systems.

Monday, July 28, 2008

Supporting Dynamism in Architectural Level

In the past decade or two, there were several attempts to come up with a proper way to support the dynamism in software architecture. Different approaches such as architectural style based, graph grammars and Architecture Description Languages (ADL) based models were also introduced.
According to my understanding the actual constraint comes when we map the dynamism that can be seen in the design to the implementation. The barriers posed by limitations in operating systems, programming languages and hardware would take some time to resolve. But our approach as software architects or engineers to find ways to support dynamism in the design level. That’s only the first step there are bunch of other questions to be answered.
I came up with a typical set of questions that to be answered and not limited to, in supporting dynamism in the implementation level, are follows.

1. How to analyze run time changes? And how to analyze them in run time?
2. How to map run time changes to implementations.
At the end what ever the design, we have to map the design into an implementation.
3. How the implementation platform supports run time changes. What changes to be done in the platform level? If not feasible, what are the alternatives we can find?
Constraints in languages, operating systems, tools need to be considered
4. How to preserve the system integrity? How to prevent any security violations?
5. What are the cost effective ways to implement changes?
6. What approaches associated with lesser risk

Change management in Services Oriented Architecture


Also if we map the question in hand to the Services Oriented Architecture, what are the approaches we have taken in terms of supporting dynamism and change management? It is unavoidable as in other software systems; the components (mainly services and consumers) too need to be evolved over the time. Especially the continuos availability of services is concerned. So the services need to be changed due to following reasons.
1. Change of requirements that are initially set.
2. Change in the environment
3. Changes due to fixes and patches

Advantages in Services Oriented Architecture


The SOA model itself has some characteristics that support the dynamism
1. Loosely coupled nature minimizes problems in services dependencies
2. Service descriptions makes it easier to propagate changes to other systems
3. Abstract business logic hides details from its consumers via encapsulation
4. Stateless behavior
5. Self described nature
6. Re-usability
7. Ability to compose or assemble services

So the above characteristics make systems in SOA to show more support in dynamism than the conventional systems. But are there any specific issues related to SOA, in supporting dynamism? This is going to be a god research topic I think.

Tuesday, July 15, 2008

Make it adaptive, but avoid the complexity

That’s where the ROAD heading
One of the major challenges to be faced in designing adaptive software systems is the how to avoid the complexity. A complex design is always hard to develop and then very hard to maintain.
The complexity of such a system arises due to following reasons, which are in turn challenges to be faced by software architects.

  1. How to represent changing requirements at runtime?
  2. How to account for computational and network contexts at runtime?
  3. How to manage the system in a distributed architecture


Changing requirements

As we studied in our Software Engineering lectures, it is better to separate the user requirements from the design itself, to make it more maintainable. The design itself shows very little evidence about the exact requirements and most of the time is developed using set of interfaces and abstract functions. Requirements or the awareness of the run time environment is kept separate.
But the problem with this approach when it comes to adaptive systems is that it is necessary to know these requirements and make it available within the software itself. Java like languages tries to make the implementation to be separated by the specification using interfaces. But there are limitations in this approach too

  1. No mechanism to update interfaces at runtime
  2. Only functional requirements can be met
  3. Requirements are related to entity. Not the context in which they are applied to


Computational and network contexts at runtime
At the end the designed software executes on a physical computers or a network. The challenge posed by adaptive systems is how to identify the computational context in which operates on. This is further complicated by the fact that these contexts need to be account both for entities and for the composite as a whole.

Distributed/Open architecture
Though there are many attempts to go for a common middle ware standard, there is still no such. So the system needs to work with heterogeneous components in a distributed architecture.
So the question is how to find answers to these inherent challenges at the same time avoiding the complexity?

ROAD Framework
Role Oriented Adaptive Design is or ROAD in short is an attempt to answer the questions mentioned above. ROAD framework is based on the view that adapting the relationships among entities rather than entities it self. To put in another way adaptation is a property of the relationship rather than a property of an entity.

Key concepts

  1. Role: Description of the behavior of a functional entity
  2. Functional Entity : Role players such as services, objects and components
  3. Contracts: Connectors between roles.
  4. Organizer: A role that create/destroy roles.
  5. Self Managed Composite: A set of roles and contracts manages internally by an organizer.
  6. Management Interface: The interface of the SMC (Self Managed Composite) to the external world.


In my view the power behind the RODE framework is the separation of roles from its role player and the concept of self managed composites. All contracts are internal to the SMC, avoiding the complexity of the design.
Note that such a composite system can again be an entity which plays a role of another global SMC.

Let’s see how above challenges are met in ROAD framework

Facing Challenge #1:
The organizer manages the contracts rather than functional entities. Functional entities are bound to play the roles which can be reconfigured at run time depending on the changing requirements. New roles and contract may create depending on the requirements. Also the Manager binds the functional role players to its roles.

Facing Challenge #2:
As the runtime environment changes, the framework allows to add/drop roles or assign/replace/remove role players. The contract oriented nature facilitates such, without actually damaging the initial design.

Facing Challenge #3:
ROAD doesn’t require the knowledge of entities. Thus entities in heterogeneous technologies can interact and be managed.

More details can be found in this paper

Wednesday, July 09, 2008

Adaptive systems... more reliable or not?

Would the adaptive systems or the systems that can adapt themselves to fluctuating environmental conditions actually bring the reliability? Or would the reliability is compromised in such a system?
One can argue that the internal structure or the behavioral patterns of the system are tend to change more in an adaptive system. Thus the initial reliability index can be changed with the environment changes. And also prone to be attacks/failures that never imagined before.
But again adaptiveness or the flexibility can also be a sign of a reliable system. Like a grass bending to the wind. Or take us, the humans beings for example. We adapt to the environment and thus survived so far in the world(Until we try to adapt the environment to suit us ;-) )
So how far we can go with adaptiveness in a system? What are the areas that we need to consider in designing adaptive systems? How to assess/predict the reliability of such systems?

Friday, July 04, 2008

Security concerns of composite systems

For last couple of days I managed to read a bit about composite systems and how useful the component based Software Engineering when it comes to the industry. The flexibility of coupling and decoupling components in a composite systems and reusability of using one component in a number of such systems makes them very attracted in numerous applications.
But at the same time we have to consider about the security concerns in that approach. These concerns can be divided into two categories.

1.Security concerns of the component
2.Security concerns when the component is inegrated and used

When forming or modifying composite systems by coupling and decoupling different components the integrator has to evaluate how the component is secured itself. In other words how securely the component is being built by the developer.
Also the integrator has to evaluate how the system is secured from the components. A set of secure components doesn’t always guarantee a secure system. The integrator has to determine for what extent the system can trust the component.
This brings us to the topic of Trust Management in component based software engineering.

Tuesday, July 01, 2008

Cross roads

For the past two or three years, I've been working on SOA (Services Oriented Architecture) systems. To be more specific web services. In the same time I was lucky enough to study/implement certain web services security specifications, by polishing my knowledge in Computer Security.
As I start my higher studies in Swinburne University of Technology, now I'm expanding my knowledge towards adaptive systems. I'm now hopping along this new axis with the help of Swinburne Research in Melbourne.
I'm still just enjoying the sceneries in this path and occasionally glance through the track I used to travel earlier.
Would I be able to divert the current path and form a new junction with the former?
Or is it too early sketch the map?

Monday, June 23, 2008

My first talk at Swinburne

Tomorrow I'm going to talk about Myself, Apache Software Foundation and WSO2. And also about the community that ASF has developed and how ASF works by bringing developers and users together.
The second part of the talk is about WSO2, where we developed many web services middleware for the Apache Software Foundation and hence for the open source community.
The interesting fact is that some staff members including PhD students here knows about Oxygentank but not about WSO2. :)

Living in Melbourne

It's so easy to come to Melbourne Air Port but not from there to the home you desire...

This hold still true for me as there is a big competition for apartments and town houses in Melbourne and its suburbs. Now I have to live temporarily in an area a bit far (about 30km) from the university travelling up and down by train daily.
Winter is not that cold but it's raining as often as train leaves a station. You can expect the blue sky and the rain at the same time in this Victorain Capital.
People here are from all over the world making it a Salad city. It's like one place to see all the nationalities in the world. Except in certain areas of Melbourne, where Beijing is re-created in Australia.
Apart from Chinese and Indians, Australians(?) too live in Melbourne. And in Trains, Parks and Shops you have a chance of meeting a Sri Lankan too.
Last weekend I've a chance to travel in the city and see the Australian life style. Should take some pics next weekend when its sunny and bright during the short day time.

Thursday, June 19, 2008

Painful

Painful... its so painful not to have a notebook + broadband.
Finally I've got the notebook that I was looking for and the next task is... broadband. hmm... life is not that easy in cross roads.
Need to settle down and blog again. :-(

Tuesday, June 03, 2008

Two achievements...

I am very thrilled with two achievements recently grabbed by two of my WSO2 colleagues.

1irst

Paul, who is a co-founder of WSO2, has become one of the TOP 25 CTOs of 2008 nominated by InfoWorld . Technically I have learned a lot from him and he is one of the great persons to talk about web services.
His expertise definitely helped to bring WSO2 to where is is right now and a very cool guy to talk about serious stuff.

2econd

Deepal who's a colleague of mine in WSO2 and also a batch mate from University of Moratuwa has written a book. Still he didn't give me a free copy ;-) but you can get it from here.
The book contains information about mostly used features of Axis2 web services engine and a must have in your shelf if you are using the engine to consume/deploy web services. Besides it's from the hands of some one who's a key figure behind the success of Axis2.

Congratulations to both of you...

Monday, May 26, 2008

WSO2 WSF/C 1.3.0

WSO2 Web Services Framework for C version 1.3.0 has been released.
The new release came with many improvements including memory leak fixes and bug fixes. Also it has changed the default parser to Guththila, which is optimized for SOAP processing.
Get more details from the project home page about the latest release.
WSO2 WSF/C is the base framework for many web services frameworks including WSO2 WSF/PHP.

Friday, May 23, 2008

Web services in scripting langauges. PHP, Perl and Ruby

I have done survey to compare features of three scripting languages related to web services implementations. Those three languages are PHP, Perl and Ruby. This comparison also contrasts WSF/* family of products with other implementations. For example WSF/PHP vs nuSOAP. Please note that the features are compared to the latest released versions mentioned below.


And here is the feature comparison.


Not Implemented
Implemented
Experimental

Thursday, May 15, 2008

Trip of the life time

Wake up 3 AM
2 hr flight to ATL
13 hr transit in ATL
15 hr flight to DXB
7 hr transit in DXB (TODO)
3 hr flight to CMB (TODO)

forums/mailing-lists/LOST/youtube/facebook/blog/flickr/burgers/ice cream/Tetris/dizzy/dots-on-the-walls/blurring-faces/...

Gosh... when is 8 AM Saturday...?

Tuesday, May 13, 2008

How to obtain a remote X509 certificate?

Have you ever tried to obtain an X509 certificate from a remote site? This is quite required when you need to write a PHP client to securely access a web service using WSF/PHP. Or may be a Ruby client using WSF/Ruby.
Naaah...!!! this is not only for WSF or for web services stuff. But also if you need simply to encrypt locally and send the file as an attachment to a remote party via mail or to verify a signature of an attachment.
OK. This is how you do it. Simply enter the following command. Here we are going to obtain the google's certificate. Never forget to have openssl installed in your system.

echo | openssl s_client -connect 64.233.161.103:443 2>&1 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > cert.cert


Note that we are saving the file as cert.cert. You are free to use any file name.
OK. Now by simply replacing the ip address (64.233.161.103) from yours, you can obtain the X509 certificate of your desired site.

Monday, May 12, 2008

Apache Rampart/C 1.2.0 unleashed

Unleashed to secure Apache Axis2/C 1.4.0.
Download Apache Rampart/C here

Key features of the release includes
1. Ability to send and verify UsernameTokens with
- Username and PlainText password
- Username and Digested password

2. Ability to send Timestamp tokens

3. SOAP message encryption
- With derived key support for improved security
- Symmetric and Asymmetric modes of operations
- Support for AES and Tripple DES encryption
- Signature encryption
- Keys encryption

4. SOAP message signature
- XML signature with RSA-SHA1
- Message authentication with HMAC-SHA1
- Signature confirmation support
- SOAP Header signing

5. WS-Security Policy (spec 1.1) based configurations
- Support for both Symmetric as well as Asymmetric policy bindings
- Support for different modes of key identifiers
- Support for different algorithm suites
[Basic128, Basic 192, Basic256, TrippleDES, Basic128Rsa15, Basic192Rsa15,Basic256Rsa15, TripleDesRsa15]
- Support for IssuedToken assertion in client side.
- Support for SAMLToken assertion.

6. Replay detection support
- Easy to use built-in replay detection module
- Ability to deploy a customized replay detection module

7. Different protection orders
- Encrypt before signing
- Sign before encrypting

8. Extensible modules
- Password callback module
- Authentication module
- Credentials module

9. Keys management
- Support for X509 token profile
- Support for Key identifiers, Thumb prints, Issuer/Serial pairs, Embedded and Direct references

10. WS-Secure Conversation Language support (Experimental)
- Establishing Security Context and thereby maintaining a session
- Per message key derivation
- Support for stored securtiy context token

11. WS-Trust Language support (Experimental)
- Security Token Services (STS)
- STS Client
- Server and Client entrophy support

12. SAML Support
- Support for Creation and Processing of SAML Core 1.1 Assertions
- SAML Token as Sign Supporting Token

10. Other
- Easy to use deployment scripts
- A comprehensive set of samples

Friday, May 09, 2008

Trip to Kandy, Matale and Anuradhapura

... Could find some time to enjoy a trip with our parents and family ones during the last weekend.:-)
First we went to Kandy and then to Matale alu-viharaya (Viharaya=Temple). Most of you might've known about Kandy. Compared to that Aluwiharaya is a little known and less described. But it's importance is not overshadowed by the fact that its not a popular shrine. Alu-viharaya is the place where the well known Buddist Tipitaka inscribing took place. And still this inscribing is taking place in 'Ola' leaves in the traditional way. Matale, which was battered by many wars against British invaders is north of Kandy. The library was completely destroyed later due to the 1848 rebellion lead by "Puran Appu" against British rulers.

One who takes Kandy-Jaffna A9 highway can easily reach the temple, which is adjacent to the main road. The temple is built on a rock, where one can get a very good view over the surrounding valley. Whilst few new modifications and additions has done some damage to its historical look, the cave temple, the old carvings and secret signs keeps the proud and mystic scenery intact.
Here are some pics.

Later we went to the ancient capital city, Anuradhapura. Have been there numerous times but seems this is like the best time to be there. One reason is that this is the time everybody is getting ready for the high season, which is starting from June. The second is that due to heavy rains during the last month there is no dust and lakes/tanks are very beautiful.
Will write more when I get time. Meanwhile enjoy these memories.

Wednesday, May 07, 2008

Seven things to know about FEDi

FEDi is
- about authentication and to enable single sign on in a federated environment
- to establish the trust between entities in different security realms
- based on Apache Axis2/C and Apache Rampart/C
- to provide the infrastructure to develop identity enabled web services
- is an effort to implement WS-Trust, SAML and WS-Federation specifications in C language


FEDi is NOT
- a product/application. It's a framework that can be used to implement the final product/application.
- an alternative to Identity Solution. It's an effort to extend the capabilities to federated environment

Need to know more check this out

Thursday, May 01, 2008

Closed his eyes forever


Suffering from fever for couple of days and irrespective of all the treatments, Terry closed his moody eyes, forever. A very sorry morning for all of us. :(

Tuesday, April 29, 2008

Cardspace authenitcation with Identity Solution

WSO2 Identity solution 1.5 has been released. The new version supports SAML 2.0, which is a very handy feature to have.
Check more details about the release here.
You can also listen to this podcast by Prabath Siriwardena

Friday, April 25, 2008

C web services : A locus for demos

It's now possible to try out some of the samples/demos written using the WSO2 WSF/C. This page contains the downloadable archives, source codes and documentations. You can view, rate and try these samples and publish your own ones too. If you are interested in developing such demos, please drop an email to wsf-c-dev@wso2.org.
Right now we have an amazonclient, which can be used to do on-line transactions with Amazon E-commerce Service, a windows shell extension (aka FlickrPal), which can be used to upload you images to Flickr and a store client and manufacturing server to demo, how to address a typical business problem using WSO2 WSF/C.

Sunday, April 20, 2008

Writing a secure client in Ruby

WSF/Ruby provides an easy to use API to consume and deploy web services. Adding the Apache Rampart/C features, it also provides SOAP message confidentiality, integrity and authentication.
In the following four easy steps we will show how to write a secure client using WSF/Ruby.

1. Create the policy. Here we need to encrypt using the Basic256Rsa15 algorithm suite and the relavent key information should be identified using the Issuer name and the serial number of the certificate
      
policy_content = {"encrypt"=> true,
"algorithm_suite" => "Basic256Rsa15",
"security_token_reference" => "IssuerSerial"}
policy = WSPolicy.new({"security" => policy_content}

2. Create the security token. Note that the private keys and certificates need to be loaded
  
security_options = {"private_key" => pvt_key,
"receiver_certificate" => rec_cert}
security_token = WSSecurityToken.new(security_options)

3. Create options for policy and security token. Here the use_wsa=true means that the clinet MUST include WS Addressing header in the message.
  
options = {"use_wsa" => true,
"policy" => policy,
"security_token" => security_token}

4. Request from the service. For this we need to create the client.
  
client = WSClient.new(options, LOG_FILE)
res_message = client.request(payload)

The complete source code is as follows.
  
require 'wsf'
require 'rexml/document'

include WSO2::WSF
include WSO2::Util

#This is your pay load
req_payload = << XML
Hello World!
XML

begin
LOG_FILE = "security_sample.log"
ACTION = "http://php.axis2.org/samples/echoString"
END_POINT = "http://localhost:3000/encryption/encryption"

message_properties = {"to" => END_POINT,
"action" => ACTION}

#Load certificates and keys from the disk
rec_cert = WSUtil::ws_get_cert_from_file("../keys/bob_cert.cert")
pvt_key = WSUtil::ws_get_key_from_file("../keys/alice_key.pem")

#The payload or the body of the SOAP message
payload = WSMessage.new(req_payload,
nil,
message_properties)

#Create the security policy
policy_content = {"encrypt"=> true,
"algorithm_suite" => "Basic256Rsa15",
"security_token_reference" => "IssuerSerial"}

policy = WSPolicy.new({"security" => policy_content})

#Create the security token
security_options = {"private_key" => pvt_key,
"receiver_certificate" => rec_cert}

security_token = WSSecurityToken.new(security_options)

#Create option for the client
options = {"use_wsa" => true,
"policy" => policy,
"security_token" => security_token}

#Create a client instance
client = WSClient.new(options, LOG_FILE)

#Request
res_message = client.request(payload)

if not res_message.nil? then
puts "Received OM: "<< "\n" << res_message.payload_to_s << "\n\n"
puts "Client invocation SUCCESSFUL !!!"
else
puts "Client invocation FAILED !!!"
end

#If SOAP fault, print the details
rescue WSFault => wsfault
puts "Client invocation FAILED !!!\n"
puts "WSFault : "
puts wsfault.xml
puts "----------"
puts wsfault.code
puts "----------"
puts wsfault.reason
puts "----------"
puts wsfault.role
puts "----------"
puts wsfault.detail
puts "----------"

rescue => exception
puts "Client invocation FAILED !!!\n"
puts "Exception : " << exception
end

More security samples can be found here...

Friday, April 18, 2008

WSF/PHP : Creating Business-Conscious IT Solutions


In this article I have shown how to address a typical business communication scenario using WSF/PHP. It also discusses the importance of the message level security and shown how exactly those will be used in a scenario like this. The complete source code is available here.

Monday, April 14, 2008

What's beyond C web services?

Recently I started adding entries to the C web services blog. Doing so, I must state that C web services are not only limited to the C language itself, but also a basis for other programming languages. So far this has become a reality for PHP, Perl, Ruby and C++. Other scripting languages such as python to be added to the list in the future. The reason behind this successful pumping of array of frameworks to the community is the solid WSF/C, which is a web services framework written in C language. The framework allows you to consume and deploy web services easily and securely. WSF/C integrates the famous Axis2/C engine with implementations of various WS-* standards such as WS-Security, WS-RM, WS-Addressing and WS-Policy.
So why not conquer the web services beyond the C territory. :)
Click on and image to go to the respective project home pages.




Tuesday, April 08, 2008

Product of the year 2007 - GOLD - To WSO2 WSAS



Being awarded to WSO2 WSAS (Data Services).

Congratulations folks !!!
You deserve it.
--More--

Monday, April 07, 2008

Username and passowrd is not enough



If you are planning to steal a username and the password of your colleague, you'd better check this out. If he is clever enough to use key stroke dynamics with the GDM (Gnome Display Manager), you'll have to watch and practice a lot how he types them.
By modifying the GDM it is possible to store an encrypted hash of your key stroke pattern. This pattern will be verified using the key stroke dynamics in the next time you log in. Following article will show how to modify the GDM.

Identify and verify users based on how they type

Saturday, April 05, 2008

Open source will quietly take over

Read a nice article about the Open Source and it's future. Here are few lines from it.

...Users who reject open source for technical, legal or business reasons might find themselves unintentionally using open source despite their opposition...

..."Much of the availability, management and DBMS licensing costs will remain proprietary," says the report, and "version control and incompatibilities will continue to plague open-source OSs and associated middleware"...

...Open source gives massive scalability at no transaction cost, for whatever you are doing...

The full article is here...

Friday, April 04, 2008

A collection of PHP demos


Wanna try out some samples in PHP web services?
Try out this collection of demos.
You can try, download, rate samples and view the source code to get an idea what you can do with web services in PHP language. The demos here are developed with WSO2 Web Services Framework for PHP (WSF/PHP).

Thursday, April 03, 2008

Spring the WSF/*




Adding yet another member to the WSF family WSO2 has announced the release of WSF/Spring 1.0.
Similar to other WSF products, this too is released under the Apache license 2.0. Now the spring users would be able to expose web services using the famous Apache Axis2/Java engine. The framework is also powered by the WS-* of implementations including WS-Security, WS-SecurityPolicy, WS-Policy, WS-Addressing, WS-ReliableMessaging and WS-Eventing. Here you will find a quick start guide.

Wednesday, March 19, 2008

We got married...

Me and Kalani had our wedding on the 6th of March at Hotel Bluewaters, Wadduwa. We were friends first and then become lovers... and later decided its time to be together for the rest of our lives :-). A big and very happy occasion for us as well as our parents, relatives and friends. Thanks for all who helped, wished and joined with us to make the event a success. More pics here...

Tuesday, March 18, 2008

Sir Arthur C. Clarke has passed away

Popular sci-fi writer Sir Arthur C. Clarke has passed away. He is the author for many of my childhood fav books. Sir Arthur C. Clarke lived in Sri Lanka from 1956 was the chancellor in University of Moratuwa from 1979 to 2002. In my home town, Katubedda he established the institute Arthur C. Clarke Center for Modern Technologies. He selected this hill for his research and thus known has "technical kanda" (technical hill) among locals. This visionary author was the inventor for the concept of communication satellites.
Aged 90, he died due to a cardio-respiratory attack.

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.

Thursday, January 31, 2008

Apache Axis2/C FAQ

There is this FAQ prepared by Spencer Davis and some other Apache Axis2/C developers. If you have any entries that you think worth including, please feel free to drop them here.
http://wiki.apache.org/general/axis2c/FAQ
Soon it will be filtered, sorted and integrated into the Apache Axis2/C documentation.
If you do not have permissions to edit, simply drop an email to axis-c-dev@ws.apache.org list with the subject Axis2/C FAQs.

Create your own Certificate Authority using OpenSSL

In my earlier blog I showed how to generate a self signed certificate.
A self signed certificate is of no use as it is not signed by a third party. There are such well known third parties like verisign and thawte. But getting a certificate signed is a complex and costly process. If you need to form a small trust community (e.g. For your company or with your clients) you can create your own Certificate Authority. The process is not that complex as it sounds. Thanks to a pearl script available in OpenSSL distribution of cource. If you have used default installation settings, this script (CA.pl) can be located in /usr/lib/ssl/misc/CA.pl. First of all create a directory for you CA. Then copy CA.pl and /usr/lib/ssl/openssl.cnf to the directory you just created. Run the CA.pl script.
%./CA.pl -newca

If you press enter key, the script will create a new certificate/key pair for you. If you already have a certificate and you need to use it, just type the filename. Now you have a certificate authority setup in a sub directory called "demoCA". Simple, right? Let's try to sign a certificate using the CA we have just set up. Copy your certificate request to the current directory and rename it to newreq.pem (In the next section we will discuss how to generate a certificate request). Then issue the following command.
%./CA.pl -sign

If everything is successful and the request is a valid one, a new certificate called newcert.pem will be created in the same directory.

Free rice

Improve your vocabulary while donating some rice... :)
http://freerice.com/
Thanks Suran for the mail

Tuesday, January 29, 2008

Self signed certificates using OpenSSL

Use the following command to generate a self-signed x509 certificate (mycert.pem), which is valid for 365 days and an RSA key (mykey.pem) of length 1024.
openssl req -x509 -nodes -days 365 -newkey rsa:1024 \
-keyout mykey.pem -out mycert.pem

Then you have to answer few questions. The information you provide by answering these questions will be stored in the certificate.
Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:
Email Address []:


That's it !!!

Thursday, January 24, 2008

A request to a certificate authority using OpenSSL

Signing your certificate by a recognized certificate authority is consists of two steps. First you have to generate a certificate request locally. Then you need to fill a form providing some information and send to the CA. Here we will describe how to generate such a request using OpenSSL.
First you need to generate a private key. If you already have a private key skip this step.

%openssl genrsa -out x.key 1024

Then use that private key to generate your request to the CA.

%openssl req -new -key x.key -out request.pem

This will create a file called request.pem from the private key (x.key). The requset file has the following format.

-----BEGIN CERTIFICATE REQUEST-----
(Base64 encoded certificate request data)
-----END CERTIFICATE REQUEST-----

Then you have to provide your information to the certificate authority. Usually this can be done by sending a fax or by filling an on-line application. Make sure that you are sending accurate information and specially check your request and information on it. Use following commands for the verification.

%openssl req -noout -text -in request.pem
%openssl req -noout -verify -key x.key -in request.pem

Wednesday, January 23, 2008

Facing security threats with WSF/PHP

Following table shows how to use/combine WSO2 WSF/PHP security features to face the common web services security threats...



Note that it is necessary to use username tokens with transport level security

Thursday, January 17, 2008

Presentation: Secure Web Services with Apache Rampart/C

Slides are available at
http://people.apache.org/~kaushalye/publications/sec_ws_with_RamC.ppt

Apache Rampart/C 1.1.0 is released

Apache Ramaprt/C team has unleashed it's version 1.1.0 y'day.
Check the feature list here...
The project is to fulfill the message level security requirements of the Apache Axis2/C engine. Without worrying about having custom mechanisms to provide message confidentiality, integrity and authentication requirements, it is very easy to use the Rampart/C module with the Axis2/C engine.
The released version is compatible with the Apache Axis2/C 1.2.0.
You may download the latest version here...

Tuesday, January 15, 2008

Writing a secure client using WSO2 WSF/C

Once you install WSO2 WSF/C , it has a sample client in WSFC_HOME/rampartc/samples/client/sec_echo, that shows how to enable security for the SOAP messages. Go to the directory and open the echo.c source.
In order to write a secure client following steps should be followed.
1.Create a service client
svc_client = axis2_svc_client_create(env, client_home);

2.Set options, such as endpoint address and SOAP action
options = axis2_options_create(env);
axis2_options_set_to(options, env, endpoint_ref);
axis2_options_set_action(options, env,"http://example.com/ws/2004/09/policy/Test/EchoRequest");
axis2_svc_client_set_options(svc_client, env, options);

3.Create policy object and set it to the service client
policy = neethi_util_create_policy_from_file(env, policy_file_name);
axis2_svc_client_set_policy(svc_client, env, policy)

4.Engage the security module
axis2_svc_client_engage_module(svc_client, env, "rampart");

5.Write your code to build the payload. i.e. the body of your SOAP message that carries your business logic to the service
payload = build_om_payload_for_echo_svc(env);

6.Send the message
ret_node = axis2_svc_client_send_receive(svc_client, env, payload);

Note that from above list, only 3 and 4 are the additional steps that you have to take, to secure a client request. Also note that in the step 3 we are giving a policy file name as a string argument to the function neethi_util_create_policy_from_file(). Here the policy_file_name is the file name for your policy configurations in the client side. You may find such client's policy files for each and every security requirement in the scenarios available under WSFC_HOME/rampartc/samples/secpolicy.

Friday, January 11, 2008

A killer app for semantic web

Are we still waiting for a killer app in symentic web...?
A nice article written on Semantic web, discussing few potential applications.

Wednesday, January 09, 2008

Training : SOAP and WS-Security in PHP

16th Wednesday...

If you are a PHP developer and would like to learn, how to deploy or consume web services, there are live on-line training sessions available in WSO2 developer portal.
Check this out...
This is a three hour course that brings you the essentials for building quick, inter-operable and secure applications using web services.
There are some other courses too. The complete course list can be seen here.

TCP Monitor tool with WSO2 WSF/C

The TCPMonitor tool can be used to listen to TCP(Transmission Control Protocol) endpoints in your system. When you download and build WSO2 WSF/C, the tool is available at WSFC_HOME/bin/tools for your convenience. Go to the directory and start the tool as follows.

%tcpmon.exe
Note that I've used .exe for the Win32 systems. UNIX guys please use
%./tcpmon

OK. Now by default, the tool listens to the port 9090 and redirects messages to port 8080 at the localhost(i.e. to the same machine). Note: You may change these default settings using few command line arguments.

Usage : tcpmon.exe [-lp LISTEN_PORT] [-tp TARGET_PORT] [-th TARGET_HOST] [-f LOG_FILE]
e.g. tcpmon.exe -lp 9090 -tp 8080 -th localhost -f my_tcpmon.log

Since we are redirecting our messages to port 8080, this time we have to start the server listening to that port.
%axis2_http_server.exe -p8080

Alright now we are ready to sniff the wire content. Now what we have to do is start a client. The client samples are available at WSFC_HOME/bin/samples. I'll use the following. But try other samples as well.
%echo_blocking_addr.exe

OK now you see that your service invoke is successful and feel that the world is newer better. So please do open the tcpmon_traffic.log in WSFC_HOME/bin/tools using a text editor such as notepad, gedit or vi to see the wire content. Now you should see something like this.

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
SENDING DATA..
/* sending time = 10:58:13*/
---------------------
POST /axis2/services/echo HTTP/1.1
User-Agent: Axis2/C
Content-Length: 512
Content-Type: application/soap+xml;charset=UTF-8
Host: localhost:9090

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:To>http://localhost:9090/axis2/services/echo</wsa:To>
<wsa:Action>http://ws.apache.org/axis2/c/samples/echoString</wsa:Action>
<wsa:MessageID>02973ea8-bb4f-1dc1-2693-000000000000</wsa:MessageID>
</soapenv:Header>
<soapenv:Body>
<ns1:echoString xmlns:ns1="http://ws.apache.org/axis2/services/echo">
<text>Hello World!</text>
</ns1:echoString>
</soapenv:Body>
</soapenv:Envelope>

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
RETRIEVING DATA..
/* retrieving time = 10:58:13*/
/* time throughput = 0 sec(s)*/
---------------------
HTTP/1.1 200 OK
Content-Type: application/soap+xml;charset=UTF-8
Content-Length: 672

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Action>http://ws.apache.org/axis2/c/samples/echoString</wsa:Action>
<wsa:From>
<wsa:Address>http://localhost:9090/axis2/services/echo</wsa:Address>
</wsa:From>
<wsa:MessageID>02983114-bb4f-1dc1-3856-000000000000</wsa:MessageID>
<wsa:RelatesTo wsa:RelationshipType="http://www.w3.org/2005/08/addressing/reply">02973ea8-bb4f-1dc1-2693-000000000000</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<ns1:echoString xmlns:ns1="http://ws.apache.org/axis2/c/samples">
<text>Hello World!</text>
</ns1:echoString>
</soapenv:Body>
</soapenv:Envelope>


The SOAP envelope in the first portion of the file shows the request and the last SOAP envelope shows the response from the server.

Monday, January 07, 2008

WSO2 WSF/C 1.2.0 is released

The Web Services Framework for C (WSF/C) is an open source library written to provide and consume web services in C programming language. The framework is released under Apache license 2.0. That means it comes with a $0 cost and liberty to redistribute.
WSF/C also integrates many Apache projects. Using the famous Apache Axis2/C as the web services engine, it has also accoutered with Apache Rampart/C, Apache Sandesha2/C and Apache Savan/C.
Armed by all these WSF/C provides web services security, reliability and eventing support with just a single download. And it is inter-operable with Microsoft .Net, WSO2 Web Services Application Server and other J2EE implementation.
Moreover, WSO2 WSF/C is the base framework for other web service frameworks like WSF/PHP and WSF/Ruby.
WSO2 Team has announced the release of 1.2.0 last week. You may download the release here

Wednesday, January 02, 2008

WSO2's WSF/PHP and Apache Ramaprt/C

Following diagram shows how the WSO2 WSF/PHP is arranged...



Basically the WSO2 WSF/PHP is a PHP extension. It can be seen as the upper layer of a 3-core wire.
And inside it there is another layer wrapping many other products, which we call the WSO2 WSF/C. These products are the implementations of WS-* of specifications including Apache Rampart/C, Apache Sandesha2/C, Apache Savan/C.
A PHP user will basically consume/provide web services by using the upper WSF/PHP layer. The core specifications and implementations are transparent to the PHP user to make the life easier. But sometimes it's worth to know how exactly are the inner components arranged. :)

In order to provide security, WSO2 WSF/PHP uses Apache Rampart/C. Actually via WSO2 WSF/C. Apache Rampart/C is the security module for the Apache Axis2/C engine, which the WSF/PHP depends on. You may refer my this blog entryto see how to write a PHP script to encrypt a SOAP message.

Sunday, December 30, 2007

Hiking in Mee-Muray

Mee-Muray, a village situated in the border of Kandy and Mathale districts in Sri Lanka, was our latest hiking destination. Covered with thick lush green and surrounded by picturesque mountains, it provides the exact essentials you need for a genial hiking.
With many paths to hop-on and places to relax when tired, it requires at least two days to cover the area. A very steep la-ke-gala(gala=rock) and many streams feeding the Mahaveli river are the best attractions. Also it's worth to explore the calm lifestyle of the habitants who are far far away from busy towns and main roads. (36 kms to the closest town). Alternatively bird watching, bathing and hiking in the jungle can be done. Moreover, if you have seen the movie, "Sooriya Arana" which brought you a very nice story between a young buddist monk and child hunter, the locations are mostly from this village and surrounding jungle.

How to go there...
Traveling from Colombo, take the Mahi-yan-gana bus which usually takes 5 to 6 hours for the total journey. Alternatively you may go to Kandy and take the Mahi-yan-gana, Bibi-le, Dehi-atta-kandiya or Udu-dumbara bus. After a one and half hour traveling from Kandy, get down in the Hun-nas-giriya town. From there, you have to test your luck. Usually, if there is no-rain and if the driver thinks he should go to the town, there is a bus going back from Hun-nas-giriya to Mee-muray around 1 PM. Well... to be frank its a small van with big wheels and a driver with a great attitude. If you miss the bus there are two alternatives. First, check with the shop owners in the city for a lorry scheduled to be gone to Mee-muray or a closer destination. The second option is to bargain with taxi drivers(3-wheel), who are a bit reluctant to go to Mee-muray. They usually charge from 1500 to 2500 LKR for the journey and you MUST ask them to bring you to the Mee-muray temple or the school. Do not say just Mee-muray and you would definitely end-up in a place where they'd like to drop you off. Alternatively if you do not have a heavy luggage and would like to depend on your feet, take the bus to Lool-watta and walk from there to Mee-muray for next 17 kms.

More places to visit...
Saying all these, the best option is to use a 4WD vehicle. The road is not that bad but there are certain places that you need to use such a vehicle with a good ground clearance. And there are other advantage of avoiding public transport apart from saving the time and energy. On your way to Mee-muray, the first part of traveling is through tea states lies on high mountains. So you may get down and taste a snack looking at gorgeous valleys and mountains. Also you may stop by a place called Deanston, after a 7 kms of traveling. The area is filled with birds, butterflies and flowers. And about 1.3kms away from the road you may go to a mini world's end to have a good look at the 90 degree slope and Dumbara mountains. Also the Garandi falls, Yahan gala rock, Mahiyangana valley and Sora-bora lake can be seen far away in a less cloudy day.

What to bring...
You may buy essential food in Hun-nas-giri town or in Kandy preferably. Noodles, chocolates, cheese are lesser in weight. Also bring something to apply to get rid of leeches. We usually make a mix of salt and soap. If you plan to climb the la-ke gala rock, you'll need a strong rope too. Also bring enough clothes and blankets to face chilling nights.

Where to stay...
The most common places to stay are the temple and the school. Sometimes a good smile and a friendly chat can make your stay in a warm house too. Do not expect much from these poor families. They have only what they need for their survival. But they would definitely assist to make your stay a comfortable one in the village. For example in the first day we were freezing due to the coldness of the ground and in the chilling breeze in the night. The second day we had some mats thanks to an old couple living nearby.

Satisfaction...
Is mostly depend on your interests. If you are up to experience the difference between your warm bed and hardness on a pan-pedura(a mat) or to experience the ear-locking silence in the night, your satisfaction can be guaranteed. Also if you are a photographer, a bird watcher or a hiking lover you wouldn't be disappointed. If you are non of these and would like to just see the village it's better to reserve a room in the Deanston circuit bungalow about 30kms away, and come to the village during the day time. Alternatively you may book a camping site in the same location. You may get a tent for about 800LKR enough for 12 people.


Thursday, December 20, 2007

XML User Interface Language

If you have written an extension to mozilla, chances are less that you haven't seen an *.xul file. This file contains instructions on how the UI is organized. How the buttons/menus are added and how the layout should be etc.
The XUL is the markup language for creating user interfaces behind all these. Find out more about XUL in the following tutorial.
http://www.xulplanet.com/tutorials/xultu/

Friday, December 14, 2007

Encrypting SOAP messages using PHP

If you have configured WSO2 WSF/PHP in your system, it takes only a few additional lines to get your SOAP messages encrypted.
Following is a PHP script, showing the necessary steps that you need to follow.
<?php
$reqPayloadString = <<<XML
<ns1:Privacy xmlns:ns1="http://privacy.abc.com/privacy"><Info>MyConfidentialInfo</Info></ns1:Privacy>
XML;

try {

/* 1. Load certificates*/
$rec_cert = ws_get_cert_from_file('your/path/to/certificate.cert');
$pvt_key = ws_get_key_from_file('your/path/to/private_key.pem');

/* 2. Create a new message request*/
$reqMessage = new WSMessage($reqPayloadString,
array("to"=>"http://privacy.abc.com/your/privacy_service.php",
"action" => "http://privacy.abc.com/privacy"));

/* 3. Create a security array to keep security properties*/
$sec_array = array("encrypt"=>TRUE,
"algorithmSuite" => "Basic256Rsa15",
"securityTokenReference" => "EmbeddedToken");

/* 4. Create a policy using the security array*/
$policy = new WSPolicy(array("security"=>$sec_array));

/* 5. Create a new security token*/
$sec_token = new WSSecurityToken(array("privateKey" => $pvt_key,
"receiverCertificate" => $rec_cert));

/* 6. Create a new web service client*/
$client = new WSClient(array("useWSA" => TRUE,
"policy" => $policy,
"securityToken" => $sec_token));
/* 7. Request*/
$resMessage = $client->request($reqMessage);

} catch (Exception $e) {
if ($e instanceof WSFault) {
printf("Soap Fault: %s\n", $e->Reason);
} else {
printf("Message = %s\n",$e->getMessage());
}
}
?>

A complete article on this can be found here...

Wednesday, December 12, 2007

WSO2 Identity goes 1.0

Providing the CardSpace authentication with an identity provider and a set of relying party components, WSO2 Identity Solution 1.0 has been released y'day. It comes with a cost of $0 under Apache license 2.0.
So why not try now?

Sunday, December 09, 2007

Federated Sign On explained



  • Company A maintain their employee records
  • Company B provide services
  • Company A's employee Mr.X need to access Company B's services
  • Company A and B form a federation
  • Company B trust, A's employees and allow Mr.X to access their services.

In this way company B don't have to maintain records of employees of company A(and A1, A2, A3...)

And also Mr.X's privacy is guaranteed by Company A

Friday, December 07, 2007

Planing to secure web services?

When you plan to secure your web services, first you need to understand the exact security requirements. If you do not care about providing message level security, you can easily use the transport layer security. As an example web services over HTTPS.

If you do care, to protect messages even after the transit, or you have multiple intermediaries that need to be involved in the message delivery process, you need to go for the message level security.



Alternatively you may use both these together. For example you might use the transport layer security provide the confidentiality while using message level security for authentication purposes.

Apart from understanding the basic standards such as XML Encryption, XML Signature, Keys management in SOAP message security, you need to understand how to configure the security features.

The common standard for this in web services is to follow WS-Policy and WS-Security Policy specifications. These two specifications defined the behavior model for web services. For example whether the message need to be encrypted, signed, what type of tokens to be included in the security header etc. Also a requirement for one service may not be valid for another. Thus defining service specific requirements might be necessary.

Wednesday, December 05, 2007

Tuesday, December 04, 2007

MTOM attachments and SOAP message encryption

If we are to guarantee the confidentiality of SOAP message we have to encrypt them. For example a SOAP body may carry information that are only for authorized parties.
But what about MTOM attachments? Is it not possible to encrypt them? Do we have to send them as it is?
The answer is NO. We must encrypt the attachment as well. For example, such attachments might carry some confidential image or a secret key in binary format.
The question came in the way AXIOM handled attachments. For example in order to encrypt a particular node, the first step would be to serialize it. But when the serialization happens, the attachment is ignored. Thus the confidentiality is not applied to the attachment.
As a solution for this, we have to get the attachment as a base64 encoded string. Then this whole content should be encrypted. In fact this is now possible with the newly introduced axiom_node_to_string_non_optimized() function, which returns non-optimized base64 encoded string representation of the MTOM attachment. So when ever it is necessary to use xml encryption in OMXMLSec, it is required to use the above function to serialize the XML data.

Following code segment shows how to we do the above

axis2_char_t *serialized_data = NULL;
oxs_buffer_t *serialized_buf= NULL;
axis2_status_t ret = AXIS2_FAILURE;

...
/*Serialize node*/
serialized_data = axiom_node_to_string_non_optimized(node, env);
serialized_buf = oxs_buffer_create(env);
ret = oxs_buffer_populate(serialized_buf, env, (unsigned char *)serialized_data, axutil_strlen(serialized_data));

/*We call encrypt_data*/
ret = oxs_xml_enc_encrypt_data(env, enc_ctx, serialized_buf, enc_type_node);

Friday, November 16, 2007

OpenSSL Win 32 binaries

Since there are many questions on where to get OpenSSL Win32 binaries...
This is the place to go.
http://www.slproweb.com/products/Win32OpenSSL.html

Thursday, November 15, 2007

Secured Web Services with PHP

In the following article I've described how to secure web services using WSO2 WSF/PHP.

Secured Web Services with PHP


This covers
  • How to write a PHP client to invoke web services and enable security in SOAP messages.
  • How to deploy a PHP web service that expect secured SOAP messages.

You may download WSO2 WSF/PHP here.
The WSF/PHP API can be seen here

Wednesday, November 07, 2007

No more naked email addresses

A simple but smart way to deceive spam bots by obfuscating the mail link.
http://www.alistapart.com/articles/gracefulemailobfuscation
You may find a demo too...
Nice work Roel.

Thursday, November 01, 2007

Semantic Web

A really nice article for a newbie (like me) on Semantic Web.
http://infomesh.net/2001/swintro/

Wednesday, October 24, 2007

Quantum Cryptology

Cryptography from mathematics to physics...
Find out more here.

ApacheCon Europe 2008

ApacheCon Europe 2008

Amsterdam, The Netherlands -7 April through 11 April, 2008

Call for papers ends 26th October. Hurry...

Thursday, October 18, 2007

Breathing...

All of a sudden I realized that I've engaged in two fantastic exercises for last few months.
Many days in the morning I go jogging. That's inhale from nose and exhale from mouth.
At least two days per week I go swimming. That's inhale from mouth and exhale from nose.
Gosh! my engine should work properly.
Doing exercises has lot other advantages than being healthy.
1. It gives you a chance to meet people. Ground... Pool...
2. You have your own time to think. Try to think deep, inside water or think, deep inside water? New ideas does not only come in the shower.
3. At least you have a chance to smell fresh grass. Hmm... I like it when I jog. Better after a rain overnight.
4. Finally you can avoid traffic in the morning and in the evening. (Luckey that I have flexible working hours)
So think about it. Go jogging next morning. If you don't know how to swim, learn it.

Monday, October 08, 2007

A Quick Reference Guide for Rampart/C Configurations

In this tutorial I've shown how to configure Ramaprt/C to support different security requirements in WS-Security, based on WS-Secuirty Policy Specification 1.1

Thursday, October 04, 2007

Apache Rampart/C 1.0 Unleashed !!!

Unleashed to protect SOAP messages.

Yes. Rampart/C as the security module for Apache Axis2/C, provides it's users a way to protect their SOAP messages from intruders, spies and even hypocrites(hmm... bad people everywhere). :)
It provides Authentication, Confidentiality, Non-repudiation for messages with a minimum effort in configurations.

Rampart/C 1.0 is based on the WS-Security Specification 1.0.
It also encapsulates features of
  • Username Token Profile 1.1
  • X509 Token Profile 1.1
  • Ws-Security Policy Specification 1.0

Rampart/C is also the security module for WSF/C and WSF/PHP frameworks.

You may download it here
http://ws.apache.org/rampart/c/download.cgi

Key features of the release
  1. Ability to send and verify UsernameTokens with
    1. PlainText password
    2. Digested password
  2. Ability to send Timestamp tokens
  3. SOAP message encryption
  4. SOAP message signature
  5. WS Security Policy based configurations

Major changes since last release
  1. Memory leak fixes
  2. Many bug fixes
  3. Signature Encryption
  4. Signing specific headers
  5. Sign before encryption
  6. Encryption before signing
  7. Replay detection support
  8. Improvements to the context model
  9. Authentication module implementation
  10. Credentials module implementation
  11. Improvements to Key/Certificate loading mechanisms
  12. Easy to use deployment scripts
  13. WS-Security Policy (Spec 1.1) based configurations

Open source Vs proprietary

Interesting comparison... :)
Credit : The Open Road


WSO2 WSF/C 1.1.0 is released

WSO2 has announced another release of a hidden beast... it's WSF/C 1.1.0
WSF/C is actually the base framework for many implementations including WSF/PHP and WSF/Perl. There is another frameworks to be thrown to the open source community wrapping the WSF/C. Guess what...? It's WSF/Ruby.
So what makes WSF/C so special apart from being the base for many frameworks.
The first reason is that it's powered by the Apache Axis2/C web services engine. Other reason is that it encapsulates a number of modules that are WS-* implementations, such as Apache Rampart/C, Apache Savan/C and Apache Sandesha/C.
Once the WSF/C is downloaded, with a minimum effort for configurations, user can consume/deploy web services securely and reliably inheriting the features of it's module pack.
Have a look
http://dist.wso2.org/products/wsf/c/1.1.0/

Tuesday, October 02, 2007

Scientists Invent 30 Year Continuous Power Laptop Battery

Your next laptop could have a continuous power battery that lasts for 30 years without a single recharge ...[more]...

Hmm... that's enough time to do some useful research. Ohh I forgot !!! What's the duration of the laptop itself then?

Monday, October 01, 2007

Apache Axis2 1.1.0

After many improvements and bug fixes Apache Axis2 1.1.0 is released y'day. You may download it here.
The new release includes following key features.
  1. Support for one-way messaging (In-Only) and request response messaging (In-Out)
  2. Client APIs: Easy to use service client API and more advanced operation client API
  3. Transports supported: HTTP
    • Inbuilt HTTP server called simple axis server
    • Apache2 httpd module called mod_axis2 for server side
    • IIS module for server side
    • Client transport with ability to enable SSL support
    • Basic HTTP Authentication
    • libcurl based client transport
  4. Module architecture, mechanism to extend the SOAP processing model
  5. WS-Addressing support, both the submission (2004/08) and final (2005/08) versions, implemented as a module
  6. MTOM/XOP support
  7. AXIOM, an XML object model optimized for SOAP 1.1/1.2 messages; This has complete XML infoset support
  8. XML parser abstraction
    • Libxml2 wrapper
    • Guththila pull parser support
  9. Both directory based and archive based deployment models for deploying services and modules
  10. Description hierarchy providing access to static data of Axis2/C runtime (configuration, service groups, services, operations and messages)
  11. Context hierarchy providing access to dynamic Axis2/C runtime information(corresponding contexts to map to each level of description hierarchy)
  12. Message receiver abstraction
    • Inbuilt raw XML message receiver
  13. Code generation tool for stub and skeleton generation for a given WSDL (based on Java tool)
    • Axis Data Binding (ADB) support
  14. Transport proxy support
  15. REST support (more POX like) using both HTTP POST and GET
  16. Comprehensive documentation
    • Axis2/C Manual
  17. WS-Policy implementation called Neethi/C, with WS-SecurityPolicy extension
  18. TCP Transport, for both client and server side

Apache Rampart/C 1.0 is getting ready

Apache Rampart/C 1.0 release artifacts are uploaded here. Waiting for votes. :)