1)Inside my axis2-1.5\lib, there're so many jar files, which are the relevant lib for me to get Service Client?
Does it matter? That is to say, is there a particular benefit in removing any of the files? You could find out by trial-and-error (remove jar files one by one, and see if there are runtime errors) if you really wanted to, but I see little point in doing so.
2)i came across the WSDL2Java tool, its for generating the java classes which are related to consuming some WSDL?
Kind of. wsdl2java reads the WSDL, and then uses that information to create Java client code. For running the client code the WSDL is no longer needed.
3)For example, i need to consume a web service online http://~.php?WSDL, how would the WSDL2Java come into place?
The
http://ws.apache.org/axis2/1_5/quickstartguide.html page explains how to use it for creating client code for the various types of clients. If you don't know which type of client to use, start with the XMLBeans type.
4)Can i work with axis2 for the web service client without using the wsdl2java?
Yes, but you'd have to write the client code yourself - not a fun or easy task by any means. Why not let the tool do the work for you? You'll save lots of time.