Web Services
  Home arrow Web Services arrow Page 3 - An Introduction to Web Services
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB SERVICES

An Introduction to Web Services
By: Mamun Zaman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 11
    2007-05-30

    Table of Contents:
  • An Introduction to Web Services
  • A closer look at SOAP, WSDL and UDDI
  • Web Services Development and Deployment
  • Getting to Work

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    An Introduction to Web Services - Web Services Development and Deployment


    (Page 3 of 4 )

    In this section and the next we will discuss the development of web services using Apache AXIS and Java. First we need to prepare the deployment environment for our web services. We will use Tomcat as our application server.

    Tomcat Installation: You can get the latest version of Tomcat from Apache web sites. I use Tomcat 6.x. The easiest way to install Tomcat in Windows is to download the .exe binary installer and run it. For installing Tomcat in Linux or Solaris I usually use the zipped binary version. I unzip this distribution in the /usr/local folder, and create a link file named tomcat for the unzipped folder.

    To start and stop Tomcat we need to specify two shell variables, $JAVA_HOME and $TOMCAT_HOME. $JAVA_HOME is the location of JDK. And $TOMCAT_HOME is usually /usr/local/tomcat (If you create the link as specified before).

    To start up Tomcat server use:

    export JAVA_HOME=path_to_jdk
    export TOMCAT_HOME=/usr/local/tomcat
    $TOMCAT_HOME/bin/startup.sh

    To stop Tomcat server use -

    export JAVA_HOME=path_to_jdk
    export TOMCAT_HOME=/usr/local/tomcat
    $TOMCAT_HOME/bin/shutdown.sh

    NOTE: You can save the JAVA_HOME and TOMCAT_HOME declarations in the .profile or .bash_profile file, whichever one is applicable.

    AXIS Installation: Let me explain first what AXIS is for those who do not know. Apache AXIS is a SOAP engine. It is also a simple stand-alone server, can plug into servlet engines (like Tomcat), and supports WSDL. AXIS is a third generation of Apache SOAP. To install Apache AXIS with Tomcat, you just need to download the axis binary distribution from Apache web sites (http://www.apache.org/dyn/closer.cgi/ws/axis/1_4 ). Unzip it. Copy into Tomcat's webapps directory, and that's all you need to do!

    Here in the above picture, you can see I just placed the axis folder (downloaded and unzipped) into the webapps directory of Tomcat. Tomcat will treat this as a web application. To access the AXIS home go to http://localhost:xxxx/axis, where xxxx is the port you used for Tomcat. To view all the deployed services click the List link as shown below.

    List of deployed services -

    AdminService is used for deploying and undeploying other services.

    NOTE: Apache SOAP does not support WSDL. Apache AXIS does. We didn't know this when we developed our first web service.

    More Web Services Articles
    More By Mamun Zaman


       · Very Good Article for Beginners who start learning Web ServicesThanks
       · simple and easy to understand........nice effort..
     

    WEB SERVICES ARTICLES

    - Safety, Idempotence, and the Resource-Orient...
    - The Resource-Oriented Architecture in Action
    - Features of the Resource-Oriented Architectu...
    - The Resource-Oriented Architecture
    - Getting Started with Flex
    - Automated Billing and Faxing for the Web
    - An Introduction to Web Services
    - The Foundations of Web Services: From Novice...
    - Web Services Reengineering: Finishing Touches
    - Fault Handling with Web Services
    - Flow and Web Services
    - Process Lifecycles and Web Services
    - Business Processes and Web Services
    - Orchestrating Web Services
    - Notifications and Resources in the WS-Resour...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek