Join David Gassner for an in-depth discussion in this video Sending RESTful requests, part of Foundations of Programming: Web Services.
The syntax for a web service request…varies greatly from one service to the next.…What syntax is needed and what HTTP methods…are supported are entirely up to the service.…Some services, especially read-only services,…typically support GET and POST requests.…Let's go back to the REST console, a web service debugging tool I described in an…earlier movie.…I'm going to use the console to…test something about the Google Geocoding web service.…
I looked at this web service earlier and…showed that you could request XML or json content.…But in the browser itself, you're always sending a Get request.…To send a Post request, you need some additional tools, and the REST Console…provides that.…I've entered a URI for the Google geocoding service here,…in the target, and I'll first click the Get button.…And that receives a successful response, but now I'll test the same…service with a post request, and the REST console makes this very easy.…
I'll change the request method to post and then click send, or…you could just click the post button.…
- What is a web service?
- Understanding the available transfer protocols and message formats
- Examining SOAP request and response formats
- Creating a simple SOAP service in ASP.NET
- Choosing a SOAP implementation
- Associating REST actions with HTTP requests
- Sending RESTful requests
- Creating OData request URIs
- Securing web services