Published on WSO2 Oxygen Tank (http://wso2.org)

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

By dims
Created 2007-04-28 20:13

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 [0]) 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 [0]). 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 [1] 

Source URL:
http://wso2.org/blog/dims/1133