title: How to call Java web service (JAX-WS) from AJAX?
body: <p>I am developing java web services (JAX-WS) to insert data into mysql DB and retrieve it. This web service has two methods i.e. fetchFromDB and insertIntoDB. Services seems to be running fine when I test them using netbeans IDE.</p>
  
  <pre><code>Address: /CalculatorWSService
  WSDL:    /CalculatorWSService?wsdl
  </code></pre>
  
  <p>but when I try to access it using AJAX's xmlHttpRequest object by providing url <a href="http://localhost:8080/CalculatorApp/CalculatorWSService" rel="nofollow noreferrer">http://localhost:8080/CalculatorApp/CalculatorWSService</a>. It is not able to access it. I have developed C# web services and It has been so easy to access them with a url but java web services don't seem to follow that.</p>
  
  <p>My question is</p>
  
  <p>What url to use to access the web service operations in AJAX? (Do I need to use '?wsdl' in the url?
  Is there a javascript ajax library to easily access JAX-WS web services?
  Apache Axis web services are a better choice over JAX-WS?
  Please help me, Thanks, Jay</p>