Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 4 of the spec might not be implemented #55

Open
gowabash opened this issue Jun 26, 2014 · 2 comments
Open

Version 4 of the spec might not be implemented #55

gowabash opened this issue Jun 26, 2014 · 2 comments
Assignees

Comments

@gowabash
Copy link

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)
@visoft
Copy link
Owner

visoft commented Jun 30, 2014

There are some big changes to the schema in V4. It's going to require redoing a lot of the code as they changed namespaces, elements, and attributes.

@visoft visoft self-assigned this Apr 24, 2015
@visoft
Copy link
Owner

visoft commented Apr 25, 2015

I checked in an initial version of the service that supports v4 of the service. I'm sure it needs a lot more work, but check out the develop branch for the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants