calling REST service using Jquery/javascript
<p>I need to call a REST Service from my classic ASP application.
I heard that the best way to call a REST service is using Jquery.
Its not working for me. I dont know what mistake I am doing here .
Here is my code.</p>

<pre><code>&lt;script language="javascript" scr="inc\javascript\jquery-1.7.2.js" &gt;&lt;/script&gt;
 &lt;script language="javascript"&gt;

$(document).ready(function(){
        CallService();
    });

                function CallService()
                {
                    alert("HelloWorld");
                    var Type = "POST";
                    var ServiceUrl = "http://mysite/restservice.svc";
                    var ContentType = "application/xml; charset=utf-8";
                    var DataType = "xml"; 
                    var ProcessData = false; 

                    $.ajax({
                        type                : Type, //GET or POST or PUT or DELETE verb
                        url                 : ServiceUrl, // Location of the service
                       //data               : varData, //Data sent to server
                        contentType         : ContentType, // content type sent to server
                        dataType            : DataType, //Expected data format from server
                        processdata         : ProcessData, //True or False
                       // success           : function(msg) {//On Successfull service call
                       // ServiceSucceeded(msg);                    
                        },
                        error: ServiceFailed// When Service call fails
                    });
                }

&lt;/script&gt;
</code></pre>
