title: What is the difference between Document style and RPC style communication?
body: <p>Can somebody explain to me the differences between Document and RPC style webservices? Apart from JAX-RPC, the next version is JAX-WS, which supports both Document and RPC styles.  I also understand document style webservices are meant for Asynchronous communication where a client would not block until the response is received.</p>
  
  <p>Either way, using JAX-WS I currently annotate the service with <em>@Webservice</em>, generate the WSDL and from that WSDL I generate the client side artifacts.</p>
  
  <p>Once the artifacts are received, in both styles, I invoke the method on the port. Now, this does not differ in RPC style and Document style. So what is the difference and where is that difference visible?</p>
  
  <p>Similarly, in what way does SOAP over HTTP differ from XML over HTTP? After all SOAP is also XML document with SOAP namespace.</p>