title: how to pass credentials for a webservice using jquery ajax call?
body: <p>I am using the jquery ajax call like this:</p>
  
  <pre><code>$.ajax({
           url: WEBSERVICE_URL,
              type: "GET",
              dataType: "application/json; charset=utf-8",                   
              username: "admin",  // Most SAP web services require credentials
              password: "admin",
              processData: false,
              contentType: "application/json",
              success: function() {
                 alert("success");
              },
              error: function() {
                     alert("ERROR");
                  },
      });
  </code></pre>
  
  <p>still the call is not going to web service. Everytime I am getting ERROR alert. Can some body help me on this please?</p>