I could get the Webservice working, but not the Client application. I am not able to get the GetStudentsByID() to work. I have just placed an alert in this and function and when I click on the button, this alert() does not pop-up. Are there any settings that need to be carried out. Please advise..
Dear Venkat. Thanks a ton for the video. Though you have tried to put together service and client in the same project for simplicity of explanation may be but actually I was trying the same by keeping both in different projects but I am getting server method failed error from the failed callback function. Could you please reply on how to go about it so that this part will be clear to us as I can see lot of other viewers are also having the same query. Thanks in advance. Best Regards, Paul
+Vivek Sandira Thank you for the feedback. I am very glad you found the videos useful. I have organised all the video tutorials in to playlists, which could be useful to you th-cam.com/users/kudvenkatplaylists?view=1&sort=dd If you need physical DVDs or you want to download all the videos for offline viewing please order them using the link below www.pragimtech.com/kudvenkat_dvd.aspx Slides and Text Version of the videos can be found on my blog csharp-video-tutorials.blogspot.com Tips to effectively use my youtube channel. th-cam.com/video/y780MwhY70s/w-d-xo.html If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel. th-cam.com/users/kudvenkat If you like these videos, please click the THUMBS UP button below the video. We like to see these free video tutorials helping others as well. Please share the link with your friends and family who you think would also benefit from them. Thanks Venkat
Dunno if anyone gives a shit but if you guys are stoned like me during the covid times you can watch pretty much all of the new movies on instaflixxer. Been binge watching with my gf these days :)
Venkat, thanks for the videos..Having one doubt, How to call webservice through Ajax script from different client..In current example, as everything has been done in same project..If you are keeping webservice and website which consuming webservice in different project, how we have to invoke the webservice method
Hi Venkat, This video is very useful. In this video Web Service and Client Application in the same solution. suppose Web service and Client application are at different system or in my system only but at different solution then how to call Web service from javascript using Ajax.
How to call web service using AJAX if it is on different server ?? My service url : localhost:65311/Service1.asmx Project Url for page : localhost:16980/access_WS_using_ajax.aspx I set url in Script manager : but when i call in javascript it show error in debugger console : Failed to load resource: the server responded with a status of 500 (Internal Server Error) localhost:16980/Service1.asmx/get_cliet1 And line in Javascript which reference is WebService1.Service1.get_client1(id, put_data, no_data); namespace.class.method
GetStudentById function have only 1 parameter in StudentService.asmx file but you passed it more than 1 parameter to this function....it happens but how could this possible.
I am getting error("Uncaught ReferenceError: WebServicesDemo is not defined") on service call: WebServicesDemo.StudentService.GetStudentByID(id, GetStudentByIdSuccessCallback, GetStudentByIdFailedCallback); Can you/anyone tell me the reason? Did i miss anything?
You need to add attribute [System.Web.Script.Services.ScriptService] to your StudentService class . To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
How call a WCF Service using jQuery via AJAX Call in a different Project (Cross Domain). This will not work If I call service from different project in same solution.
That was truly superb! Thank you. I'm wondering if you might explain what the process is for the type of services created in Visual Studio 2012 (with the .svc extension).
Excellent video, as all the previous ones, thank's. I'm trying to do the same thing with tow projects, web service project and client project witch is calling the web service via Ajax, but I have a error like The server method fails, please can you reply with an other example with tow projects. Best regards Thank you.
I am newbie for Web Services. I have some question about Web service. 1- Could you explain me Web Service Vs WCF Service Vs Web API ? Which Should I use and Why? 2- How can I use AngularJS to call Web Service in order to access database? Thanks in Advance...
Hey man, if this helps.... you can get the connection string by right clicking on the database and properties. The full connection string of any database would be there. Just copy the text and paste it in web.config file.
hello, great video series, I have a question, please help me. How to call asp net web service that is in other asp.net web application from javascript using ajax. what will be path for other application and also how to access webmethod ?
Hi Venkat, Lets say your GetStudentById function returns a data table, then how will you make use of data table in java script function like you used with result parameter in java script function which is student object. You accessed the properties on result with this format --> result["name of the property"]. But what if I have a data table in hand. Can it be accessed like --> result.Rows["name_of_column"] ? It's not working tis way. ? Also, I have my web service in different project. How can I add the service reference path in script manager , if my web service is in different project? You can find the question details here : stackoverflow.com/questions/41880547/how-to-make-use-of-data-table-which-is-returned-by-an-asmx-webservice-in-java-sc Thanks, Ankit
You are my "go to" guy for all training video's. Great job as usual.
Good ..You Really do work hard to make us understand each point very clearly...
Thanks a lot, Our Best Teacher.
Thank your Sir, Thank you
Allah bless you
is data transfered to client with Json or by XML (as a typical webservice)?
so we cant create the proxy class while using java script?
Thanks Kudvenkat.
Quick question: what of if the webservice is external, how do one reference it and call the method?
I could get the Webservice working, but not the Client application. I am not able to get the GetStudentsByID() to work. I have just placed an alert in this and function and when I click on the button, this alert() does not pop-up. Are there any settings that need to be carried out. Please advise..
Dear Venkat.
Thanks a ton for the video. Though you have tried to put together service and client in the same project for simplicity of explanation may be but actually I was trying the same by keeping both in different projects but I am getting server method failed error from the failed callback function. Could you please reply on how to go about it so that this part will be clear to us as I can see lot of other viewers are also having the same query.
Thanks in advance.
Best Regards,
Paul
I am getting error WebServiceDemo is not defined
how to resolve this? I added refrence of WebServiceDemo project into another project but not working
Thanks a lot very helpful please also cover web service security.
hi venkat can we use the same approach with VB6?
Thanks sir.
We are waiting some WCF videos after this series.
Hi sir i got this error cannot implicitly convert type webservicesapp.student to string how to solve it plz reply me
Great video. Just a quick question, why would you do this when the same results can be achieved with straight C# code? Thanks.
Need Help.. Can't create web services in the Namespance of the project..
namespace*
if using 2 projects like web Applications and Web services in the same solution how to call the ASMX method in the web application pls help
Thanks for the great videos
+Vivek Sandira Thank you for the feedback. I am very glad you found the videos useful.
I have organised all the video tutorials in to playlists, which could be useful to you
th-cam.com/users/kudvenkatplaylists?view=1&sort=dd
If you need physical DVDs or you want to download all the videos for offline viewing please order them using the link below
www.pragimtech.com/kudvenkat_dvd.aspx
Slides and Text Version of the videos can be found on my blog
csharp-video-tutorials.blogspot.com
Tips to effectively use my youtube channel.
th-cam.com/video/y780MwhY70s/w-d-xo.html
If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel.
th-cam.com/users/kudvenkat
If you like these videos, please click the THUMBS UP button below the video.
We like to see these free video tutorials helping others as well. Please share the link with your friends and family who you think would also benefit from them.
Thanks
Venkat
can you please tell me how to call a webservice method if i have webservice method in different project in that same solution.
Thanks Sir,
How about if the WebService is not in the same project? How can we call web method in the javascript?
Dunno if anyone gives a shit but if you guys are stoned like me during the covid times you can watch pretty much all of the new movies on instaflixxer. Been binge watching with my gf these days :)
@Sylas Saint Definitely, been using Instaflixxer for since november myself =)
Awesome.. Thanks a lot Sir.. :)
Venkat, thanks for the videos..Having one doubt, How to call webservice through Ajax script from different client..In current example, as everything has been done in same project..If you are keeping webservice and website which consuming webservice in different project, how we have to invoke the webservice method
HI Sir,
If we want to call 2 WebServices from a single webform then how and where to specify the path of the Webservices.
Hi Venkat, This video is very useful.
In this video Web Service and Client Application in the same solution. suppose Web service and Client application are at different system or in my system only but at different solution then how to call Web service from javascript using Ajax.
Sir I follow video . My code is not working . Please onclick event is clicent side click or server side click please ??
Are you able to get your code working?
my function is not called by ajax . pls help ? GetEmployeeByIdSucessCallBack
Excellent job...
How I call the service with different domain? I mean my web service is at another solution ( project). Tks!
How to consume the above studentservice.asmx to other projects.
How to call web service using AJAX if it is on different server ??
My service url : localhost:65311/Service1.asmx
Project Url for page : localhost:16980/access_WS_using_ajax.aspx
I set url in Script manager :
but when i call in javascript it show error in debugger console :
Failed to load resource: the server responded with a status of 500 (Internal Server Error) localhost:16980/Service1.asmx/get_cliet1
And line in Javascript which reference is
WebService1.Service1.get_client1(id, put_data, no_data);
namespace.class.method
Uncaught TypeError: Cannot read property 'GetStudentByID' of undefined
I'm getting same error! :(
@Arun G Mani
How did u solve this problem ?
Can you help me please ?
GetStudentById function have only 1 parameter in StudentService.asmx file but you passed it more than 1 parameter to this function....it happens but how could this possible.
how can we call the service using ajax javascript if it is different server????????
Nicely done! thanks
I am getting error("Uncaught ReferenceError: WebServicesDemo is not defined") on service call:
WebServicesDemo.StudentService.GetStudentByID(id, GetStudentByIdSuccessCallback, GetStudentByIdFailedCallback);
Can you/anyone tell me the reason? Did i miss anything?
You need to add attribute [System.Web.Script.Services.ScriptService] to your StudentService class . To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
how did you fix the problem?
I am having the same issue
@@rachaelmoussaoui5728 I actually tried web service but did not carry on. Sorry, i do not remember the solution and lost the code also.
@@nigelthomas1465 Sorry, I do not remember and lost that project also
How call a WCF Service using jQuery via AJAX Call in a different Project (Cross Domain). This will not work If I call service from different project in same solution.
hello sir,
how can i implement this functionallity with your example on Datatables?
Tnx!
how to use,other domain webservice..?????
very helpfull thanks a lot sir :D
That was truly superb! Thank you. I'm wondering if you might explain what the process is for the type of services created in Visual Studio 2012 (with the .svc extension).
very good.. Thanks
Excellent!
Excellent video, as all the previous ones, thank's. I'm trying to do the same thing with tow projects, web service project and client project witch is calling the web service via Ajax, but I have a error like The server method fails, please can you reply with an other example with tow projects.
Best regards
Thank you.
Can you explain how to send data to data base in a ASP.Net MVC web application by making use of Knock Out js and Json. Please give reply for my post.
Thank you sir for the wonderful video. Please tell us how to consume web service present in one project in to another project using asp.net ajax?
very helpful.thkx sir
I am unable to call the webservice method from javascript and I have taken care of all prerequisites as well :(
I am newbie for Web Services. I have some question about Web service.
1- Could you explain me Web Service Vs WCF Service Vs Web API ? Which Should I use and Why?
2- How can I use AngularJS to call Web Service in order to access database?
Thanks in Advance...
Getting error in: string cs = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString;
Shouldn't we specify an authentication from SQL Server?
Hey man, if this helps.... you can get the connection string by right clicking on the database and properties. The full connection string of any database would be there. Just copy the text and paste it in web.config file.
Sir, How can I pass a Object (like Student) as a input parameter for the WebService Method call through AJAX?
Thanks in Advance :)
What is an endpoint? what is its purpose?
how to use,other domain webservice..????? please answer this question if anyone knows. thanks in advance
i guess you could try to point to that webservice URL when inport it to ServerReference, right-click on references to add one.
Hi... really a very helpful tutorial. But I've a question,
how to call web service in cross domain using AJAX ?
Please help me asap.
thanks for the video
great video
Sir, Please encourage us to use entity framework instead of ado.net .It's Pretty boring to
watch using connection string manually. Thank U.
Agree.
hello, great video series, I have a question, please help me. How to call asp net web service that is in other asp.net web application from javascript using ajax. what will be path for other application and also how to access webmethod ?
comment intégrer service web f une page web asp.net
Good Video with a nice explanation, Thanks
thanks a lot sir. Please, add same example with Asp.Net Mvc,, I am interested in calling webservice from Ajax in Asp.Net Mvc
Please make videos for sales force integration in .net applicaions
can you please share configuration file code too
Thank u sir.
Why didn't you just use Entity Framework?
Hi Venkat,
Lets say your GetStudentById function returns a data table, then how will you make use of data table in java script function like you used with result parameter in java script function which is student object. You accessed the properties on result with this format --> result["name of the property"]. But what if I have a data table in hand. Can it be accessed like --> result.Rows["name_of_column"] ? It's not working tis way. ?
Also, I have my web service in different project. How can I add the service reference path in script manager , if my web service is in different project?
You can find the question details here :
stackoverflow.com/questions/41880547/how-to-make-use-of-data-table-which-is-returned-by-an-asmx-webservice-in-java-sc
Thanks,
Ankit
thank you
Its awesome, but I dont know why its video quality is degraded.
just because of slow internet connectivity, try with better speed
I have a code example here: github.com/rsk2/jquery-ajax-vbdotnet