| |
|
|
aarturo
: On
August 04, 2008 5:21 PM
said:
|
Hi Joe, Your example worked great! but as soon as I created a separate project for my webservice I ran into issues. It appears that I am not getting a resolveable path for my asmx file. typically it would be something like Path="WebServiceName.asmx" If the webservice resides in same project but I have it in another project whose name is wsNorthwind and the webservice is NorthwindJS.asmx. So I figured this Path="~/wsNorthwind/NorthwindJS.asmx" I get an error that says NorthwindJS is undefined. I also tried envoking it as wsNorthwind.NorthwindJS.SayHello with no success?! What gives??
|
|
|
|
cv_vikram
: On
August 06, 2008 1:26 PM
said:
|
It is simple and good....
|
|
|
|
pnv.ravikiran
: On
August 06, 2008 9:23 PM
said:
|
really helpful, thanks Joe
|
|
|
|
westdesertguy
: On
September 19, 2008 5:56 PM
said:
|
Joe, it seems your example fails in FireFox and Google Chrome. What would cause this? Great tutorial though! Thanks!
|
|
|
|
GaganK1
: On
September 24, 2008 8:26 PM
said:
|
Hi Joe I do have same problem as "aarturo". I am not able to call my web service which resides outside of my current application. Any Idea on that...
|
|
|
|
|
|
Danny117
: On
December 21, 2008 12:21 PM
said:
|
This is a must watch video.
|
|
|
|
|
|
ashokrbp
: On
March 02, 2009 11:44 PM
said:
|
awesome video...But I have an xml file as an output from the webservice. so now What should I have in the OnComplete function.
|
|
|
|
ashokrbp
: On
March 03, 2009 1:58 AM
said:
|
Will this work if my webservice uses a database to retrieve the data?
|
|
|
|
Posted at 06:48 in the video
kotiRaj
: On
April 29, 2009 9:57 AM
said:
|
|
useful video , thanks dude
|
|
|
|
Posted at 06:48 in the video
kotiRaj
: On
April 29, 2009 9:57 AM
said:
|
|
useful video , thanks dude
|
|
|
|
TTao675
: On
May 10, 2009 11:17 AM
said:
|
|
|
|
|
|
abelanet
: On
May 27, 2009 12:21 PM
said:
|
|
|
|
|
|
akmsaeea
: On
August 11, 2009 7:40 AM
said:
|
I liked this explanation..Really Thanks..
|
|
|
|
akmsaeea
: On
August 11, 2009 10:49 AM
said:
|
|
|
|
|
|
synapsys
: On
September 01, 2009 9:56 PM
said:
|
All of the examples I'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. So in the script managers <Services> 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't find anyway for the jscript to refrence it. For example:
" target="_blank">http://MyWebsite.com:2600/Service1.asmx"/> </Services> </asp:ScriptManager> If you use Service1 in the jscript, it doesn't work. And certainly you can't use the entire URL containing the asm, because this is not a valid jscript object and causes a syntax error. 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. Help?
|
|
|
|
synapsys
: On
September 01, 2009 9:58 PM
said:
|
My last post didn't display the example correctly. I'll try to html comment it here: <!-- <div> " target="_blank">http://localhost:2660/ServiceClubData.asmx"/> </Services> </asp:ScriptManager> </div> -->
|
|
|
|
synapsys
: On
September 02, 2009 8:23 AM
said:
|
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 "short version" of the path that is not the full URL to the service. Thus, when it doesn't find the http://server:port in the path, it resolved it to your local web app's which is totally WRONG. This means you instantly get a 404 error. Soooo.... does someone have a work-around for this, or should I completely exclude AJAX as a technology I want to even consider using?
|
|
|
|
panand
: On
October 20, 2009 3:46 AM
said:
|
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?
|
|
|
|
panand
: On
October 20, 2009 3:43 PM
said:
|
Hi again, 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. 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. It is the chapter on AJAX Networking in this book : Professional ASP.NET 2.0 AJAX (Programmer to Programmer) by Matt Gibbs, Dan Wahlin If anyone has a better solution, please let me know. Cheers, -panand
|
|
|
|
lohith.bn
: On
October 21, 2009 11:51 AM
said:
|
Good to watch this video...
|
|