title: JAX-WS vs SAAJ Style, Which to Use
body: <p>What is difference, philosophical or otherwise, between calling a web service from Java code using Service and Dispatch classes, vs a SOAPConnection class?</p>
  
  <p>For example, something like this:</p>
  
  <pre><code>SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
  SOAPConnection soapConnection = scf.createConnection();
  SOAPMessage reply = soapConnection.call(soapMessage, url);
  </code></pre>
  
  <p>vs something roughly along these lines?</p>
  
  <pre><code>svc = Service.create(url, serviceName);
  Dispatch&lt;SOAPMessage&gt; dispatch = svc.createDispatch(portName, SOAPMessage.class, service.Mode.MESSAGE);
  SOAPMessage reply = (SOAPMessage)dispatch.invoke(soapMessage);
  </code></pre>
  
  <p>What is the difference between these, and why select one approach over the other?</p>