 |
| Main Menu |  |
| Other Modules |  |
| 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 |  |
|
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 |
Here 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:
- In WSAD, create a J2EE Project ("AmazonAxisEar") and Web Project
("AmazonAxisClient")
- Copy all jar files in axis-1_0\lib into \wsad\workspace\AmazonAxisClient\webApplication\WEB-INF\lib
- Copy AmazonWebServices.wsdl (from Amazon Developer Kit) into
\wsad\workspace\AmazonAxisClient
- 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.
- Switch to Java Perspective, expand axis.jar to find the class
"org.apache.axis.wsdl.WSDL2Java"
- 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"
- 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.
- Select "AmazonAxisClient" Web Project and select "Refresh on
Local". You should see the generated Java proxies under the source
subdirectory
- Switch back to Web Perspective, under the com.amazon.soap.axis
package, create a test servlet. Let's call it "KeywordSearchTestServlet".
- Cut-and-paste the code KeywordSearchTestServlet.java
into your KeywordSearchTestServlet
- 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.)
- Right-click on KeywordSearch.html and
select "Run On Server" to start the WebSphere Test Environment
- Put your developer token into the form (Dev-Tag) and submit. Voila, you
should see something like this.
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 |  |
| Article Rating |  |
Average Score: 4 Votes: 17

| |
| Options |  |
|
|
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] |
|
|
| 
|