Just one question Kudvenkat, in the CustomJsonFormatter constructor, do we give the exsisting MediaHeaderValue? I know we set a new content header value in SetDefualtContentHeaders.
Thank you so so much for all these videos. I have a doubt, how to deploy a web API to local IIS from Visual Studio 2015. I go to properties, then Web, select Local IIS and create Virtual directory. But when I access from browser, I get an error. Is there any step I am missing ?
if your having problem inheriting from JsonMediaTypeFormatter be sure you have the using System.Net.Http.Formatting; if you dont you should include this
>>>> Sir Can u upload that Video.. DATATABBLES EDITOR with DOT NET WEB API... >>>> How to editing in Datatables in Datatable Editor in different manner >>>> Please Upload This video sir... This will more help for me... Thanks sir in advance...
Is there any way to Export datatable in excel xls with headers using asp.net Web Api, I'm searching for it but couldn't get it on Web Api as well as getting error didn't get response on on get method can anyone help ?
@@sivarajamuthurajan844 Hello. This is 4 years later. That's 40 years in the programming world. So I would suggest looking elsewhere for these specifics
... I watched all parts, except this one, anyway... I just don't get it, do I actually have to do something with Telerik Fiddler or do you just show example of how it works? I don't follow this tutorial but I think I am going to when it's finished/has more parts to watch, where you actually give at least basic examples of how to do that in code (PUT,GET,DELETE etc), unless I am missing something. Though I understand everything else and now I somewhat understand how basics of HTTP work, it's funny how it is everything what I already kinda knew about client-server, since before I made simple project which allows for people around the world to draw on the same canvas.(don't google it, I didn't ever release it or share with more than few people, though it worked from anywhere, with almost no delay)
filder is to track what is going on, the requests and the responses. in the case of services it is good to track the traffic because often you will not have to work with a UI, but you are focused on creating the service. Unless you call the services (web api) somewhere, in any web app, or any other kind of app, fidler is one of the ways to check if it's working. Hope I was clear
Arianit Krasniqi Yeah, but shouldn't we check if it's working after we actually tried to make it work(use those get post etc headers in code, if I get it right), and if it doesn't only then use fiddler? Because at the moment I don't quite get how to POST or DELETE through browser.
he is still explaining how things work in web api, to understand things better, how to test them. later, I think and hope so, he will tell us how to work with the browser, maybe also build an UI (view) and so on. Yes, we check it if it's working after we tried to make it work, this is still server side, client side will come later, so fidler is one way to test it. there are also other ways, some nuget packages etc that do similar job as fidler. this way, with fidler we can also learn how to make the web app safer, if you watch the mvc and jquery tutorials you will understand
Arianit Krasniqi I get it, but it just seems that it should be done the other way around, well I am not the one who is producing these series, beggars can't be choosers.
Purple Ice if I remember right, in the asp.net mvc series when he explain how to do updates he also explains with fidler how someone can attack our web app. so watch those videos to understand better
I think it's more a personal choice. but if you watch the jquery series you will see that it is easier to work with json than xml, for xml you need to do some extra convertions.
I haven't watched the jqyery series and still I don't see why I would restrict my service on only Json and or only xml I'm not experienced developer but the essence of web api to provide services either functional or data to different applications on different platforms on different OSs I just thought when i restrict it I kinda limit limit my clients !
Transporter no, you don't limit the access. you just work with what it's better and easier for you. your client, that is willing to use your service must know that you restricted it only with json or xml, and he will know what to do. more and more services are using json today, but there are still a lot that use xml... e personally prefer json. it's easier to read and to work with it... you can google xml vs json
microsoft is looking more and more to replace xml with json. even in the new asp.net core they replaced the web.config file code that is with xml into json code. it doesn't mean you can't use xml anymore, but it's a suggestion from microsoft, for any reason I don't know
I don't have an exact answer, but i would do this, if i have a public API, and i state that my API works with JSON only. So i don't have to care with a possible issues with XML (i don't know if there would be any, but still). It's more like a restriction, to make sure, you have to care about JSON only.
From Chile, this videos help me a lot.
Again great explanation..Thank you so much sir...
Very nice and clear explanation. Thanks.
I love your videos! thank you very much for being so helpful.
Just one question Kudvenkat, in the CustomJsonFormatter constructor, do we give the exsisting MediaHeaderValue? I know we set a new content header value in SetDefualtContentHeaders.
Thank you so so much for all these videos.
I have a doubt, how to deploy a web API to local IIS from Visual Studio 2015. I go to properties, then Web, select Local IIS and create Virtual directory. But when I access from browser, I get an error. Is there any step I am missing ?
Thank you venkat sir.
Make one with .net core 2...
if your having problem inheriting from JsonMediaTypeFormatter be sure you have the using System.Net.Http.Formatting;
if you dont you should include this
Sir, Are you from TN?
Why in the XML example that the page delivers the order of the fields change ... ?? How can I leave them the same as the class?
Thank you so much sir...
REPLY
Why don't we get unsupported media type exception when we remove XML formatter and the request for XML response?
Is there Any MediaTypeFormatter available for EDI ????
thank you sir
thanks for video
>>>> Sir Can u upload that Video.. DATATABBLES EDITOR with DOT NET WEB API...
>>>> How to editing in Datatables in Datatable Editor in different manner
>>>> Please Upload This video sir... This will more help for me... Thanks sir in advance...
Sooper helpful
somehow I can simply connect to API in Postman, but can't in Fiddler. Weird...
Many thanls
Is there any way to Export datatable in excel xls with headers using asp.net Web Api, I'm searching for it but couldn't get it on Web Api as well as getting error didn't get response on on get method can anyone help ?
In above video i dont want json response bounded by 【】 square brackets. How to achive this. Any link reference is appreciated
the square brackets produce a list, the curly brackets produce an object with key/value pairs
The list can then be a value of a key/value pair
I would like to respond with application/xml (not just the header) when a browser asks for text/html. how do i expand the customformatter to do that?
By default, we get XML response when the request is raised from browser, am I correct?
@@sivarajamuthurajan844 Hello. This is 4 years later. That's 40 years in the programming world. So I would suggest looking elsewhere for these specifics
... I watched all parts, except this one, anyway... I just don't get it, do I actually have to do something with Telerik Fiddler or do you just show example of how it works? I don't follow this tutorial but I think I am going to when it's finished/has more parts to watch, where you actually give at least basic examples of how to do that in code (PUT,GET,DELETE etc), unless I am missing something.
Though I understand everything else and now I somewhat understand how basics of HTTP work, it's funny how it is everything what I already kinda knew about client-server, since before I made simple project which allows for people around the world to draw on the same canvas.(don't google it, I didn't ever release it or share with more than few people, though it worked from anywhere, with almost no delay)
filder is to track what is going on, the requests and the responses. in the case of services it is good to track the traffic because often you will not have to work with a UI, but you are focused on creating the service. Unless you call the services (web api) somewhere, in any web app, or any other kind of app, fidler is one of the ways to check if it's working. Hope I was clear
Arianit Krasniqi Yeah, but shouldn't we check if it's working after we actually tried to make it work(use those get post etc headers in code, if I get it right), and if it doesn't only then use fiddler? Because at the moment I don't quite get how to POST or DELETE through browser.
he is still explaining how things work in web api, to understand things better, how to test them. later, I think and hope so, he will tell us how to work with the browser, maybe also build an UI (view) and so on. Yes, we check it if it's working after we tried to make it work, this is still server side, client side will come later, so fidler is one way to test it. there are also other ways, some nuget packages etc that do similar job as fidler. this way, with fidler we can also learn how to make the web app safer, if you watch the mvc and jquery tutorials you will understand
Arianit Krasniqi I get it, but it just seems that it should be done the other way around, well I am not the one who is producing these series, beggars can't be choosers.
Purple Ice
if I remember right, in the asp.net mvc series when he explain how to do updates he also explains with fidler how someone can attack our web app. so watch those videos to understand better
Hi,
Can you tell me how to pass paramter with slash for api get method
the question comes to my mind why I would restrict it to only Json or only xml ? is it security purpose or what ?
I think it's more a personal choice. but if you watch the jquery series you will see that it is easier to work with json than xml, for xml you need to do some extra convertions.
I haven't watched the jqyery series and still I don't see why I would restrict my service on only Json and or only xml I'm not experienced developer but the essence of web api to provide services either functional or data to different applications on different platforms on different OSs I just thought when i restrict it I kinda limit limit my clients !
Transporter
no, you don't limit the access. you just work with what it's better and easier for you. your client, that is willing to use your service must know that you restricted it only with json or xml, and he will know what to do. more and more services are using json today, but there are still a lot that use xml... e personally prefer json. it's easier to read and to work with it... you can google xml vs json
microsoft is looking more and more to replace xml with json. even in the new asp.net core they replaced the web.config file code that is with xml into json code. it doesn't mean you can't use xml anymore, but it's a suggestion from microsoft, for any reason I don't know
I don't have an exact answer, but i would do this, if i have a public API, and i state that my API works with JSON only. So i don't have to care with a possible issues with XML (i don't know if there would be any, but still). It's more like a restriction, to make sure, you have to care about JSON only.
Why is it important to show 9 ways to set to json or xml?
Sahi sahi bolo bhailog, kuch samaj aya?
#TYBG