Sample Test Code

Below is a small program that shows the use of the OData class library.

package require OData 4.0

set obj [ODataService new http://services.odata.org/V4/OData/(S(qe0mzsxp2vzxcr23zdd2rxg0))/OData.svc/]

puts stdout {
##
## Examples:
##
puts stdout [$obj info collections]

puts stdout {}
puts stdout [$obj Categories]

puts stdout {}
puts stdout [set p2 [$obj Products 2]]

puts stdout [$p2 get ID]

}

On 2016-02-29 06:30:25 UTC anonymous added:
bjjh