Variables are not accepting in javascript for web services
<p>I am connecting to dotnet webservice using javascript using the following code:</p>

<pre><code>var packet='&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;soap:Body&gt;&lt;GetShoutMessages_New xmlns="http://fitzgeraldsoftware.com"&gt;&lt;CurrentLatitude&gt;'
    +CurrentLatitude+
    '&lt;/CurrentLatitude&gt;&lt;Currentlongitude&gt;'
    +CurrentLongitude+
    '&lt;/Currentlongitude&gt;&lt;SearchIndex&gt;'
    +Searchindex+
    '&lt;/SearchIndex&gt;&lt;SearchBy&gt;'
    +SearchBy+
    '&lt;/SearchBy&gt;&lt;strt&gt;'
    +currentstrtindex+
    '&lt;/strt&gt;&lt;end&gt;'
    +currentendindex+
    '&lt;/end&gt;&lt;/GetShoutMessages_New&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt;';
objXMLHttpRequest.send(packet);
</code></pre>

<p>In the above code in packet I am sending one parameter in  tag.</p>

<p>If I used '+searchlocation+' its not working, here searchlocation is a variable having value 'INDIA'</p>

<p>If I used india it is functioning well. 
Why does this not work?</p>
