Salesforce API and Axis2
Here’s a useful tip for Java developers integrating with the SalesForce API.
All Salesforce Java examples use Axis 1.3. If you’d like to work with Axis 2 stream, simply use the following switches on the WSDL2Java command line:
wsdl2java -Eofv -g -uw -u -uri enterprise.wsdl
This will save you a lot of time and frustration. To read the explanation, just have a look here