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
| Attachment | Size |
|---|---|
| Main.java_.txt | 5.03 KB |