title: Java Webservice Client (Best way)
body: <p>I have a third party WSDL, I need to write code in Java for a web service client to invoke the operations in the third party WSDL. Right now, I have generated the client stub using the WSDL2JAVA tool from Axis and used the XMLbeans for data binding. </p>
  
  <ol>
  <li>What is the best approach to do this JAVA?</li>
  <li>I read about SAAJ, looks like that will be more granular level of approach?</li>
  <li>Is there any other way than using the WSDL2Java tool, to generate the code. Maybe <code>wsimport</code> in another option. What are the pros and cons?</li>
  <li>Can someone send the links for some good tutorials on these topics?</li>
  <li>What are the options we need to use while generating the code using the WSDL2Java? </li>
  </ol>
  
  <p>I used some of the basic things initially. Now I have these options </p>
  
  <pre><code>C:\axis2-1.5.1\bin&gt;wsdl2java -uri  mywsdlurl  -o client -p somepackage -d xmlbeans -s -t -ssi
  </code></pre>