Sending data to webservice without using querystring in jQuery
<p>I have the following jquery using which I send some data to a webservice.</p>

<pre><code>var value1="This is val1";
var value2="This is val2";

$.ajax({
                url: "Test.asmx/PostData",
                data: { data1: value1, data2: value2 },
                success: function (html) { strReturn = html; },
                async: false
            });
if (strReturn == "") {
//some error occured or the data did not get send to webservice
}
else
{
//The data is send to the webservice
}
</code></pre>

<p>Now the problem is that since the data is posted as query  string. If the length of data in value1 &amp; value2 are very long, The data is not send to the webservice.</p>

<p>How can I avoid sending the data using querystring. I've tried setting the ajax parameters "processData" as false and "type" as POST but still no luck.</p>

<p>It would be great if anyone could send me the jquery code on how this can be done.</p>

<p>Thanks in advance</p>
