Axis2's WSDL 2.0 HTTP Code generation a.k.a Try Flickr 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 Flickr API as shown below:

wsdl2java.bat -u -wv 2.0 -uri http://wso2.org/repos/wso2/trunk/wsas/java/modules/samples/FlickrClient/wsdl/FlickrService.wsdl

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

Step #4: use http://idgettr.com/ to find the user id of your favorite flickr person. Example, Ken Coar's id is 88257575@N00

Step #5: 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\flickr>java Main 88257575@N00 xxxxxyyyyyzzzzz
User ID: 88257575@N00
The Information of the following user was retrived
The ID of the person is : 88257575@N00
The name of the person is : Rodent of Unusual Size
The real name of the person is : Ken Coar
The location of the person is : US
The photosurl is : http://www.flickr.com/photos/rous/
The profileurl is : http://www.flickr.com/people/rous/
Details of photos taken
The First photo was taken on : 1129792175
The firstdatetaken was taken on : 2004-11-18 15:15:17
The number of photos : 442
AttachmentSize
Main.java_.txt5.03 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)