Axis2's WSDL 2.0 HTTP Code generation (Take II) a.k.a Try Yahoo REST Search API using Axis2

Step #1: Download Axis2 1.2 and set AXIS2_HOME

Step#2: Run WSDL2Java against the WSDL2.0 document we have come up for Yahoo REST API (See attached YahooV2Search.WSDL) as shown below:

wsdl2java.bat -u -wv 2.0 -uri YahooV2Search.wsdl

Step #3: Write some code to execute the generated stub (see attached Main.java). Drop the Main.java into src directory.

Step #4: Run "ant jar.client", set up your classpath with all axis2 jars and the generated service client jar and execute it. Here's my run.
C:\axis2-1.2\samples\yahoo>java Main  
[0]: www.wso2.com/
[1]: wso2.org/
[2]: www.wso2.com/about/
[3]: www.wso2.com/products/wsas/
[4]: www.wso2.com/about/engineering/
[5]: www.wso2.com/products/esb/
[6]: www.wso2.net/files/zend_conference_tutorial.pdf
[7]: wso2.org/jira
[8]: wso2.org/qa
[9]: wso2.org/downloads
PS: Many Thanks to David Orchard for the inspiration 
AttachmentSize
YahooV2Search.wsdl4.4 KB
Main.java_.txt1.32 KB
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)