Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made testing faster with VCR

  • Loading branch information...
commit da202c1ab32a350e0cd0e6fb4da02f21377ac9d1 1 parent a995f1d
@visoft authored
Showing with 7,161 additions and 61 deletions.
  1. +2 −0  README.md
  2. +2 −1  features/basic_auth.feature
  3. +7 −6 features/batch_request.feature
  4. +69 −0 features/cassettes/batch_request_additions.yml
  5. +69 −0 features/cassettes/batch_request_deletes.yml
  6. +69 −0 features/cassettes/batch_request_updates.yml
  7. +46 −0 features/cassettes/clean_database_for_testing.yml
  8. +297 −0 features/cassettes/cucumber_tags/basic_auth.yml
  9. +1,459 −0 features/cassettes/cucumber_tags/batch_request.yml
  10. +326 −0 features/cassettes/cucumber_tags/complex_types.yml
  11. +64 −0 features/cassettes/cucumber_tags/error_handling.yml
  12. +2,025 −0 features/cassettes/cucumber_tags/query_builder.yml
  13. +234 −0 features/cassettes/cucumber_tags/service.yml
  14. +937 −0 features/cassettes/cucumber_tags/service_manage.yml
  15. +647 −0 features/cassettes/cucumber_tags/service_methods.yml
  16. +203 −0 features/cassettes/cucumber_tags/ssl.yml
  17. +337 −0 features/cassettes/cucumber_tags/type_conversion.yml
  18. +65 −0 features/cassettes/service_manage_additions.yml
  19. +58 −0 features/cassettes/service_manage_deletions.yml
  20. +58 −0 features/cassettes/service_manage_deletions_2.yml
  21. +89 −0 features/cassettes/unsecured_metadata.yml
  22. +4 −3 features/complex_types.feature
  23. +1 −0  features/error_handling.feature
  24. +1 −0  features/query_builder.feature
  25. +1 −0  features/service.feature
  26. +4 −3 features/service_manage.feature
  27. +3 −2 features/service_methods.feature
  28. +7 −8 features/ssl.feature
  29. +7 −1 features/step_definitions/service_steps.rb
  30. +3 −1 features/support/hooks.rb
  31. +29 −18 features/support/pickle.rb
  32. +20 −0 features/support/vcr.rb
  33. +16 −17 features/type_conversion.feature
  34. +1 −1  lib/ruby_odata/service.rb
  35. +1 −0  ruby_odata.gemspec
View
2  README.md
@@ -2,6 +2,8 @@
The **Open Data Protocol** (OData) is a fantastic way to query and update data over standard Web technologies. The ruby_odata library acts as a consumer of OData services.
+[![Build Status](https://secure.travis-ci.org/visoft/ruby_odata.png)](http://travis-ci.org/visoft/ruby_odata)
+
## Resources
* Source Code (hosted on GitHub): http://github.com/visoft/ruby_odata
View
3  features/basic_auth.feature
@@ -1,5 +1,6 @@
+@basic_auth
Feature: Service Should Access Basic Auth Protected Resources
-
+
Background:
Given a HTTP BasicAuth ODataService exists using username "admin" and password "passwd"
And blueprints exist for the service
View
13 features/batch_request.feature
@@ -1,8 +1,9 @@
+@batch_request
Feature: Batch request
In order to minimize network traffic
As a user of the library
I want to be able to batch changes (Add/Update/Delete) and persist the batch instead of one at a time
-
+
Background:
Given a HTTP ODataService exists
And blueprints exist for the service
@@ -14,7 +15,7 @@ Scenario: Save Changes should allow for batch additions
Then the save result should equal: "true"
When I call "Products" on the service
And I order by: "Name"
- And I run the query
+ And I run the query within a cassette named "batch_request_additions"
Then the result should be:
| Name |
| Product 1 |
@@ -31,13 +32,13 @@ Scenario: Save Changes should allow for batch updates
And I call "update_object" on the service with the first last query result
When I call "Products" on the service
And I filter the query with: "Name eq 'Product 2'"
- And I run the query
+ And I run the query
And I set "Name" on the first result to "Product 2 - Updated"
And I call "update_object" on the service with the first last query result
When I save changes
When I call "Products" on the service
And I order by: "Name"
- And I run the query
+ And I run the query within a cassette named "batch_request_updates"
Then the result should be:
| Name |
| Product 1 - Updated |
@@ -55,12 +56,12 @@ Scenario: Save Changes should allow for batch deletes
And I call "delete_object" on the service with the first last query result
When I call "Products" on the service
And I filter the query with: "Name eq 'Product 3'"
- And I run the query
+ And I run the query
And I call "delete_object" on the service with the first last query result
When I save changes
When I call "Products" on the service
And I order by: "Name"
- And I run the query
+ And I run the query within a cassette named "batch_request_deletes"
Then the result should be:
| Name |
| Product 1 |
View
69 features/cassettes/batch_request_additions.yml
@@ -0,0 +1,69 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$orderby=Name
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '2706'
+ Content-Type:
+ - application/atom+xml;type=feed;charset=utf-8
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=f4m0q12lgd4twvpgowaich4j; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:14 GMT
+ body:
+ encoding: US-ASCII
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
+ type="text">Products</title><updated>2012-08-07T21:43:15Z</updated><link rel="self"
+ title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
+ /><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:14.983</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:43:14.983</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
+ /><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
+ 2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:14.983</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:43:14.983</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:43:14 GMT
+recorded_with: VCR 2.2.4
View
69 features/cassettes/batch_request_deletes.yml
@@ -0,0 +1,69 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$orderby=Name
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '2702'
+ Content-Type:
+ - application/atom+xml;type=feed;charset=utf-8
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=qafny5qbazxvbtg3q0znew3e; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:15 GMT
+ body:
+ encoding: US-ASCII
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
+ type="text">Products</title><updated>2012-08-07T21:43:16Z</updated><link rel="self"
+ title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
+ /><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:16.11</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:43:16.11</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(4)/Category"
+ /><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">4</d:Id><d:Name>Product
+ 4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">4</d:CategoryId><d:AuditFields
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:16.11</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:43:16.11</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:43:16 GMT
+recorded_with: VCR 2.2.4
View
69 features/cassettes/batch_request_updates.yml
@@ -0,0 +1,69 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$orderby=Name
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '2728'
+ Content-Type:
+ - application/atom+xml;type=feed;charset=utf-8
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=xbi0rweg5uqzhtmxau31f0my; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:15 GMT
+ body:
+ encoding: US-ASCII
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
+ type="text">Products</title><updated>2012-08-07T21:43:15Z</updated><link rel="self"
+ title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
+ /><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
+ 1 - Updated</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">100.00</d:Price><d:DiscontinuedDate
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:15.453</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:43:15.453</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
+ /><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
+ 2 - Updated</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">100.00</d:Price><d:DiscontinuedDate
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:15.453</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:43:15.453</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:43:15 GMT
+recorded_with: VCR 2.2.4
View
46 features/cassettes/clean_database_for_testing.yml
@@ -0,0 +1,46 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/CleanDatabaseForTesting
+ body:
+ encoding: ASCII-8BIT
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Length:
+ - '0'
+ Content-Type:
+ - application/x-www-form-urlencoded
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 204
+ message: No Content
+ headers:
+ Cache-Control:
+ - no-cache
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=o4ege2gplbuvzbgrt4ij0bku; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:47:39 GMT
+ body:
+ encoding: US-ASCII
+ string: ''
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:47:40 GMT
+recorded_with: VCR 2.2.4
View
297 features/cassettes/cucumber_tags/basic_auth.yml
@@ -0,0 +1,297 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: http://admin:passwd@win7dev:8989/SampleService/BasicAuth/RubyOData.svc/Categories
+ body:
+ encoding: ASCII-8BIT
+ string: ! '{"Name":"Auth Test Category","AuditFields":{"CreatedBy":"Machinist"}}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '69'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '1278'
+ Content-Type:
+ - application/atom+xml;type=entry;charset=utf-8
+ Location:
+ - http://win7dev:8989/SampleService/BasicAuth/RubyOData.svc/Categories(1)
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=b5h3vo0kbga5mdcgu2nfisos; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:21:24 GMT
+ body:
+ encoding: US-ASCII
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/BasicAuth/RubyOData.svc/"
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/BasicAuth/RubyOData.svc/Categories(1)</id><category
+ term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Category" href="Categories(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"
+ type="application/atom+xml;type=feed" title="Products" href="Categories(1)/Products"
+ /><title /><updated>2012-08-07T21:21:25Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Auth
+ Test Category</d:Name><d:AuditFields m:type="RubyODataService.AuditFields"><d:CreateDate
+ m:type="Edm.DateTime">2012-08-07T21:21:25.296875Z</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:21:25.296875Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:21:25 GMT
+- request:
+ method: get
+ uri: http://admin:passwd@win7dev:8989/SampleService/BasicAuth/RubyOData.svc/Categories(1)
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '1270'
+ Content-Type:
+ - application/atom+xml;type=entry;charset=utf-8
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=vqh02cwip2bvnmgt4smeb5ok; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:21:24 GMT
+ body:
+ encoding: US-ASCII
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/BasicAuth/RubyOData.svc/"
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/BasicAuth/RubyOData.svc/Categories(1)</id><category
+ term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Category" href="Categories(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"
+ type="application/atom+xml;type=feed" title="Products" href="Categories(1)/Products"
+ /><title /><updated>2012-08-07T21:21:25Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Auth
+ Test Category</d:Name><d:AuditFields m:type="RubyODataService.AuditFields"><d:CreateDate
+ m:type="Edm.DateTime">2012-08-07T21:21:25.297</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:21:25.297</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:21:25 GMT
+- request:
+ method: get
+ uri: http://admin:bad_pwd@win7dev:8989/SampleService/BasicAuth/RubyOData.svc/$metadata
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 401
+ message: Unauthorized
+ headers:
+ Content-Type:
+ - text/html
+ Server:
+ - Microsoft-IIS/7.5
+ Www-Authenticate:
+ - Basic
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:21:24 GMT
+ Content-Length:
+ - '1218'
+ body:
+ encoding: US-ASCII
+ string: ! "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n<html
+ xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n<title>401 - Unauthorized:
+ Access is denied due to invalid credentials.</title>\r\n<style type=\"text/css\">\r\n<!--\r\nbody{margin:0;font-size:.7em;font-family:Verdana,
+ Arial, Helvetica, sans-serif;background:#EEEEEE;}\r\nfieldset{padding:0 15px
+ 10px 15px;} \r\nh1{font-size:2.4em;margin:0;color:#FFF;}\r\nh2{font-size:1.7em;margin:0;color:#CC0000;}
+ \r\nh3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} \r\n#header{width:96%;margin:0
+ 0 0 0;padding:6px 2% 6px 2%;font-family:\"trebuchet MS\", Verdana, sans-serif;color:#FFF;\r\nbackground-color:#555555;}\r\n#content{margin:0
+ 0 0 2%;position:relative;}\r\n.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n<div
+ id=\"header\"><h1>Server Error</h1></div>\r\n<div id=\"content\">\r\n <div
+ class=\"content-container\"><fieldset>\r\n <h2>401 - Unauthorized: Access
+ is denied due to invalid credentials.</h2>\r\n <h3>You do not have permission
+ to view this directory or page using the credentials that you supplied.</h3>\r\n
+ </fieldset></div>\r\n</div>\r\n</body>\r\n</html>\r\n"
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:21:25 GMT
+- request:
+ method: get
+ uri: http://admin:passwd@win7dev:8989/SampleService/BasicAuth/RubyOData.svc/$metadata
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '4055'
+ Content-Type:
+ - application/xml;charset=utf-8
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=qdj1en0bcagvrdhule4xjvxg; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:21:24 GMT
+ body:
+ encoding: US-ASCII
+ string: <?xml version="1.0" encoding="utf-8"?><edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"><edmx:DataServices
+ m:DataServiceVersion="1.0" m:MaxDataServiceVersion="3.0" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><Schema
+ Namespace="RubyODataService" xmlns="http://schemas.microsoft.com/ado/2008/09/edm"><EntityType
+ Name="Product"><Key><PropertyRef Name="Id" /></Key><Property Name="Id" Type="Edm.Int32"
+ Nullable="false" p6:StoreGeneratedPattern="Identity" xmlns:p6="http://schemas.microsoft.com/ado/2009/02/edm/annotation"
+ /><Property Name="Name" Type="Edm.String" MaxLength="4000" FixedLength="false"
+ Unicode="true" /><Property Name="Description" Type="Edm.String" MaxLength="4000"
+ FixedLength="false" Unicode="true" /><Property Name="Price" Type="Edm.Decimal"
+ Nullable="false" Precision="18" Scale="2" /><Property Name="DiscontinuedDate"
+ Type="Edm.DateTime" /><Property Name="CategoryId" Type="Edm.Int32" Nullable="false"
+ /><Property Name="AuditFields" Type="RubyODataService.AuditFields" Nullable="false"
+ /><NavigationProperty Name="Category" Relationship="RubyODataService.Category_Products"
+ ToRole="Category_Products_Source" FromRole="Category_Products_Target" /></EntityType><ComplexType
+ Name="AuditFields"><Property Name="CreateDate" Type="Edm.DateTime" Nullable="false"
+ /><Property Name="ModifiedDate" Type="Edm.DateTime" Nullable="false" /><Property
+ Name="CreatedBy" Type="Edm.String" MaxLength="4000" FixedLength="false" Unicode="true"
+ /></ComplexType><EntityType Name="Category"><Key><PropertyRef Name="Id" /></Key><Property
+ Name="Id" Type="Edm.Int32" Nullable="false" p6:StoreGeneratedPattern="Identity"
+ xmlns:p6="http://schemas.microsoft.com/ado/2009/02/edm/annotation" /><Property
+ Name="Name" Type="Edm.String" MaxLength="4000" FixedLength="false" Unicode="true"
+ /><Property Name="AuditFields" Type="RubyODataService.AuditFields" Nullable="false"
+ /><NavigationProperty Name="Products" Relationship="RubyODataService.Category_Products"
+ ToRole="Category_Products_Target" FromRole="Category_Products_Source" /></EntityType><EntityType
+ Name="EdmMetadata"><Key><PropertyRef Name="Id" /></Key><Property Name="Id"
+ Type="Edm.Int32" Nullable="false" p6:StoreGeneratedPattern="Identity" xmlns:p6="http://schemas.microsoft.com/ado/2009/02/edm/annotation"
+ /><Property Name="ModelHash" Type="Edm.String" MaxLength="4000" FixedLength="false"
+ Unicode="true" /></EntityType><Association Name="Category_Products"><End Type="RubyODataService.Product"
+ Role="Category_Products_Target" Multiplicity="*" /><End Type="RubyODataService.Category"
+ Role="Category_Products_Source" Multiplicity="1"><OnDelete Action="Cascade"
+ /></End><ReferentialConstraint><Principal Role="Category_Products_Source"><PropertyRef
+ Name="Id" /></Principal><Dependent Role="Category_Products_Target"><PropertyRef
+ Name="CategoryId" /></Dependent></ReferentialConstraint></Association><EntityContainer
+ Name="RubyODataContext" m:IsDefaultEntityContainer="true"><EntitySet Name="Products"
+ EntityType="RubyODataService.Product" /><EntitySet Name="Categories" EntityType="RubyODataService.Category"
+ /><EntitySet Name="EdmMetadatas" EntityType="RubyODataService.EdmMetadata"
+ /><AssociationSet Name="Category_Products" Association="RubyODataService.Category_Products"><End
+ Role="Category_Products_Target" EntitySet="Products" /><End Role="Category_Products_Source"
+ EntitySet="Categories" /></AssociationSet><FunctionImport Name="CleanDatabaseForTesting"
+ m:HttpMethod="POST" /><FunctionImport Name="EntityCategoryWebGet" ReturnType="Collection(RubyODataService.Category)"
+ EntitySet="Categories" m:HttpMethod="GET" /><FunctionImport Name="CategoryNames"
+ ReturnType="Collection(Edm.String)" m:HttpMethod="GET" /><FunctionImport Name="FirstCategoryId"
+ ReturnType="Edm.Int32" m:HttpMethod="GET" /><FunctionImport Name="EntitySingleCategoryWebGet"
+ ReturnType="RubyODataService.Category" EntitySet="Categories" m:HttpMethod="GET"><Parameter
+ Name="id" Type="Edm.Int32" /></FunctionImport></EntityContainer></Schema></edmx:DataServices></edmx:Edmx>
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:21:25 GMT
+- request:
+ method: get
+ uri: http://win7dev:8989/SampleService/BasicAuth/RubyOData.svc/$metadata
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 401
+ message: Unauthorized
+ headers:
+ Content-Type:
+ - text/html
+ Server:
+ - Microsoft-IIS/7.5
+ Www-Authenticate:
+ - Basic
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:21:24 GMT
+ Content-Length:
+ - '1218'
+ body:
+ encoding: US-ASCII
+ string: ! "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n<html
+ xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n<title>401 - Unauthorized:
+ Access is denied due to invalid credentials.</title>\r\n<style type=\"text/css\">\r\n<!--\r\nbody{margin:0;font-size:.7em;font-family:Verdana,
+ Arial, Helvetica, sans-serif;background:#EEEEEE;}\r\nfieldset{padding:0 15px
+ 10px 15px;} \r\nh1{font-size:2.4em;margin:0;color:#FFF;}\r\nh2{font-size:1.7em;margin:0;color:#CC0000;}
+ \r\nh3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} \r\n#header{width:96%;margin:0
+ 0 0 0;padding:6px 2% 6px 2%;font-family:\"trebuchet MS\", Verdana, sans-serif;color:#FFF;\r\nbackground-color:#555555;}\r\n#content{margin:0
+ 0 0 2%;position:relative;}\r\n.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n<div
+ id=\"header\"><h1>Server Error</h1></div>\r\n<div id=\"content\">\r\n <div
+ class=\"content-container\"><fieldset>\r\n <h2>401 - Unauthorized: Access
+ is denied due to invalid credentials.</h2>\r\n <h3>You do not have permission
+ to view this directory or page using the credentials that you supplied.</h3>\r\n
+ </fieldset></div>\r\n</div>\r\n</body>\r\n</html>\r\n"
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:21:25 GMT
+recorded_with: VCR 2.2.4
View
1,459 features/cassettes/cucumber_tags/batch_request.yml
@@ -0,0 +1,1459 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
+ body:
+ encoding: ASCII-8BIT
+ string: ! '--batch_wrza-bjm5-truu
+
+ Content-Type: multipart/mixed;boundary=changeset_oe8a-51ec-8853
+
+
+ --changeset_oe8a-51ec-8853
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ DELETE http://win7dev:8989/SampleService/RubyOData.svc/Products(2) HTTP/1.1
+
+ Accept-Charset: utf-8
+
+
+
+ --changeset_oe8a-51ec-8853
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ DELETE http://win7dev:8989/SampleService/RubyOData.svc/Products(3) HTTP/1.1
+
+ Accept-Charset: utf-8
+
+
+
+
+
+ --changeset_oe8a-51ec-8853--
+
+ --batch_wrza-bjm5-truu--'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - multipart/mixed; boundary=batch_wrza-bjm5-truu
+ Content-Length:
+ - '529'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 202
+ message: Accepted
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '748'
+ Content-Type:
+ - multipart/mixed; boundary=batchresponse_e0aea672-4b22-4da9-a589-1d64bf392d6a
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=csvfe1gmgawhmrnockgo2iai; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:41:54 GMT
+ body:
+ encoding: US-ASCII
+ string: ! "--batchresponse_e0aea672-4b22-4da9-a589-1d64bf392d6a\r\nContent-Type:
+ multipart/mixed; boundary=changesetresponse_5c9a708a-ddc5-480a-a8bd-48c3ab8da54c\r\n\r\n--changesetresponse_5c9a708a-ddc5-480a-a8bd-48c3ab8da54c\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
+ No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
+ 1.0;\r\n\r\n\r\n--changesetresponse_5c9a708a-ddc5-480a-a8bd-48c3ab8da54c\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
+ No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
+ 1.0;\r\n\r\n\r\n--changesetresponse_5c9a708a-ddc5-480a-a8bd-48c3ab8da54c--\r\n--batchresponse_e0aea672-4b22-4da9-a589-1d64bf392d6a--\r\n"
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:41:54 GMT
+- request:
+ method: post
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
+ body:
+ encoding: ASCII-8BIT
+ string: ! '{"Name":"Product 2","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
+ 0010","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '180'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '1436'
+ Content-Type:
+ - application/atom+xml;type=entry;charset=utf-8
+ Location:
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(2)
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=iufirzwsimdkjtcuez2ipifn; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:41:54 GMT
+ body:
+ encoding: US-ASCII
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
+ /><title /><updated>2012-08-07T21:41:54Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
+ 2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:41:54.953125Z</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:41:54.953125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:41:54 GMT
+- request:
+ method: post
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
+ body:
+ encoding: ASCII-8BIT
+ string: ! '--batch_3okz-2mtj-qkjy
+
+ Content-Type: multipart/mixed;boundary=changeset_ffs2-0y82-ap0e
+
+
+ --changeset_ffs2-0y82-ap0e
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 3","Description":"Test Widget","Price":"25.00","Category":{"Name":"Category
+ 0011","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
+
+ --changeset_ffs2-0y82-ap0e
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 4","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
+ 0012","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
+
+ --changeset_ffs2-0y82-ap0e
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ PUT http://win7dev:8989/SampleService/RubyOData.svc/Products(1) HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 1 - Updated","Description":"Test Widget","Price":"75.5","AuditFields":{"CreatedBy":"Machinist","CreateDate":"2012-08-07T21:41:54.657","ModifiedDate":"2012-08-07T21:41:54.657"},"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"},"Id":1,"DiscontinuedDate":null,"CategoryId":1}
+
+ --changeset_ffs2-0y82-ap0e
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ DELETE http://win7dev:8989/SampleService/RubyOData.svc/Products(2) HTTP/1.1
+
+ Accept-Charset: utf-8
+
+
+
+
+
+ --changeset_ffs2-0y82-ap0e--
+
+ --batch_3okz-2mtj-qkjy--'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - multipart/mixed; boundary=batch_3okz-2mtj-qkjy
+ Content-Length:
+ - '1719'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 202
+ message: Accepted
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '4350'
+ Content-Type:
+ - multipart/mixed; boundary=batchresponse_50333c91-0a4f-42c5-9890-fb1a7d529723
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=uixf0em1pxmgxzyw0j3qmb4e; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:41:54 GMT
+ body:
+ encoding: US-ASCII
+ string: ! "--batchresponse_50333c91-0a4f-42c5-9890-fb1a7d529723\r\nContent-Type:
+ multipart/mixed; boundary=changesetresponse_37ac540f-9af8-457d-94fd-04be49f141b5\r\n\r\n--changesetresponse_37ac540f-9af8-457d-94fd-04be49f141b5\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
+ Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
+ nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(3)\r\n\r\n<?xml
+ version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
+ xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
+ xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
+ xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
+ term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
+ /><link rel=\"edit\" title=\"Product\" href=\"Products(3)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
+ type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(3)/Category\"
+ /><title /><updated>2012-08-07T21:41:55Z</updated><author><name /></author><content
+ type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">3</d:Id><d:Name>Product
+ 3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">25.00</d:Price><d:DiscontinuedDate
+ m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">3</d:CategoryId><d:AuditFields
+ m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:41:55.0625Z</d:CreateDate><d:ModifiedDate
+ m:type=\"Edm.DateTime\">2012-08-07T21:41:55.0625Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_37ac540f-9af8-457d-94fd-04be49f141b5\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
+ Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
+ nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(4)\r\n\r\n<?xml
+ version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
+ xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
+ xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
+ xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
+ term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
+ /><link rel=\"edit\" title=\"Product\" href=\"Products(4)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
+ type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(4)/Category\"
+ /><title /><updated>2012-08-07T21:41:55Z</updated><author><name /></author><content
+ type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">4</d:Id><d:Name>Product
+ 4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">50.00</d:Price><d:DiscontinuedDate
+ m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">4</d:CategoryId><d:AuditFields
+ m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:41:55.0625Z</d:CreateDate><d:ModifiedDate
+ m:type=\"Edm.DateTime\">2012-08-07T21:41:55.0625Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_37ac540f-9af8-457d-94fd-04be49f141b5\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
+ No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
+ 1.0;\r\n\r\n\r\n--changesetresponse_37ac540f-9af8-457d-94fd-04be49f141b5\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
+ No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
+ 1.0;\r\n\r\n\r\n--changesetresponse_37ac540f-9af8-457d-94fd-04be49f141b5--\r\n--batchresponse_50333c91-0a4f-42c5-9890-fb1a7d529723--\r\n"
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:41:54 GMT
+- request:
+ method: post
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
+ body:
+ encoding: ASCII-8BIT
+ string: ! '--batch_48oh-g969-yxqy
+
+ Content-Type: multipart/mixed;boundary=changeset_kjgs-xssh-rjpp
+
+
+ --changeset_kjgs-xssh-rjpp
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 1","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
+ 0001","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
+
+ --changeset_kjgs-xssh-rjpp
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 2","Description":"Test Widget","Price":"25.00","Category":{"Name":"Category
+ 0002","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
+
+
+
+ --changeset_kjgs-xssh-rjpp--
+
+ --batch_48oh-g969-yxqy--'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - multipart/mixed; boundary=batch_48oh-g969-yxqy
+ Content-Length:
+ - '969'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 202
+ message: Accepted
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '3878'
+ Content-Type:
+ - multipart/mixed; boundary=batchresponse_127734df-0d45-48a2-bb5d-aef7a738c28e
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=sxgxpcqlok2m1xbq2wb1mfe2; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:14 GMT
+ body:
+ encoding: US-ASCII
+ string: ! "--batchresponse_127734df-0d45-48a2-bb5d-aef7a738c28e\r\nContent-Type:
+ multipart/mixed; boundary=changesetresponse_217833d8-def6-4659-bd89-9606566ee605\r\n\r\n--changesetresponse_217833d8-def6-4659-bd89-9606566ee605\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
+ Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
+ nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)\r\n\r\n<?xml
+ version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
+ xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
+ xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
+ xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
+ term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
+ /><link rel=\"edit\" title=\"Product\" href=\"Products(1)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
+ type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(1)/Category\"
+ /><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
+ type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">1</d:Id><d:Name>Product
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">50.00</d:Price><d:DiscontinuedDate
+ m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">1</d:CategoryId><d:AuditFields
+ m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:14.984375Z</d:CreateDate><d:ModifiedDate
+ m:type=\"Edm.DateTime\">2012-08-07T21:43:14.984375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_217833d8-def6-4659-bd89-9606566ee605\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
+ Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
+ nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(2)\r\n\r\n<?xml
+ version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
+ xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
+ xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
+ xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
+ term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
+ /><link rel=\"edit\" title=\"Product\" href=\"Products(2)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
+ type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(2)/Category\"
+ /><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
+ type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">2</d:Id><d:Name>Product
+ 2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">25.00</d:Price><d:DiscontinuedDate
+ m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">2</d:CategoryId><d:AuditFields
+ m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:14.984375Z</d:CreateDate><d:ModifiedDate
+ m:type=\"Edm.DateTime\">2012-08-07T21:43:14.984375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_217833d8-def6-4659-bd89-9606566ee605--\r\n--batchresponse_127734df-0d45-48a2-bb5d-aef7a738c28e--\r\n"
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:43:14 GMT
+- request:
+ method: post
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
+ body:
+ encoding: ASCII-8BIT
+ string: ! '--batch_8vhp-dtx1-hjrw
+
+ Content-Type: multipart/mixed;boundary=changeset_yvjs-14q8-nb5k
+
+
+ --changeset_yvjs-14q8-nb5k
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 1","Description":"Test Widget","Price":"100.00","Category":{"Name":"Category
+ 0003","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
+
+ --changeset_yvjs-14q8-nb5k
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 2","Description":"Test Widget","Price":"100.00","Category":{"Name":"Category
+ 0004","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
+
+
+
+ --changeset_yvjs-14q8-nb5k--
+
+ --batch_8vhp-dtx1-hjrw--'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - multipart/mixed; boundary=batch_8vhp-dtx1-hjrw
+ Content-Length:
+ - '971'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 202
+ message: Accepted
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '3880'
+ Content-Type:
+ - multipart/mixed; boundary=batchresponse_0f25ae1c-f035-4668-a98e-e26ca6d59926
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=5smpy2dfpc11sis2rr2xsqbv; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:14 GMT
+ body:
+ encoding: US-ASCII
+ string: ! "--batchresponse_0f25ae1c-f035-4668-a98e-e26ca6d59926\r\nContent-Type:
+ multipart/mixed; boundary=changesetresponse_e732252b-9ef0-4354-96a6-bf6f2f41b049\r\n\r\n--changesetresponse_e732252b-9ef0-4354-96a6-bf6f2f41b049\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
+ Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
+ nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)\r\n\r\n<?xml
+ version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
+ xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
+ xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
+ xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
+ term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
+ /><link rel=\"edit\" title=\"Product\" href=\"Products(1)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
+ type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(1)/Category\"
+ /><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
+ type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">1</d:Id><d:Name>Product
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">100.00</d:Price><d:DiscontinuedDate
+ m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">1</d:CategoryId><d:AuditFields
+ m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:15.453125Z</d:CreateDate><d:ModifiedDate
+ m:type=\"Edm.DateTime\">2012-08-07T21:43:15.453125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_e732252b-9ef0-4354-96a6-bf6f2f41b049\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
+ Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
+ nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(2)\r\n\r\n<?xml
+ version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
+ xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
+ xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
+ xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
+ term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
+ /><link rel=\"edit\" title=\"Product\" href=\"Products(2)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
+ type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(2)/Category\"
+ /><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
+ type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">2</d:Id><d:Name>Product
+ 2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">100.00</d:Price><d:DiscontinuedDate
+ m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">2</d:CategoryId><d:AuditFields
+ m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:15.453125Z</d:CreateDate><d:ModifiedDate
+ m:type=\"Edm.DateTime\">2012-08-07T21:43:15.453125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_e732252b-9ef0-4354-96a6-bf6f2f41b049--\r\n--batchresponse_0f25ae1c-f035-4668-a98e-e26ca6d59926--\r\n"
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:43:15 GMT
+- request:
+ method: post
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
+ body:
+ encoding: ASCII-8BIT
+ string: ! '--batch_9uz7-6w6j-u096
+
+ Content-Type: multipart/mixed;boundary=changeset_n78u-fr40-zs2r
+
+
+ --changeset_n78u-fr40-zs2r
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ PUT http://win7dev:8989/SampleService/RubyOData.svc/Products(1) HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 1 - Updated","Description":"Test Widget","Price":"100.0","AuditFields":{"CreatedBy":"Machinist","CreateDate":"2012-08-07T21:43:15.453","ModifiedDate":"2012-08-07T21:43:15.453"},"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"},"Id":1,"DiscontinuedDate":null,"CategoryId":1}
+
+ --changeset_n78u-fr40-zs2r
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ PUT http://win7dev:8989/SampleService/RubyOData.svc/Products(2) HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 2 - Updated","Description":"Test Widget","Price":"100.0","AuditFields":{"CreatedBy":"Machinist","CreateDate":"2012-08-07T21:43:15.453","ModifiedDate":"2012-08-07T21:43:15.453"},"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(2)"},"Id":2,"DiscontinuedDate":null,"CategoryId":2}
+
+
+
+ --changeset_n78u-fr40-zs2r--
+
+ --batch_9uz7-6w6j-u096--'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - multipart/mixed; boundary=batch_9uz7-6w6j-u096
+ Content-Length:
+ - '1259'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 202
+ message: Accepted
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '748'
+ Content-Type:
+ - multipart/mixed; boundary=batchresponse_a882e427-ac6a-433c-b4c9-ec2f4a7e69bb
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=13klfcxbx3mb3dvnsxncgid2; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:15 GMT
+ body:
+ encoding: US-ASCII
+ string: ! "--batchresponse_a882e427-ac6a-433c-b4c9-ec2f4a7e69bb\r\nContent-Type:
+ multipart/mixed; boundary=changesetresponse_02ab7f4e-8ca2-4071-9f2f-bc39585acaf6\r\n\r\n--changesetresponse_02ab7f4e-8ca2-4071-9f2f-bc39585acaf6\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
+ No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
+ 1.0;\r\n\r\n\r\n--changesetresponse_02ab7f4e-8ca2-4071-9f2f-bc39585acaf6\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
+ No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
+ 1.0;\r\n\r\n\r\n--changesetresponse_02ab7f4e-8ca2-4071-9f2f-bc39585acaf6--\r\n--batchresponse_a882e427-ac6a-433c-b4c9-ec2f4a7e69bb--\r\n"
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:43:15 GMT
+- request:
+ method: post
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
+ body:
+ encoding: ASCII-8BIT
+ string: ! '--batch_27vi-97pd-gwk9
+
+ Content-Type: multipart/mixed;boundary=changeset_kt35-2kvq-6fh9
+
+
+ --changeset_kt35-2kvq-6fh9
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 1","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
+ 0005","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
+
+ --changeset_kt35-2kvq-6fh9
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 2","Description":"Test Widget","Price":"100.00","Category":{"Name":"Category
+ 0006","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
+
+ --changeset_kt35-2kvq-6fh9
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 3","Description":"Test Widget","Price":"75.50","Category":{"Name":"Category
+ 0007","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
+
+ --changeset_kt35-2kvq-6fh9
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 4","Description":"Test Widget","Price":"75.50","Category":{"Name":"Category
+ 0008","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
+
+
+
+ --changeset_kt35-2kvq-6fh9--
+
+ --batch_27vi-97pd-gwk9--'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - multipart/mixed; boundary=batch_27vi-97pd-gwk9
+ Content-Length:
+ - '1796'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 202
+ message: Accepted
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '7489'
+ Content-Type:
+ - multipart/mixed; boundary=batchresponse_9d2ef03d-c017-4095-a2c5-afde0d84ac3d
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=mhideuzzwkhbcr2vmrj3thmn; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:15 GMT
+ body:
+ encoding: US-ASCII
+ string: ! "--batchresponse_9d2ef03d-c017-4095-a2c5-afde0d84ac3d\r\nContent-Type:
+ multipart/mixed; boundary=changesetresponse_dd4b9425-5e1d-424a-8076-7b35380f059d\r\n\r\n--changesetresponse_dd4b9425-5e1d-424a-8076-7b35380f059d\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
+ Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
+ nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)\r\n\r\n<?xml
+ version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
+ xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
+ xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
+ xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
+ term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
+ /><link rel=\"edit\" title=\"Product\" href=\"Products(1)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
+ type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(1)/Category\"
+ /><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
+ type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">1</d:Id><d:Name>Product
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">50.00</d:Price><d:DiscontinuedDate
+ m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">1</d:CategoryId><d:AuditFields
+ m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:CreateDate><d:ModifiedDate
+ m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_dd4b9425-5e1d-424a-8076-7b35380f059d\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
+ Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
+ nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(2)\r\n\r\n<?xml
+ version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
+ xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
+ xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
+ xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
+ term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
+ /><link rel=\"edit\" title=\"Product\" href=\"Products(2)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
+ type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(2)/Category\"
+ /><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
+ type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">2</d:Id><d:Name>Product
+ 2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">100.00</d:Price><d:DiscontinuedDate
+ m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">2</d:CategoryId><d:AuditFields
+ m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:CreateDate><d:ModifiedDate
+ m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_dd4b9425-5e1d-424a-8076-7b35380f059d\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
+ Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
+ nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(3)\r\n\r\n<?xml
+ version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
+ xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
+ xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
+ xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
+ term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
+ /><link rel=\"edit\" title=\"Product\" href=\"Products(3)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
+ type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(3)/Category\"
+ /><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
+ type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">3</d:Id><d:Name>Product
+ 3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">75.50</d:Price><d:DiscontinuedDate
+ m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">3</d:CategoryId><d:AuditFields
+ m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:CreateDate><d:ModifiedDate
+ m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_dd4b9425-5e1d-424a-8076-7b35380f059d\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
+ Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
+ nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(4)\r\n\r\n<?xml
+ version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
+ xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
+ xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
+ xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
+ term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
+ /><link rel=\"edit\" title=\"Product\" href=\"Products(4)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
+ type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(4)/Category\"
+ /><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
+ type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">4</d:Id><d:Name>Product
+ 4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">75.50</d:Price><d:DiscontinuedDate
+ m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">4</d:CategoryId><d:AuditFields
+ m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:CreateDate><d:ModifiedDate
+ m:type=\"Edm.DateTime\">2012-08-07T21:43:16.109375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_dd4b9425-5e1d-424a-8076-7b35380f059d--\r\n--batchresponse_9d2ef03d-c017-4095-a2c5-afde0d84ac3d--\r\n"
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:43:15 GMT
+- request:
+ method: get
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$filter=Name%20eq%20'Product%203'
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '1630'
+ Content-Type:
+ - application/atom+xml;type=feed;charset=utf-8
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=ke51zabef0nosga1ylegv1tb; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:15 GMT
+ body:
+ encoding: US-ASCII
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
+ type="text">Products</title><updated>2012-08-07T21:43:16Z</updated><link rel="self"
+ title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(3)/Category"
+ /><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">3</d:Id><d:Name>Product
+ 3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">3</d:CategoryId><d:AuditFields
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:16.11</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:43:16.11</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:43:16 GMT
+- request:
+ method: post
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
+ body:
+ encoding: ASCII-8BIT
+ string: ! '--batch_6l7o-hszs-ivo5
+
+ Content-Type: multipart/mixed;boundary=changeset_fpy5-z9jr-l7jn
+
+
+ --changeset_fpy5-z9jr-l7jn
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ DELETE http://win7dev:8989/SampleService/RubyOData.svc/Products(2) HTTP/1.1
+
+ Accept-Charset: utf-8
+
+
+
+ --changeset_fpy5-z9jr-l7jn
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ DELETE http://win7dev:8989/SampleService/RubyOData.svc/Products(3) HTTP/1.1
+
+ Accept-Charset: utf-8
+
+
+
+
+
+ --changeset_fpy5-z9jr-l7jn--
+
+ --batch_6l7o-hszs-ivo5--'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - multipart/mixed; boundary=batch_6l7o-hszs-ivo5
+ Content-Length:
+ - '529'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 202
+ message: Accepted
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '748'
+ Content-Type:
+ - multipart/mixed; boundary=batchresponse_383c9ccc-df0d-4698-8226-9d5a4cec3fac
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=5emgwxlmdljusbtbpvhhrg2j; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:15 GMT
+ body:
+ encoding: US-ASCII
+ string: ! "--batchresponse_383c9ccc-df0d-4698-8226-9d5a4cec3fac\r\nContent-Type:
+ multipart/mixed; boundary=changesetresponse_b0d6531e-890d-4211-96fa-3a2596603c81\r\n\r\n--changesetresponse_b0d6531e-890d-4211-96fa-3a2596603c81\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
+ No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
+ 1.0;\r\n\r\n\r\n--changesetresponse_b0d6531e-890d-4211-96fa-3a2596603c81\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
+ No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
+ 1.0;\r\n\r\n\r\n--changesetresponse_b0d6531e-890d-4211-96fa-3a2596603c81--\r\n--batchresponse_383c9ccc-df0d-4698-8226-9d5a4cec3fac--\r\n"
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:43:16 GMT
+- request:
+ method: post
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
+ body:
+ encoding: ASCII-8BIT
+ string: ! '{"Name":"Product 1","Description":"Test Widget","Price":"25.00","Category":{"Name":"Category
+ 0009","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '180'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '1434'
+ Content-Type:
+ - application/atom+xml;type=entry;charset=utf-8
+ Location:
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=zd4ztildc0fwxayue41gvwvl; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:16 GMT
+ body:
+ encoding: US-ASCII
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
+ /><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:16.90625Z</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:43:16.90625Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:43:16 GMT
+- request:
+ method: post
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
+ body:
+ encoding: ASCII-8BIT
+ string: ! '{"Name":"Product 2","Description":"Test Widget","Price":"10.25","Category":{"Name":"Category
+ 0010","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/json
+ Content-Length:
+ - '180'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '1434'
+ Content-Type:
+ - application/atom+xml;type=entry;charset=utf-8
+ Location:
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(2)
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=mzr4cp4kip2t3c1l4ujuy4ao; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:16 GMT
+ body:
+ encoding: US-ASCII
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
+ /><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
+ 2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:17.21875Z</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:43:17.21875Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:43:17 GMT
+- request:
+ method: get
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$filter=Name%20eq%20'Product%201'
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '1632'
+ Content-Type:
+ - application/atom+xml;type=feed;charset=utf-8
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=0grlznf3t0dfui4nzxh4mdmp; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:16 GMT
+ body:
+ encoding: US-ASCII
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
+ type="text">Products</title><updated>2012-08-07T21:43:17Z</updated><link rel="self"
+ title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
+ /><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:16.907</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:43:16.907</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:43:17 GMT
+- request:
+ method: get
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$filter=Name%20eq%20'Product%202'
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '1632'
+ Content-Type:
+ - application/atom+xml;type=feed;charset=utf-8
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=tr2rabewjopeyptiyykrjx4c; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:16 GMT
+ body:
+ encoding: US-ASCII
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
+ type="text">Products</title><updated>2012-08-07T21:43:17Z</updated><link rel="self"
+ title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
+ /><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
+ 2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:17.217</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:43:17.217</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:43:17 GMT
+- request:
+ method: post
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/$batch
+ body:
+ encoding: ASCII-8BIT
+ string: ! '--batch_k5ni-f3qm-t4qc
+
+ Content-Type: multipart/mixed;boundary=changeset_x91l-ym6z-bivx
+
+
+ --changeset_x91l-ym6z-bivx
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 3","Description":"Test Widget","Price":"25.00","Category":{"Name":"Category
+ 0011","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
+
+ --changeset_x91l-ym6z-bivx
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ POST http://win7dev:8989/SampleService/RubyOData.svc/Products HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 4","Description":"Test Widget","Price":"75.50","Category":{"Name":"Category
+ 0012","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}
+
+ --changeset_x91l-ym6z-bivx
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ PUT http://win7dev:8989/SampleService/RubyOData.svc/Products(1) HTTP/1.1
+
+ Accept-Charset: utf-8
+
+ Content-Type: application/json;charset=utf-8
+
+
+ {"Name":"Product 1 - Updated","Description":"Test Widget","Price":"25.0","AuditFields":{"CreatedBy":"Machinist","CreateDate":"2012-08-07T21:43:16.907","ModifiedDate":"2012-08-07T21:43:16.907"},"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"},"Id":1,"DiscontinuedDate":null,"CategoryId":1}
+
+ --changeset_x91l-ym6z-bivx
+
+ Content-Type: application/http
+
+ Content-Transfer-Encoding: binary
+
+
+ DELETE http://win7dev:8989/SampleService/RubyOData.svc/Products(2) HTTP/1.1
+
+ Accept-Charset: utf-8
+
+
+
+
+
+ --changeset_x91l-ym6z-bivx--
+
+ --batch_k5ni-f3qm-t4qc--'
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - multipart/mixed; boundary=batch_k5ni-f3qm-t4qc
+ Content-Length:
+ - '1719'
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 202
+ message: Accepted
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '4358'
+ Content-Type:
+ - multipart/mixed; boundary=batchresponse_0d15d6af-3250-4223-b89a-c04d27c5414e
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=ifw42ld5yqwdas0nfixyq20u; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:16 GMT
+ body:
+ encoding: US-ASCII
+ string: ! "--batchresponse_0d15d6af-3250-4223-b89a-c04d27c5414e\r\nContent-Type:
+ multipart/mixed; boundary=changesetresponse_d120d00b-8126-414c-abd0-1ed79b7f1c1c\r\n\r\n--changesetresponse_d120d00b-8126-414c-abd0-1ed79b7f1c1c\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
+ Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
+ nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(3)\r\n\r\n<?xml
+ version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
+ xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
+ xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
+ xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
+ term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
+ /><link rel=\"edit\" title=\"Product\" href=\"Products(3)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
+ type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(3)/Category\"
+ /><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
+ type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">3</d:Id><d:Name>Product
+ 3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">25.00</d:Price><d:DiscontinuedDate
+ m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">3</d:CategoryId><d:AuditFields
+ m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:17.359375Z</d:CreateDate><d:ModifiedDate
+ m:type=\"Edm.DateTime\">2012-08-07T21:43:17.359375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_d120d00b-8126-414c-abd0-1ed79b7f1c1c\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 201
+ Created\r\nDataServiceVersion: 1.0;\r\nContent-Type: application/atom+xml;type=entry;charset=utf-8\r\nX-Content-Type-Options:
+ nosniff\r\nCache-Control: no-cache\r\nLocation: http://win7dev:8989/SampleService/RubyOData.svc/Products(4)\r\n\r\n<?xml
+ version=\"1.0\" encoding=\"utf-8\"?><entry xml:base=\"http://win7dev:8989/SampleService/RubyOData.svc/\"
+ xmlns=\"http://www.w3.org/2005/Atom\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"
+ xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"
+ xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
+ term=\"RubyODataService.Product\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"
+ /><link rel=\"edit\" title=\"Product\" href=\"Products(4)\" /><link rel=\"http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category\"
+ type=\"application/atom+xml;type=entry\" title=\"Category\" href=\"Products(4)/Category\"
+ /><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
+ type=\"application/xml\"><m:properties><d:Id m:type=\"Edm.Int32\">4</d:Id><d:Name>Product
+ 4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type=\"Edm.Decimal\">75.50</d:Price><d:DiscontinuedDate
+ m:type=\"Edm.DateTime\" m:null=\"true\" /><d:CategoryId m:type=\"Edm.Int32\">4</d:CategoryId><d:AuditFields
+ m:type=\"RubyODataService.AuditFields\"><d:CreateDate m:type=\"Edm.DateTime\">2012-08-07T21:43:17.359375Z</d:CreateDate><d:ModifiedDate
+ m:type=\"Edm.DateTime\">2012-08-07T21:43:17.359375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>\r\n--changesetresponse_d120d00b-8126-414c-abd0-1ed79b7f1c1c\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
+ No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
+ 1.0;\r\n\r\n\r\n--changesetresponse_d120d00b-8126-414c-abd0-1ed79b7f1c1c\r\nContent-Type:
+ application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204
+ No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion:
+ 1.0;\r\n\r\n\r\n--changesetresponse_d120d00b-8126-414c-abd0-1ed79b7f1c1c--\r\n--batchresponse_0d15d6af-3250-4223-b89a-c04d27c5414e--\r\n"
+ http_version: !!null
+ recorded_at: Tue, 07 Aug 2012 21:43:17 GMT
+- request:
+ method: get
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$orderby=Name
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Accept:
+ - ! '*/*; q=0.5, application/xml'
+ Accept-Encoding:
+ - gzip, deflate
+ User-Agent:
+ - Ruby
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Length:
+ - '3786'
+ Content-Type:
+ - application/atom+xml;type=feed;charset=utf-8
+ Server:
+ - Microsoft-IIS/7.5
+ Set-Cookie:
+ - ASP.NET_SessionId=5kxfpgs21e3s54obg2aohzr3; path=/; HttpOnly
+ X-Content-Type-Options:
+ - nosniff
+ Dataserviceversion:
+ - 1.0;
+ X-Aspnet-Version:
+ - 4.0.30319
+ X-Powered-By:
+ - ASP.NET
+ Date:
+ - Tue, 07 Aug 2012 21:43:16 GMT
+ body:
+ encoding: US-ASCII
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
+ type="text">Products</title><updated>2012-08-07T21:43:17Z</updated><link rel="self"
+ title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
+ /><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
+ 1 - Updated</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:16.907</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:43:16.907</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(3)/Category"
+ /><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">3</d:Id><d:Name>Product
+ 3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">3</d:CategoryId><d:AuditFields
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:17.36</d:CreateDate><d:ModifiedDate
+ m:type="Edm.DateTime">2012-08-07T21:43:17.36</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
+ /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
+ type="application/atom+xml;type=entry" title="Category" href="Products(4)/Category"
+ /><title /><updated>2012-08-07T21:43:17Z</updated><author><name /></author><content