title: ajax call - web services
body: <p>I am trying to use web service &amp; ajax call. Already i have deployed my web-service in my virtual machine.</p>
  
  <p>URL:</p>
  
  <p><a href="http://www.lumiin.ch:8080/lumiin-service/lumiin/control/lookup/Priority" rel="nofollow">http://www.lumiin.ch:8080/lumiin-service/lumiin/control/lookup/Priority</a></p>
  
  <p>Try this URL with Rest client Jar </p>
  
  <p>Key = accept
  value = Application/json</p>
  
  <pre><code>$.ajax({  
             type: "GET",  
             url: "http://www.lumiin.ch:8080/lumiin-service/lumiin/control/lookup/Priority", 
             dataType: "json",           
             success: function(resp){  
               // we have the response  
               alert("Server said123:\n '" + resp );  
             },  
             error: function(e){  
               alert('Error121212: ' + e);  
             }  
           });
  </code></pre>
  
  <p>How to display the output from my URL using ajax calls. Any help will be appreciated. i am struggling a lot..</p>
  
  <p>Regards
  Karthick</p>