Join David Gassner for an in-depth discussion in this video Creating OData request URIs, part of Foundations of Programming: Web Services.
Requests for OData based services are formed as Uniform Resource Identifyers.…In the OData 2.0 documentation, they're called URI's, and in…OData 3 they're URL's, but the syntax is basically the same.…There are multiple parts the URI, including the Protocol,…the Domain root, the Resource path and Query string parameters.…And here is how it looks in practice. This is an actual…URI for a service that's publicly available and hosted on the OData website.…
The first part of the request again is the protocol, and it's http here.…But if I were using secure sockets, I would use https.…The next part is the domain route, the DNS name or the IP address of the server.…Next is the resource path.…The next optional part is called the data collection.…This tells the server…what kind of data you want back.…This is a very short version of the data collection syntax,…and I'll show you a more complex version in a moment.…And then after the question mark, you put in the parameters.…
There are both custom parameters and system query parameters.…
- 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