Posts

Showing posts from January, 2008

Dr. Sanjiva on Web Services, REST and Open Source SOA

Dr. Sanjiva Weerawarna explains his strategy on SOA and web services in an interview at QCon San Francisco.

WSO2 WSAS 2.2 released

The WSO2 WSAS team is pleased to announce the release of the WSO2 WSAS 2.2. WSO2 WSAS is an enterprise ready Web services engine powered by Apache Axis2 release under the Apache Software License 2.0. This release can be downloaded from http://wso2.org/projects/wsas/java Maven2 binary distribution download - Group Id : org.wso2.wsas - Artifact Id : wso2wsas - Version : 2.2 - Type : zip - WSO2 Maven2 Repository URL : http://dist.wso2.org/maven2/ Maven2 source distribution download - Group Id : org.wso2.wsas - Artifact Id : wso2wsas - Version : 2.2 - Type : zip - Classifier : src - WSO2 Maven2 Repository URL : http://dist.wso2.org/maven2/ From the WSO2 WSAS 2.2 - Release Note - 22nd Jan 2008 ===================================================== WSO2 WSAS is an enterprise ready Web services engine powered by Apache Axis2 and which offers a complete middleware solution. It is a lightweight, high performing platform for Service Oriented Archit

Performance benchmarking of data services

Image
This is a follow up post of my previous blog entry Call MySQL stored procedures using WSAS data services. Hence, I'd recommend the steps given there should be exercised before going through this post. I'm going to explain how I analyzed the performance of WSAS data service using ApacheBench, which is an embedded benchmarking utility comes with Apache httpd server. The procedure is very simple and can be enhanced with more scenarios as you wish. Step 1 Assuming the Apache web server is installed in your system, go to Apache_home/bin and run AB.exe You will see a set of options in the command prompt. Step 2 Invoke the data service which has been created in the previous post using Tryit utility. Make sure to switch on the 'Soap Tracer' so that we can capture the request soap envelope. Copy the soap message and save in xml (Say it is request.xml) format. You may have a look at How to monitor messages sent/received through WSAS in order to see how WSAS Soap Tracer is used.

Call MySQL stored procedures using WSAS data services

Image
WSO2 Web services application server (WSAS) is shipped with a lot of useful features which can be used effectively in a production system. One of these cool functionalities is exposing relational data using WSAS data services. Lets see how we can call an existing stored procedure using an WSAS data service. Here I'm going to use a MySQL DB instance for the demonstration purposes. You may use any DBMS as your preference. Step 1 Create a data base mysql>create database employeedb; Step 2 Create a table and inseert values. mysql>create table employee (id INTEGER, name varchar(20), address varchar(30)); mysql>insert into employee values (1, 'Charitha', 'Colombo'); Repeat the insert statement with more data. Step 3 Create a stored procedure. CREATE PROCEDURE getEmployee(empid INTEGER) select id, name, address from employee where id=empid; Step 4 We haven't used WSO2 WSAS data service configuration yet. All of the above are basic MySQL database setting up