Thanks Jon!! How to save the output data that you received in a file and how to run or consume this service everyday automatically at some interval please?
Hi Soni, You should be able to something like this: someHttpWebRequest.Headers.Add(HttpRequestHeader.Accept, "application/xml"); Thanks for watching and for the question! Jon
Does another section do in depth about connecting to an external database with SSH keys, or is this a prerequisite to have this already available in the VS solution? :) Thanks.
Hi Галина, Yes - part 6 and the video on parameters go into this. ua-cam.com/video/kVUUhlLB0sI/v-deo.html ua-cam.com/video/1i5yvDvpBgs/v-deo.html Thanks for watching! Jon
I need you some help.. I am very very a beginner. I don't know much about examples kind of... google exameples... I make a .net core program using VSCode.. Tell me an example of using a rest api on a .net core(vscode).
Hi, I have a series of videos on .Net Core here: ua-cam.com/play/PLDQIAo9A3-Db2sHKPXZgq-5S27tGh7pIL.html I'll also be doing some additional videos on using .Net Core and AWS. Is there a reason you aren't using Visual Studio instead of VS Code? Are you on a Mac or Linux? Thanks for watching! Jon
It is being developed in a Windows environment. I just wanted to use VS code. However, I used Asp.net Core 2.1 in Visual Studio 2017 and moved it to VS code. Several references to your video have been helpful.
Hi there. I m beginner and just now i ended with course of WCF services (SOAP). And I want to learn REST, because how i see that is future,and SOAP going to history with easy steps... But this all is little confusing to me. What bothers me...In WCF i was learning how we must create (contract & server), then hosting that server putting URI server address into hostclass , add endpoints, and in the end...open that server for listening. In yours previous videos, you are using DHC like client application who consuming yours REST server , if I right ... but you never put URI adress in REST server. You using your local address: localhost8989/...... What if you want to upload to the dedicated server, where you put URI addresses in your build service application. For e.g. you build application for the customer through freelancer,he do not wants that address. Sry my English is not perfect, but i hope, you gonna catch a point of my confusion .
Hopefully you will see this Jon, I realize this is an older vid, but I'm just getting around to learning this stuff. I have followed along with the Web Service portion before this and now with the client... but I get a 403 error every time I run the client. My Service is at localhost:65197/ and that is the base address I have set into the client BaseAddress field. But anything I try and do results in a 403 permissions error. If I run the commands from the DHC (aka Restlet) Client, it works great. Any ideas ?
Wow, thank you for the prompt response, really didn't expect it. :) In response, I have nothing setup aside from what has been set up during the videos. Client is that written during your C# client creation videos. It's just odd that it works from the Chrome Extension client but not from the developed C# ASP.net REST client. I have granted FULL ACCESS to the ASPNET account as well to the webservice location, that didn't help either.
Platform Specs: VS2015u3 on Windows 2010 v1607 bld:14393.1715. Have the client code setup to compile to .Net 4.5.2 and "Any CPU" (prefer 32-bit). Used the NuGet to get the latest greatest version of the Web API client module (as dictated in the Client builder vid #1).
Hi Rod, Can you debug the web service so that you can see if the request is making it into the service? Did you happen to move the web server project? Are you sure the port number is right? Sometimes that changes. If you want to zip your server project and the client project up I can install here and see if I can see what the problem is. If you want to do that I can provide you an email address you can send the files to. Thanks Jon
Dropping a breakpoint in the server code inside each method of the PersonController ... nothing. It doesn't appear to be able to access the REST server. But, I know the port is correct because I can still access it via the Chrome Client and when I do the breakpoints in the server ARE hit. This is some sort of permissions issue I think. Can gladly zip up the client and server progs and send them to you, they are just about "duplicates" of your own. Great series by the way... very easy to follow and understand. Can send your email address to me at rocklight at gmail dot com. Thank you for sticking with me on this!
It was hard to find a good resource like this, between dozen of useless. Thanks
Your videos are extremely helpful. I'm glad i found your channel! Thank you!
Hi Vijay,
Thank you!
Jon
Subscribed, breaking into the automation world. Your videos are very helpful
Hi Chris,
Great, I'm glad these were useful!
Jon
Excellent video. Thanks for the help.
Hi,
Thanks for watching!
Jon
Thanks, Can you do videos on consuming those api?
Can someone please give reference code to put Basic Authentication in this.
Thanks Jon!! How to save the output data that you received in a file and how to run or consume this service everyday automatically at some interval please?
thank you great video!!! :)
Hi Vitor,
Thanks for watching!
Jon
Hi Jon, Great Videos. I have a query, I understand Web.API supports both JSON and XML. How do i return the "Get" in an XML Format instead of JSON.
Hi Soni,
You should be able to something like this:
someHttpWebRequest.Headers.Add(HttpRequestHeader.Accept, "application/xml");
Thanks for watching and for the question!
Jon
thank you
Hi Chakshay,
I'm glad it helped.
Jon
Does another section do in depth about connecting to an external database with SSH keys, or is this a prerequisite to have this already available in the VS solution? :) Thanks.
Hi Peter,
I can check into that. Thanks for watching.
Jon
Thx dude
Hi,
You are welcome!
Jon
Hello! How can I request a specific person in Get method ? Like api/person/n (n-variable) is it possible ?
Hi Галина,
Yes - part 6 and the video on parameters go into this.
ua-cam.com/video/kVUUhlLB0sI/v-deo.html
ua-cam.com/video/1i5yvDvpBgs/v-deo.html
Thanks for watching!
Jon
I need you some help.. I am very very a beginner. I don't know much about examples kind of... google exameples... I make a .net core program using VSCode.. Tell me an example of using a rest api on a .net core(vscode).
Hi,
I have a series of videos on .Net Core here: ua-cam.com/play/PLDQIAo9A3-Db2sHKPXZgq-5S27tGh7pIL.html
I'll also be doing some additional videos on using .Net Core and AWS.
Is there a reason you aren't using Visual Studio instead of VS Code? Are you on a Mac or Linux?
Thanks for watching!
Jon
It is being developed in a Windows environment. I just wanted to use VS code. However, I used Asp.net Core 2.1 in Visual Studio 2017 and moved it to VS code.
Several references to your video have been helpful.
Hi there. I m beginner and just now i ended with course of WCF services (SOAP). And I want to learn REST, because how i see that is future,and SOAP going to history with easy steps... But this all is little confusing to me. What bothers me...In WCF i was learning how we must create (contract & server), then hosting that server putting URI server address into hostclass , add endpoints, and in the end...open that server for listening. In yours previous videos, you are using DHC like client application who consuming yours REST server , if I right ... but you never put URI adress in REST server. You using your local address: localhost8989/...... What if you want to upload to the dedicated server, where you put URI addresses in your build service application. For e.g. you build application for the customer through freelancer,he do not wants that address.
Sry my English is not perfect, but i hope, you gonna catch a point of my confusion .
Hi Marko,
I just posted a series of videos showing moving the Web Server to Azure.
Jon
Hopefully you will see this Jon, I realize this is an older vid, but I'm just getting around to learning this stuff. I have followed along with the Web Service portion before this and now with the client... but I get a 403 error every time I run the client. My Service is at localhost:65197/ and that is the base address I have set into the client BaseAddress field. But anything I try and do results in a 403 permissions error. If I run the commands from the DHC (aka Restlet) Client, it works great. Any ideas ?
Hi Rod,
Do you have some type of permissions check on the endpoint you are calling? What client are you using?
Jon
Wow, thank you for the prompt response, really didn't expect it. :)
In response, I have nothing setup aside from what has been set up during the videos. Client is that written during your C# client creation videos. It's just odd that it works from the Chrome Extension client but not from the developed C# ASP.net REST client. I have granted FULL ACCESS to the ASPNET account as well to the webservice location, that didn't help either.
Platform Specs: VS2015u3 on Windows 2010 v1607 bld:14393.1715. Have the client code setup to compile to .Net 4.5.2 and "Any CPU" (prefer 32-bit). Used the NuGet to get the latest greatest version of the Web API client module (as dictated in the Client builder vid #1).
Hi Rod,
Can you debug the web service so that you can see if the request is making it into the service? Did you happen to move the web server project? Are you sure the port number is right? Sometimes that changes.
If you want to zip your server project and the client project up I can install here and see if I can see what the problem is. If you want to do that I can provide you an email address you can send the files to.
Thanks
Jon
Dropping a breakpoint in the server code inside each method of the PersonController ... nothing. It doesn't appear to be able to access the REST server. But, I know the port is correct because I can still access it via the Chrome Client and when I do the breakpoints in the server ARE hit. This is some sort of permissions issue I think. Can gladly zip up the client and server progs and send them to you, they are just about "duplicates" of your own. Great series by the way... very easy to follow and understand. Can send your email address to me at rocklight at gmail dot com. Thank you for sticking with me on this!