Welcome to WebSphere-World!

     Main Menu
· Home
· Topics
· Downloads
· Forums
· Submit News
· Top 10

     Other Modules
· Sign In / Your Account
· Members List
· Statistics
· Feedback
· Need a break? [Games]
· About this site / FAQs

     Who's Online
There are currently, guest(s) and member(s) that are online.

You are Anonymous user. You can register for free by clicking here

     User's Login
Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

     GameHighScores

 Axis in WSAD

Web servicesHere is a step-by-step guide in creating a Web Service Client to xml.amazon.com using WSAD and Apache Axis Beta 3.

Read more for the detailed steps...

Overview

Amazon.com has released a beta Web Service to allow other partners to search their products and even put things into its shopping carts.  This tutorial is written to show you how easy it is to create your own servlet using Apache Axis and WSAD to query the Amazon live product database.  If you have all the pre-requisites downloaded, it could take less than 30 minutes!

WSAD has a built-in SOAP runtime, but not the latest and greatest Apache Axis.  Axis has a lot of advantages over SOAP:
  • Speed. Axis uses SAX (event-based) parsing to acheive significantly greater speed than earlier versions of Apache SOAP.
  • Flexibility. The Axis architecture gives the developer complete freedom to insert extensions into the engine for custom header processing, system management, or anything else you can imagine.
  • Stability. Axis defines a set of published interfaces which change relatively slowly compared to the rest of Axis.
  • Component-oriented deployment. You can easily define reusable networks of Handlers to implement common patterns of processing for your applications, or to distribute to partners.
  • Transport framework. We have a clean and simple abstraction for designing transports (i.e. senders and listeners for SOAP over various protocols such as SMTP, FTP, message-oriented middleware, etc), and the core of the engine is completely transport-independent.
  • WSDL support. Axis supports the Web Service Description Language, version 1.1, which allows you to easily build stubs to access remote services, and also to automatically export machine-readable descriptions of your deployed services from Axis.

Requirement:

How to:

  1. In WSAD, create a J2EE Project ("AmazonAxisEar") and Web Project ("AmazonAxisClient")
  2. Copy all jar files in axis-1_0\lib into \wsad\workspace\AmazonAxisClient\webApplication\WEB-INF\lib
  3. Copy AmazonWebServices.wsdl (from Amazon Developer Kit) into \wsad\workspace\AmazonAxisClient
  4. On the Web Project, right-click to select Properties, Java Build Path, Library, Add Variable, Browse, WAS_XERCES to include Xerces into the build path.
  5. Switch to Java Perspective, expand axis.jar to find the class "org.apache.axis.wsdl.WSDL2Java"
  6. Right-click on it to change its Program Argument to "-v -p com.amazon.soap.axis \wsad\workspace\AmazonAxisClient\AmazonWebServices.wsdl -o \wsad\workspace\AmazonAxisClient\source"
  7. Select "Run - Java Application" on the WSDL2Java to generate the Java Proxy classes using the provided WSDL file.  This WSDL2Java is a very important and convenient tool to save you from hand-coding all those WebServices proxies.
  8. Select "AmazonAxisClient" Web Project and select "Refresh on Local".  You should see the generated Java proxies under the source subdirectory
  9. Switch back to Web Perspective, under the com.amazon.soap.axis package, create a test servlet.  Let's call it "KeywordSearchTestServlet".
  10. Cut-and-paste the code KeywordSearchTestServlet.java into your KeywordSearchTestServlet
  11. Create an HTML form (KeywordSearch.html) under webApplication folder (remember to use "Save As..." on the link to save the file, instead of displaying it on your browser.)
  12. Right-click on KeywordSearch.html and select "Run On Server" to start the WebSphere Test Environment
  13. Put your developer token into the form (Dev-Tag) and submit.  Voila, you should see something like this.
The Lord of the Rings: The Fellowship of the Ring - Original Motion Picture Soundtrack $14.99
The Lord of The Rings: The Fellowship of The Ring - Original Motion Picture Soundtrack (Limited Edition) $26.99
Lord of the Rings $14.99
The Starlit Jewel: Songs From J. R. R. Tolkien's "The Lord of the Rings" & The Hobbit $15.99
Rings Around the World (Bonus CD) $13.99
Smoke Rings in the Dark $14.99
Tribute to the Lord of the Rings $7.98
Music Inspired By the Lord of the Rings $22.99
Music Inspired By Lord Of The Rings $9.98
Ahead Rings Out $14.99

Reference:  You can download my working EAR file. (source code included)

Yes.  This is it.   Next up?  Using Axis as your WebServices runtime in WSAD.  See you next time...

Billy Lo
www.websphere-world.com





 
     Related Links
· More about Web services
· News by billylo


Most read story about Web services:
Axis in WSAD


     Article Rating
Average Score: 4
Votes: 17


Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad


     Options

 Printer Friendly Printer Friendly


"" | Login/Create an Account | 4 comments | Search Discussion
The comments are owned by the poster. We aren't responsible for their content.

No Comments Allowed for Anonymous, please register

Re: Axis in WSAD (Score: 0)
by Anonymous on Thursday, April 08 @ 17:07:46 EDT
Not registered user
The Amazon Web Services WSDL is on this URL:

http://soap.amazon.com/schemas3/AmazonWebServices.wsdl

In new kit, this is not included.




Re: Axis in WSAD (Score: 1)
by janusbassinet on Monday, August 22 @ 06:35:00 EDT
Not registered user
The Codman Square Health Center is proud to celebrate the fundraisingmomentum for the Neighborhood Backyards. These playgrounds will improvethe health of children by giving them a great, safe place to playoutdoors, says Chief Executive Officer Bill Walczak. fx currency exchange [maxi.boulay.be] advanta credit card [www.manchester.com] records [csep10.phys.utk.edu] presents for women [maxi.creates.disorder.com.au] image [www.manchester.com] batteries for digital cameras [www.firstdancephotography.com] classes [www.sbktechnology.com] hp dvd [maxi66.servegame.com] sportsbook [csep10.phys.utk.edu] consumer credit counseling service atlanta [www.manchester.com] debtline [csep10.phys.utk.edu]fob's fico score [csep10.phys.utk.edu] computer games for free [csep10.phys.utk.edu] bankruptcy [maxi4.servegame.org]



Re: Axis in WSAD (Score: 1)
by awsan on Tuesday, March 04 @ 02:31:21 EST
Not registered user
صور توبكات [al-wlid.com] , توبكات ملونة [al-wlid.com] صور بنات للماسنجر [al-wlid.com], توبكات جديدة [al-wlid.com], نكنيمات ملونة جديدة  [al-wlid.com] رموز للماسنجر [al-wlid.com] , رموز متحركة للماسنجر [al-wlid.com] , سمايلات متحركة للماسنجر [al-wlid.com]



Re: Axis in WSAD (Score: 1)
by audai on Wednesday, June 18 @ 18:35:18 EDT
Not registered user
 العاب بنات [games.dj4ar.net]
  مرجان احمد مرجان [aflam.dj4ar.net] - اغاني [dj4ar.net] - اغاني عربية [dj4ar.net] - اغاني اجنبية [dj4ar.net] - تحميل اغاني عربي [dj4ar.net] - تحميل اغاني اجنبية [dj4ar.net] - mp3 اغاني [dj4ar.net]
thnxxxxx






WebSphere is a registered trademark of International Business Machines Corporation in the United States or other countries or both.
Please note that this site is a user-driven community site. It is not operated by IBM. Information is provided on an as-is basis and it may or may not be supported by IBM.

PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 1.76 Seconds