<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET AJAX Networking and Web Services</title><link>http://forums.asp.net/1009.aspx</link><description>Discuss your issues with the client and server interaction in AJAX using web services and other transports used by AJAX</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Syncronous call to webservice</title><link>http://forums.asp.net/thread/1786873.aspx</link><pubDate>Wed, 04 Jul 2007 12:58:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1786873</guid><dc:creator>KaziManzurRashid</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1786873.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=1786873</wfw:commentRss><description>&lt;p&gt;Follow the Asp.net Ajax version &lt;a href="http://geekswithblogs.net/rashid/archive/2007/07/04/SJAX-Call.aspx"&gt;http://geekswithblogs.net/rashid/archive/2007/07/04/SJAX-Call.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Syncronous call to webservice</title><link>http://forums.asp.net/thread/1786726.aspx</link><pubDate>Wed, 04 Jul 2007 11:29:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1786726</guid><dc:creator>Julito</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1786726.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=1786726</wfw:commentRss><description>&lt;p&gt;Thanks a lot.&lt;/p&gt;</description></item><item><title>Re: Syncronous call to webservice</title><link>http://forums.asp.net/thread/1786270.aspx</link><pubDate>Wed, 04 Jul 2007 06:43:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1786270</guid><dc:creator>Raymond Wen - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1786270.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=1786270</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;To call a web service synchronously, you can use XmlHttpRequest object, and specify it to send request synchronously. For example:&lt;/p&gt;&lt;p&gt;&amp;nbsp;UserName:&amp;lt;input id=&amp;quot;Text2&amp;quot; type=&amp;quot;text&amp;quot; /&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input id=&amp;quot;Button1&amp;quot; type=&amp;quot;button&amp;quot; value=&amp;quot;Client Check&amp;quot; onclick=&amp;quot;CheckUserExist();&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Result:&amp;lt;input id=&amp;quot;Text1&amp;quot; type=&amp;quot;text&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;var client;&lt;br /&gt;&lt;br /&gt;function CheckUserExist()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (window.XMLHttpRequest) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; client = new XMLHttpRequest();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (window.ActiveXObject) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; client = new ActiveXObject(&amp;quot;Microsoft.XMLHTTP&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; // client.onreadystatechange = handler;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; client.open(&amp;quot;POST&amp;quot;, &amp;quot;http://localhost/Samples/MyService.asmx/IsUserExist&amp;quot;&lt;b&gt;, false&lt;/b&gt;); // This parameter sepcifies to request synchronously&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; client.setrequestheader(&amp;quot;Content-type&amp;quot;, &amp;quot;application/x-www-form-urlencoded&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; client.send(&amp;quot;userName=&amp;quot; + document.getElementById(&amp;quot;Text2&amp;quot;).value);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(client.responseText);&lt;br /&gt;} &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[WebMethod]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string IsUserExist()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Threading.Thread.Sleep(3000);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &amp;quot;Hello World&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hope this helps.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Syncronous call to webservice</title><link>http://forums.asp.net/thread/1779177.aspx</link><pubDate>Fri, 29 Jun 2007 09:18:29 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1779177</guid><dc:creator>Julito</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1779177.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1009&amp;PostID=1779177</wfw:commentRss><description>&lt;p&gt;I am implementing a control inherited from &lt;font size="2"&gt;System.Web.UI.WebControls.BaseValidator,I want&amp;nbsp;that the control&amp;nbsp;perfoms client side validation against a web service in the evaluationfunction of the control.&amp;nbsp; I already do the script and web service&amp;nbsp;registration and the call to the webservice inside the call to the evaluationfunction, the problem is that this call is asyncronous. There is a way to do this call syncronous or to wait to the callback function of the webservice?.&lt;/font&gt;&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>