Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
14Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
Web Services With Websphere

Web Services With Websphere

Ratings: (0)|Views: 66 |Likes:
Published by Uday Kumar

More info:

Published by: Uday Kumar on Dec 04, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

10/16/2011

pdf

text

original

 
Develop and deploy J2EE Web services usingWebSphere Application Server Community Edition
Create a J2EE sample brokerage application using EclipseWTP tooling
Skill Level: IntermediateManu T. George(mageorge@in.ibm.com) Staff Software EngineerIBM21 Mar 2007Java™ 2 Platform, Enterprise Edition (J2EE) 1.4 supports two types of Web serviceendpoints: Plain Old Java Object (POJO) and Enterprise JavaBeans (EJB)endpoints. IBM® WebSphere® Application Server Community Edition (also referredto as Community Edition in this tutorial) is a J2EE 1.4-certified application server thatprovides support for these two types of Web service endpoints. This tutorial showsyou how to use the Eclipse Web Tools Platform (WTP) to create an enterpriseapplication that implements both POJO and EJB Web service endpoints, using IBMDB2® Express-C as the database for the application. You'll use the CommunityEdition server adapter (formerly known as the Eclipse plug-in) to deploy theapplication to an Community Edition instance. And finally, you'll develop a client tocall the Web services.
Section 1. Before you start
About this tutorial
This tutorial shows you how to use many of the tools included in the Eclipse WebTools Platform (WTP) to create a J2EE sample brokerage application that
Develop and deploy J2EE Web services using WebSphere Application Server Community Edition © Copyright IBM Corporation 1994, 2008. All rights reserved.Page 1 of 49
 
implements both POJO and EJB Web service endpoints. You'll use IBM DB2® Express-C as the database for the application, and you'll use the Community Editionserver adapter to deploy the application to an Community Edition instance.Afterward, you'll use the Eclipse WTP Web service testing functions to test your Webservices and write clients to invoke them.
Prerequisites
To succeed with this tutorial, you should be familiar with Java development ingeneral and, specifically, server-side Java development. You should understand thegeneral concepts behind relational databases and be familiar with basic J2EEconcepts, such as deployment descriptors and WAR archives. You should also befamiliar with XML, XML schemas, Eclipse, and the Eclipse WTP. Prior experiencewith application servers, Web services, and relational databases is alsorecommended.
System requirements
You need to download the following required (no-charge) applications to follow alongwith this tutorial and work with the sample code included:IBM DB2 Express-C 9IBM WebSphere Application Server Community Edition V1.1TheWebSphere Application Server Community Edition server adapter(formerly called the Eclipse plugin)TheEclipse IDE with Web Tools PlatformTheJava Web Services Developer Pack (Java WSDP) 2.0JDK 1.4.2_08 from Sun MicrosystemsYour hardware configuration should include the following:Support for the JDK/JRE listed above with at least 512MB of mainmemory (1GB recommended)At least 10MB of additional free disk space to install the softwarecomponents and examplesThe instructions in this tutorial are based on a Microsoft® Windows® operatingsystem. All of the tools and techniques covered in this tutorial also work on Linux® and UNIX® operating systems.
developerWorks® ibm.com/developerWorksDevelop and deploy J2EE Web services using WebSphere Application Server Community EditionPage 2 of 49© Copyright IBM Corporation 1994, 2008. All rights reserved.
 
Section 2. Get started -- an overview of J2EE Webservices
A
Web service 
is a software component that can be invoked over a network and thatuses a standardized XML messaging system for data exchange. It can be accessedover standard network protocols, such as Simple Mail Transfer Protocol (SMTP) andHTTP using SOAP as the messaging system. A Web service is described via theWeb Services Description Language (WSDL) specification (seeResourcesfor a linkto more WSDL content), and it can be registered in a Universal Description,Discovery, and Integration (UDDI) registry where interested clients can look up theservice. The clients of the Web service can be written in any language and on anyplatform, and they can invoke the service by following the rules in the WSDL file.Two of the important specifications that are used by Web services are:
WSDL --
A language for describing Web services as a set of endpointsoperating on messages containing either document-oriented orprocedure-oriented information.
SOAP --
An XML-based object invocation protocol (seeResourcesfor alink to more SOAP content).In J2EE 1.4, Web services can be implemented using two types of endpoints:POJOs, or servlet endpoints, and EJB endpoints:A Web service is called a
POJO Web service 
if the serviceimplementation class is an ordinary java object. In Community Edition,such a Web service is registered as a servlet in the Web application'sdeployment descriptor.A Web service is called an
EJB Web service 
if the service implementationclass is a stateless session bean, and the methods in the session beanclass are exposed for invocation using SOAP calls.
Implement J2EE Web services in Community Edition
Community Edition V1.1 supports J2EE Web services by using Apache Axis 1.4(seeResourcesfor a link to more information on Axis). Axis is a Web service runtime from the Apache Software Foundation. It's configured using GBeans and isplugged in to Community Edition. It provides support for both types of J2EE Web
ibm.com/developerWorks developerWorks® Develop and deploy J2EE Web services using WebSphere Application Server Community Edition © Copyright IBM Corporation 1994, 2008. All rights reserved.Page 3 of 49

Activity (14)

You've already reviewed this. Edit your review.
1 hundred reads
preetstwok liked this
saumy_86 liked this
k2sh liked this
rajputarvind liked this
uwaiskarni liked this
selvascribd1 liked this
pavan540 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->