<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>[How Do I:] ASP.NET AJAX Enable an Existing Web Service?</title><link>http://asp.net</link><pubDate>Mon, 28 Dec 2009 03:20:06 GMT</pubDate><generator>umbraco</generator><description>Comments for [How Do I:] ASP.NET AJAX Enable an Existing Web Service?</description><language>en</language><atom:link href="http://asp.net/rss/comments/33601" rel="self" type="application/rss+xml" /><item><title>Comment Posted by aarturo</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Mon, 04 Aug 2008 17:21:14 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000519</guid><description><![CDATA[ <p>Hi Joe,</p> <p>Your example worked great! &#160;but as soon as I created a separate project for my webservice I ran into issues. &#160; It appears that I am not getting a resolveable path for my asmx file.</p> <p>typically it would be something like </p> <p>Path=&quot;WebServiceName.asmx&quot; &#160;</p> <p>If the webservice resides in same project but I have it in another project whose name is wsNorthwind and the webservice is NorthwindJS.asmx. &#160;So I figured this</p> <p>Path=&quot;~/wsNorthwind/NorthwindJS.asmx&quot; &#160;I get an error that says NorthwindJS is undefined.</p> <p>I also tried envoking it as wsNorthwind.NorthwindJS.SayHello with no success?!</p> <p>What gives??</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/aarturo.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cv_vikram</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Wed, 06 Aug 2008 13:26:59 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000520</guid><description><![CDATA[ <p>It is simple and good....</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/cv_vikram.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by pnv.ravikiran</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Wed, 06 Aug 2008 21:23:24 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000521</guid><description><![CDATA[ <p>really helpful, thanks Joe</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/pnv.ravikiran.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by westdesertguy</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Fri, 19 Sep 2008 17:56:51 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000522</guid><description><![CDATA[ <p>Joe, it seems your example fails in FireFox and Google Chrome. What would cause this? </p> <p>Great tutorial though! Thanks!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/westdesertguy.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by GaganK1</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Wed, 24 Sep 2008 20:26:20 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000523</guid><description><![CDATA[ <p>Hi Joe</p> <p>I do have same problem as &quot;aarturo&quot;.</p> <p>I am not able to call my web service which resides outside of my current application. Any Idea on that...</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/GaganK1.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by trevorabrooks</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Wed, 26 Nov 2008 12:57:48 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000524</guid><description><![CDATA[ <p>use &quot;&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://myserver/myapp/myfile.asmx&quot;&quot;&gt;myserver/.../myfile.asmx&quot;&lt;/a&gt;</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/trevorabrooks.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Danny117</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Sun, 21 Dec 2008 12:21:43 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000525</guid><description><![CDATA[ <p>This is a must watch video.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Danny117.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by djibril_chimere_DIAW</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Tue, 30 Dec 2008 03:01:09 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000526</guid><description><![CDATA[ <p>Thanks! J&#235;r&#235;j&#235;f!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/djibril_chimere_DIAW.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ashokrbp</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Mon, 02 Mar 2009 23:44:47 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000527</guid><description><![CDATA[ <p>awesome video...But I have an xml file as an output from the webservice. so now What should I have in the OnComplete function.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/ashokrbp.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ashokrbp</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Tue, 03 Mar 2009 01:58:03 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000528</guid><description><![CDATA[ <p>Will this work if my webservice uses a database to retrieve the data?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/ashokrbp.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kotiRaj</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Wed, 29 Apr 2009 09:57:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000530</guid><description><![CDATA[ <p>useful video , thanks dude</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/kotiRaj.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by TTao675</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Sun, 10 May 2009 11:17:16 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000531</guid><description><![CDATA[ <p>thanks! :)</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/TTao675.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by abelanet</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Wed, 27 May 2009 12:21:46 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000532</guid><description><![CDATA[ <p>Great! Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/abelanet.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by akmsaeea</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Tue, 11 Aug 2009 07:40:50 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000533</guid><description><![CDATA[ <p>I liked this explanation..Really Thanks..</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/akmsaeea.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by akmsaeea</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Tue, 11 Aug 2009 10:49:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000534</guid><description><![CDATA[ <p>Informative..Thanks...</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/akmsaeea.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by synapsys</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Tue, 01 Sep 2009 21:56:55 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000535</guid><description><![CDATA[ <p>All of the examples I&#39;m finding (including this one) embed their web service code in their web app project.  It is much more common to have external web services in another project or more LIKELY, multiple servers with specific port numbers.</p><p></p><p>So in the script managers &lt;Services&gt; section you need to specify a path.  But there is not an ID or anything else to identify it for the jscript code.  So, if you use a URL for your web service address, I can&#39;t find anyway for the jscript to refrence it.</p><p></p><p>For example:</p><p>&lt;asp:ScriptManager ID=&quot;ScriptManager1&quot; runat=&quot;server&quot;&gt;</p><p>            &lt;Services&gt;</p><p>                &lt;asp:ServiceReference   Path=&quot;<a rel="nofollow" href="http://MyWebsite.com:2600/Service1.asmx&quot;/&gt;" target="_blank">MyWebsite.com</a></p><p>              </p><p>            &lt;/Services&gt;</p><p>        &lt;/asp:ScriptManager&gt;</p><p></p><p>If you use Service1 in the jscript, it doesn&#39;t work.  And certainly you can&#39;t use the entire URL containing the asm, because this is not a valid jscript object and causes a syntax error.</p><p></p><p>Also, I might have several versions of a web service (production and sandbox), and I see no easy way to use them in javascript OR easily switch between them.</p><p></p><p>Help?</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/synapsys.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by synapsys</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Tue, 01 Sep 2009 21:58:38 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000536</guid><description><![CDATA[ <p>My last post didn&#39;t display the example correctly.  I&#39;ll try to html comment it here:</p><p>&lt;!--</p><p>&lt;div&gt;</p><p>        &lt;asp:ScriptManager ID=&quot;ScriptManager1&quot; runat=&quot;server&quot;&gt;</p><p>            &lt;Services&gt;</p><p>                &lt;asp:ServiceReference   Path=&quot;<a rel="nofollow" href="http://localhost:2660/ServiceClubData.asmx&quot;/&gt;" target="_blank">localhost</a></p><p>                </p><p>            &lt;/Services&gt;</p><p>        &lt;/asp:ScriptManager&gt;</p><p>    &lt;/div&gt;</p><p>--&gt;</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/synapsys.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by synapsys</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Wed, 02 Sep 2009 08:23:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000537</guid><description><![CDATA[ <p>Looks like a bug.  I figured out the correct syntax for calling the JSON wrapped web service call from java script, but ran into an even bigger problem.  Turns out it will use your full URL to get the generated javascript interface, BUT when the HTTP Request is built it uses the WRONG service path.  It is using the &quot;short version&quot; of the path that is not the full URL to the service.  Thus, when it doesn&#39;t find the <a rel="nofollow" href="http://server:port" target="_blank">server</a> in the path, it resolved it to your local web app&#39;s which is totally WRONG.  This means you instantly get a 404 error.</p><p></p><p>Soooo.... does someone have a work-around for this, or should I completely exclude AJAX as a technology I want to even consider using?</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/synapsys.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by panand</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Tue, 20 Oct 2009 03:46:32 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000538</guid><description><![CDATA[ <p>I tried to use it with a remotely deployed client and it does not work. The web service is available, and as Joe demonstrated, the /js and /jsdebug tests confirm that my webservice has indeed been AJAX-enabled. I remember reading something in the basics that AJAX calls do not work across 2 different domains for security reason. This behaviour is by design. Could this be the problem?</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/panand.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by panand</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Tue, 20 Oct 2009 15:43:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000539</guid><description><![CDATA[ <p>Hi again, </p><p></p><p>Following up on my comment yesterday, I went back to the book where I read about making calls using AJAX. It did have a section on AJAX security that states that you cannot make JAVAScript calls across domains, or even the same domain using different protocols (http vs. http). As mentioned before, this behaviour is by design for security reasons. </p><p></p><p>Further, one of the solution this section offers is to have a  webservice (which as per this video, can be ajax enabled) contained within our web application that would inturn call an external web application using the traditional synchronous or asynchronous client-server call.</p><p></p><p>It is the chapter on AJAX Networking in this book : Professional ASP.NET 2.0 AJAX (Programmer to Programmer) by Matt Gibbs, Dan Wahlin  </p><p></p><p>If anyone has a better solution, please let me know.</p><p></p><p>Cheers,</p><p>-panand</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/panand.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by lohith.bn</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Wed, 21 Oct 2009 11:51:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000540</guid><description><![CDATA[ <p>Good to watch this video...</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/lohith.bn.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by viraj24</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Fri, 13 Nov 2009 19:15:36 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000541</guid><description><![CDATA[ <p>nice thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/viraj24.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by fusion_developer</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Sat, 28 Nov 2009 08:06:06 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000542</guid><description><![CDATA[ <p>Gr8 Video...Thanks !</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/fusion_developer.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Shiner</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Wed, 09 Dec 2009 21:44:54 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000543</guid><description><![CDATA[ <p>Is there really no way to make a web service call to a different domain?  I have cascading drop down lists that call web services in different domains.  Surely, there is a way to do the same thing with direct web service calls.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Shiner.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by panand</title><link>http://asp.net/web-forms/videos/aspnet-ajax/how-do-i-aspnet-ajax-enable-an-existing-web-service</link><pubDate>Mon, 28 Dec 2009 03:20:06 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000544</guid><description><![CDATA[ <p>Replying to Shiner&#39;s post, yes there is. But we will have to use JSON-P to make AJAX calls work with web services across a different domain.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/panand.jpg?forceidenticon=false&amp;dt=635072295600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>