Skip to content

Version 4 of the spec might not be implemented #55

@gowabash

Description

@gowabash

I'm trying to do some investigative work into odata. I created a really simple client to consume the odata.org sample services. The V3 interface works just fine, however the V4 interface cause an exception to be thrown. The only difference in the code is the version number in the service instantiation.

V3 code

company_data = OData::Service.new "http://services.odata.org/V3/OData/OData.svc/"
company_data.Categories
categories = company_data.execute
ap categories.map{|x| x.Name}

output

[
    [0] "Food",
    [1] "Beverages",
    [2] "Electronics"
]

V4 code

company_data = OData::Service.new "http://services.odata.org/V4/OData/OData.svc/"
company_data.Categories
categories = company_data.execute
ap categories.map{|x| x.Name}

output

~/.rvm/gems/ruby-2.1.2/gems/ruby_odata-0.1.6/lib/ruby_odata/association.rb:11:in `initialize': undefined method `namespaces' for nil:NilClass (NoMethodError)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions