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
| Attachment | Size |
|---|---|
| YahooV2Search.wsdl | 4.4 KB |
| Main.java_.txt | 1.32 KB |
- dims's blog
- Login or register to post comments
- Printer friendly version
- 2010 reads










