Koozali.org: home of the SME Server

Web Services Architecture

Offline ronaldson40

  • ****
  • 96
  • +0/-0
Web Services Architecture
« on: June 27, 2007, 08:53:38 AM »
Hi
Is SME server Web Service compliant?

Can I run java based web services on SME server?

If yes, can you direct me to any documentation, which can help me more on the same.

Regards
Ronald

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Web Services Architecture
« Reply #1 on: June 27, 2007, 07:12:32 PM »

Offline ronaldson40

  • ****
  • 96
  • +0/-0
Web Services Architecture
« Reply #2 on: June 27, 2007, 09:14:21 PM »
Tomcat I suppose is only the web server for running jsp files.

I was looking for running web services. On the apache website, there is a site of web services.. Tomcat I suppose does not support xml-rpcs.
Howvwer on the Apache Foundation website they have a site for web services.

http://ws.apache.org/

They use a package called AXIS web services. Is the installation of this package similar to the installation of Tomcat on SME?

Is there a how-to for this?

Offline ronaldson40

  • ****
  • 96
  • +0/-0
Web Services Architecture
« Reply #3 on: June 27, 2007, 09:32:48 PM »
Can you tell me if I could follow the instructions on this website for installing AXIS?
http://www.lankalinux.com/?q=node/8

Will it lead to any problems when running it from commandline in SME Server. The tomcat server, I could install using the howto mentioned on the contribs site. However I am bit skeptical about the remaining parts... i.e the Maven and AXIS

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Web Services Architecture
« Reply #4 on: June 27, 2007, 11:45:45 PM »
Step 1:
Follow the tomcat howto and install tomcat and java.

In a few hours I install maven and tell you howto install.

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Web Services Architecture
« Reply #5 on: June 28, 2007, 02:57:34 AM »
Ok.
Now follow these commands:

Download maven
Code: [Select]
wget http://apache.adcserver.com.ar/maven/binaries/maven-1.1.tar.gz
tar -xzf maven-1.1.tar.gz


Change the name of maven-1.1 directory to maven. The move to /usr/local directory.

Edit you bash profile. Edit the file /root/.bash_profile

This is my .bash_profile file. Make the necesary changes to look like this:


Code: [Select]
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

MAVEN_HOME=/usr/local/maven
PATH=$PATH:$HOME/bin:$MAVEN_HOME:$MAVEN_HOME/bin

export PATH
unset USERNAME


Create a file named java.sh an put under /etc/profile.d directory.

Code: [Select]
#!/bin/bash
######################################################
# JAVA LIBS
#
######################################################
if [ -z "$JAVA_HOME" ]; then
    JAVA_HOME=/usr/java/jdk
    JAVAHOME=$JAVA_HOME
    CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
    PATH=$JAVA_HOME/bin:$PATH
fi
export PATH CLASSPATH JAVAHOME JAVA_HOME

for i in /etc/profile.d/*-java.sh ; do
    if [ -r "$i" ]; then
        . $i
    fi
done
unset i


Set perms to 777.

Reboot your server.

After reboot type: maven -v and you see it is run ok.

Then you can install axis as java aplication.

Offline ronaldson40

  • ****
  • 96
  • +0/-0
Web Services Architecture
« Reply #6 on: June 28, 2007, 04:36:28 PM »
Quote
Then you can install axis as java aplication.


Hi What do you mean by the above?

Should download the WAR file of AXIS and run it using  maven?

Sorry i am a newbie at this sort of stuff.

Why doesn't someone make a script or a contrib for axis on the wiki site. Web Services should be by default supported in SME.

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Web Services Architecture
« Reply #7 on: June 28, 2007, 05:23:03 PM »
Quote from: "ronaldson40"

Why doesn't someone make a script or a contrib for axis on the wiki site. Web Services should be by default supported in SME.


Why you not try to install? SME server allow java aplications as I demostrated, but if you want to learn java aplications, do it yourself.
Ask at axis mail lists. You have tomcat and maven working ok.

Offline ronaldson40

  • ****
  • 96
  • +0/-0
Web Services Architecture
« Reply #8 on: June 28, 2007, 10:00:28 PM »
Thanks mate for all your help...

[update : 03 July 07]
Tomcat up and running!