KD4v Web Services Description

KD4v Web Service

Updated: 29/12/2011

KD4v Web Services enable developers to access KD4v services via the Simple Object Access Protocol (SOAP). KD4v Web Services have been tested with:
  • Java (Apache Axis version 2) under Linux

Version 1.0 (current)

To create a SOAP client application developer should use the following WSDLs:

Service name Service description WSDL
Prediction Service The estimated effect of human non-synonymous polymorphisms on the function of a protein http://kbm.u-strasbg.fr:8080/axis/prediction.jws?wsdl

How to use KD4v Web Service

With Java and Apache Axis

Preinstalled Software
You should have Apache Axis for Java installed and Java Development Kit (JDK) to compile java files generated by Axis.

You have to download the WSDL document in your machine. Download from your web browser the document and be sure that the extension of the document is *.wsdl

Then you use the following command to create Web Service stub files.

In axis/lib directory:
[root@bird lib]# java -classpath axis.jar:axis-ant:activation.jar:.... org.apache.axis.wsdl.WSDL2Java your_local_wsdl_document.wsdl
java -classpath axis.jar:axis-ant
This operation creates java files that you have to use as package into your java client program.

Client Application Example
package client; import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import fr.u_strasbg.kbm.axis.prediction_jws.*;

public class PredictionClient {

   public static void main(String[] args) {
      PredictionService predictionService = new PredictionServiceLocator();
      System.out.println("Running prediction...");
            Prediction port = predictionService.getprediction();
                  System.out.println(port.ilpPrediction("P00167", "p.Glu43Cys"));
            catch (RemoteException e1)
      catch(ServiceException e)