User login

sumedha's blog

Getting started with h2 database in no time

h2[1] is an upcoming database written purely in Java. It is open source and gaining wide popularity among other projects as well as community[2]. It claims to be faster than most of other open source & non open source databases[3].

Here is a short guide which will get you started with h2 in no time.

Note : These steps are performed on Linux. It may would work on Windows subjected to slight modifications

How to make WSDL display actual parameter names?

Problem

My POJO method has meaningful names for parameters. But when I deploy this as a web service in Axis2/WSAS, WSDL shows parameter names as param0,param1... etc. This is very confusing for clients of the service. How can I avoid this?

Problem via an example

1.Create a Java class containing following

class Test{
  public String greet(String name,String location){
    return "Hello "+ name + " from "+location;
  }
}

2. Compile the class

How to expose shell scripts as web services?

Introduction

Shell scripts allow sys-admins to write utility programs to speed up recurrent administration tasks. Usually they are faster compared to an equalent version from a traditional programming language & provides the expected functionality using few lines of code.
 
But often these scripts can only be accessed using a shell console. Following tutorial shows how you can extend the accessibility scope of your shell scripts by using WSO2's Web Services Application Server(WSAS).
 

How to manipulate web service request parameters using WSO2 ESB?

I have a web service which accepts following soap envelop.

How to use Data Service nested query feature?

Introduction

Data Service configuration Language (http://wso2.org/wiki/display/wsf/Data+Services+and+Resources)  allows you to call a query using results returned from prior. (i.e. nested query support). What follows is a small example demonstrating how to use nested query feature.

 

How to access SQLite 2.X Database from JDBC ( under Windows)?

Problem

JDBC driver available from http://www.zentus.com/sqlitejdbc/ is not compatible with SQLite 2.x databases.

Solution

1. Download driver from http://www.ch-werner.de/javasqlite/
2. Extract the zip file & copy sqlite_jni.dll into c:\windows\system32
3. Add sqlite.jar to you classpath
4. Following is how your java code should look like :

How to expose CSV file as a data service?

See my previous blog http://wso2.org/blog/sumedha/3157.

Earthquake Information via WSO2 Data Services

Syndicate content