ruby_odata 0.1.0 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +7 -2
  4. data/.simplecov +10 -0
  5. data/.travis.yml +10 -4
  6. data/.yardopts +6 -0
  7. data/CHANGELOG.md +157 -0
  8. data/Guardfile +14 -0
  9. data/LICENSE +20 -22
  10. data/README.md +289 -0
  11. data/Rakefile +19 -9
  12. data/features/basic_auth.feature +3 -2
  13. data/features/batch_request.feature +7 -6
  14. data/features/cassettes/basic_auth_protected_resource.yml +57 -0
  15. data/features/cassettes/batch_request_additions.yml +69 -0
  16. data/features/cassettes/batch_request_deletes.yml +69 -0
  17. data/features/cassettes/batch_request_updates.yml +69 -0
  18. data/features/cassettes/clean_database_for_testing.yml +46 -0
  19. data/features/cassettes/cucumber_tags/basic_auth.yml +297 -0
  20. data/features/cassettes/cucumber_tags/batch_request.yml +1459 -0
  21. data/features/cassettes/cucumber_tags/complex_types.yml +326 -0
  22. data/features/cassettes/cucumber_tags/error_handling.yml +64 -0
  23. data/features/cassettes/cucumber_tags/query_builder.yml +2025 -0
  24. data/features/cassettes/cucumber_tags/service.yml +234 -0
  25. data/features/cassettes/cucumber_tags/service_manage.yml +937 -0
  26. data/features/cassettes/cucumber_tags/service_methods.yml +647 -0
  27. data/features/cassettes/cucumber_tags/ssl.yml +203 -0
  28. data/features/cassettes/cucumber_tags/type_conversion.yml +337 -0
  29. data/features/cassettes/service_manage_additions.yml +65 -0
  30. data/features/cassettes/service_manage_deletions.yml +58 -0
  31. data/features/cassettes/service_manage_deletions_2.yml +58 -0
  32. data/features/cassettes/unsecured_metadata.yml +89 -0
  33. data/features/complex_types.feature +4 -3
  34. data/features/error_handling.feature +13 -0
  35. data/features/query_builder.feature +30 -9
  36. data/features/service.feature +4 -3
  37. data/features/service_manage.feature +6 -5
  38. data/features/service_methods.feature +3 -2
  39. data/features/ssl.feature +8 -8
  40. data/features/step_definitions/service_steps.rb +32 -74
  41. data/features/support/env.rb +6 -3
  42. data/features/support/hooks.rb +3 -2
  43. data/features/support/pickle.rb +29 -18
  44. data/features/support/vcr.rb +24 -0
  45. data/features/type_conversion.feature +16 -17
  46. data/gemfiles/Gemfile.ruby187 +6 -0
  47. data/lib/ruby_odata.rb +20 -18
  48. data/lib/ruby_odata/association.rb +7 -6
  49. data/lib/ruby_odata/class_builder.rb +31 -14
  50. data/lib/ruby_odata/exceptions.rb +11 -0
  51. data/lib/ruby_odata/helpers.rb +17 -0
  52. data/lib/ruby_odata/operation.rb +5 -6
  53. data/lib/ruby_odata/property_metadata.rb +9 -7
  54. data/lib/ruby_odata/query_builder.rb +127 -63
  55. data/lib/ruby_odata/service.rb +265 -147
  56. data/lib/ruby_odata/version.rb +3 -1
  57. data/ruby_odata.gemspec +22 -13
  58. data/spec/fixtures/error_without_message.xml +5 -0
  59. data/spec/fixtures/int64_ids/edmx_boat_service.xml +19 -0
  60. data/spec/fixtures/int64_ids/edmx_car_service.xml +21 -0
  61. data/spec/fixtures/int64_ids/result_boats.xml +26 -0
  62. data/spec/fixtures/int64_ids/result_cars.xml +28 -0
  63. data/spec/fixtures/ms_system_center/edmx_ms_system_center.xml +1645 -0
  64. data/spec/fixtures/ms_system_center/edmx_ms_system_center_v2.xml +2120 -0
  65. data/spec/fixtures/ms_system_center/hardware_profiles.xml +61 -0
  66. data/spec/fixtures/ms_system_center/virtual_machines.xml +175 -0
  67. data/spec/fixtures/ms_system_center/vm_templates.xml +1193 -0
  68. data/spec/fixtures/nested_expands/edmx_northwind.xml +557 -0
  69. data/spec/fixtures/nested_expands/northwind_products_category_expands.xml +774 -0
  70. data/spec/fixtures/sample_service/result_select_categories_expand.xml +268 -0
  71. data/spec/fixtures/sample_service/result_select_categories_no_property.xml +6 -0
  72. data/spec/fixtures/sample_service/result_select_categories_travsing_no_expand.xml +6 -0
  73. data/spec/fixtures/sample_service/result_select_products_name_price.xml +92 -0
  74. data/spec/property_metadata_spec.rb +10 -10
  75. data/spec/query_builder_spec.rb +153 -14
  76. data/spec/revised_service_spec.rb +111 -6
  77. data/spec/service_spec.rb +389 -85
  78. data/spec/spec_helper.rb +3 -0
  79. data/spec/support/sample_service_matcher.rb +15 -0
  80. data/test/RubyODataService/RubyODataService/App_Data/.gitkeep +0 -0
  81. data/test/blueprints.rb +15 -9
  82. data/test/usage_samples/querying.rb +5 -1
  83. data/test/usage_samples/sample_data.rb +1 -3
  84. metadata +276 -76
  85. data/CHANGELOG.rdoc +0 -88
  86. data/README.rdoc +0 -259
@@ -0,0 +1,326 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: ! '{"Name":"Widget 0016","Description":"Test Widget","Price":"75.5","AuditFields":{"CreatedBy":"This
9
+ Test","CreateDate":"2012-08-07T20:02:58.983","ModifiedDate":"2012-08-07T20:02:58.983"},"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"},"Id":1,"DiscontinuedDate":null,"CategoryId":1}'
10
+ headers:
11
+ Accept:
12
+ - ! '*/*; q=0.5, application/xml'
13
+ Accept-Encoding:
14
+ - gzip, deflate
15
+ Content-Type:
16
+ - application/json
17
+ Content-Length:
18
+ - '314'
19
+ User-Agent:
20
+ - Ruby
21
+ response:
22
+ status:
23
+ code: 204
24
+ message: No Content
25
+ headers:
26
+ Cache-Control:
27
+ - no-cache
28
+ Server:
29
+ - Microsoft-IIS/7.5
30
+ Set-Cookie:
31
+ - ASP.NET_SessionId=msq4rvz1zd3a0mxrxxka1es1; path=/; HttpOnly
32
+ X-Content-Type-Options:
33
+ - nosniff
34
+ Dataserviceversion:
35
+ - 1.0;
36
+ X-Aspnet-Version:
37
+ - 4.0.30319
38
+ X-Powered-By:
39
+ - ASP.NET
40
+ Date:
41
+ - Tue, 07 Aug 2012 20:02:59 GMT
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ''
45
+ http_version: !!null
46
+ recorded_at: Tue, 07 Aug 2012 20:03:00 GMT
47
+ - request:
48
+ method: post
49
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
50
+ body:
51
+ encoding: ASCII-8BIT
52
+ string: ! '{"Name":"Widget 0015","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
53
+ 0016","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
54
+ headers:
55
+ Accept:
56
+ - ! '*/*; q=0.5, application/xml'
57
+ Accept-Encoding:
58
+ - gzip, deflate
59
+ Content-Type:
60
+ - application/json
61
+ Content-Length:
62
+ - '182'
63
+ User-Agent:
64
+ - Ruby
65
+ response:
66
+ status:
67
+ code: 201
68
+ message: Created
69
+ headers:
70
+ Cache-Control:
71
+ - no-cache
72
+ Content-Length:
73
+ - '1438'
74
+ Content-Type:
75
+ - application/atom+xml;type=entry;charset=utf-8
76
+ Location:
77
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
78
+ Server:
79
+ - Microsoft-IIS/7.5
80
+ Set-Cookie:
81
+ - ASP.NET_SessionId=hhsyabbmbtx03fr133q13szz; path=/; HttpOnly
82
+ X-Content-Type-Options:
83
+ - nosniff
84
+ Dataserviceversion:
85
+ - 1.0;
86
+ X-Aspnet-Version:
87
+ - 4.0.30319
88
+ X-Powered-By:
89
+ - ASP.NET
90
+ Date:
91
+ - Tue, 07 Aug 2012 21:21:29 GMT
92
+ body:
93
+ encoding: US-ASCII
94
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
95
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
96
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
97
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
98
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
99
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
100
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
101
+ /><title /><updated>2012-08-07T21:21:29Z</updated><author><name /></author><content
102
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
103
+ 0015</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
104
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
105
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:29.703125Z</d:CreateDate><d:ModifiedDate
106
+ m:type="Edm.DateTime">2012-08-07T21:21:29.703125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
107
+ http_version: !!null
108
+ recorded_at: Tue, 07 Aug 2012 21:21:29 GMT
109
+ - request:
110
+ method: post
111
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
112
+ body:
113
+ encoding: ASCII-8BIT
114
+ string: ! '{"Name":"Widget 0016","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
115
+ 0017","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
116
+ headers:
117
+ Accept:
118
+ - ! '*/*; q=0.5, application/xml'
119
+ Accept-Encoding:
120
+ - gzip, deflate
121
+ Content-Type:
122
+ - application/json
123
+ Content-Length:
124
+ - '182'
125
+ User-Agent:
126
+ - Ruby
127
+ response:
128
+ status:
129
+ code: 201
130
+ message: Created
131
+ headers:
132
+ Cache-Control:
133
+ - no-cache
134
+ Content-Length:
135
+ - '1438'
136
+ Content-Type:
137
+ - application/atom+xml;type=entry;charset=utf-8
138
+ Location:
139
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
140
+ Server:
141
+ - Microsoft-IIS/7.5
142
+ Set-Cookie:
143
+ - ASP.NET_SessionId=ffup2xitk1zqkpf1ac2zxl1g; path=/; HttpOnly
144
+ X-Content-Type-Options:
145
+ - nosniff
146
+ Dataserviceversion:
147
+ - 1.0;
148
+ X-Aspnet-Version:
149
+ - 4.0.30319
150
+ X-Powered-By:
151
+ - ASP.NET
152
+ Date:
153
+ - Tue, 07 Aug 2012 21:21:29 GMT
154
+ body:
155
+ encoding: US-ASCII
156
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
157
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
158
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
159
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
160
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
161
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
162
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
163
+ /><title /><updated>2012-08-07T21:21:30Z</updated><author><name /></author><content
164
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
165
+ 0016</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
166
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
167
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:30.203125Z</d:CreateDate><d:ModifiedDate
168
+ m:type="Edm.DateTime">2012-08-07T21:21:30.203125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
169
+ http_version: !!null
170
+ recorded_at: Tue, 07 Aug 2012 21:21:30 GMT
171
+ - request:
172
+ method: get
173
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
174
+ body:
175
+ encoding: US-ASCII
176
+ string: ''
177
+ headers:
178
+ Accept:
179
+ - ! '*/*; q=0.5, application/xml'
180
+ Accept-Encoding:
181
+ - gzip, deflate
182
+ User-Agent:
183
+ - Ruby
184
+ response:
185
+ status:
186
+ code: 200
187
+ message: OK
188
+ headers:
189
+ Cache-Control:
190
+ - no-cache
191
+ Content-Length:
192
+ - '1430'
193
+ Content-Type:
194
+ - application/atom+xml;type=entry;charset=utf-8
195
+ Server:
196
+ - Microsoft-IIS/7.5
197
+ Set-Cookie:
198
+ - ASP.NET_SessionId=q331g3vrlmziuoor4lgo3wii; path=/; HttpOnly
199
+ X-Content-Type-Options:
200
+ - nosniff
201
+ Dataserviceversion:
202
+ - 1.0;
203
+ X-Aspnet-Version:
204
+ - 4.0.30319
205
+ X-Powered-By:
206
+ - ASP.NET
207
+ Date:
208
+ - Tue, 07 Aug 2012 21:21:29 GMT
209
+ body:
210
+ encoding: US-ASCII
211
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
212
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
213
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
214
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
215
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
216
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
217
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
218
+ /><title /><updated>2012-08-07T21:21:30Z</updated><author><name /></author><content
219
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
220
+ 0016</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
221
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
222
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:30.203</d:CreateDate><d:ModifiedDate
223
+ m:type="Edm.DateTime">2012-08-07T21:21:30.203</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
224
+ http_version: !!null
225
+ recorded_at: Tue, 07 Aug 2012 21:21:30 GMT
226
+ - request:
227
+ method: put
228
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
229
+ body:
230
+ encoding: ASCII-8BIT
231
+ string: ! '{"Name":"Widget 0016","Description":"Test Widget","Price":"50.0","AuditFields":{"CreatedBy":"This
232
+ Test","CreateDate":"2012-08-07T21:21:30.203","ModifiedDate":"2012-08-07T21:21:30.203"},"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"},"Id":1,"DiscontinuedDate":null,"CategoryId":1}'
233
+ headers:
234
+ Accept:
235
+ - ! '*/*; q=0.5, application/xml'
236
+ Accept-Encoding:
237
+ - gzip, deflate
238
+ Content-Type:
239
+ - application/json
240
+ Content-Length:
241
+ - '314'
242
+ User-Agent:
243
+ - Ruby
244
+ response:
245
+ status:
246
+ code: 204
247
+ message: No Content
248
+ headers:
249
+ Cache-Control:
250
+ - no-cache
251
+ Server:
252
+ - Microsoft-IIS/7.5
253
+ Set-Cookie:
254
+ - ASP.NET_SessionId=xnc5st3ouic4cqvhtjuxknps; path=/; HttpOnly
255
+ X-Content-Type-Options:
256
+ - nosniff
257
+ Dataserviceversion:
258
+ - 1.0;
259
+ X-Aspnet-Version:
260
+ - 4.0.30319
261
+ X-Powered-By:
262
+ - ASP.NET
263
+ Date:
264
+ - Tue, 07 Aug 2012 21:21:30 GMT
265
+ body:
266
+ encoding: US-ASCII
267
+ string: ''
268
+ http_version: !!null
269
+ recorded_at: Tue, 07 Aug 2012 21:21:30 GMT
270
+ - request:
271
+ method: get
272
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
273
+ body:
274
+ encoding: US-ASCII
275
+ string: ''
276
+ headers:
277
+ Accept:
278
+ - ! '*/*; q=0.5, application/xml'
279
+ Accept-Encoding:
280
+ - gzip, deflate
281
+ User-Agent:
282
+ - Ruby
283
+ response:
284
+ status:
285
+ code: 200
286
+ message: OK
287
+ headers:
288
+ Cache-Control:
289
+ - no-cache
290
+ Content-Length:
291
+ - '1430'
292
+ Content-Type:
293
+ - application/atom+xml;type=entry;charset=utf-8
294
+ Server:
295
+ - Microsoft-IIS/7.5
296
+ Set-Cookie:
297
+ - ASP.NET_SessionId=3m0mzj44claxcnmtdr3yokrn; path=/; HttpOnly
298
+ X-Content-Type-Options:
299
+ - nosniff
300
+ Dataserviceversion:
301
+ - 1.0;
302
+ X-Aspnet-Version:
303
+ - 4.0.30319
304
+ X-Powered-By:
305
+ - ASP.NET
306
+ Date:
307
+ - Tue, 07 Aug 2012 21:21:30 GMT
308
+ body:
309
+ encoding: US-ASCII
310
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
311
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
312
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
313
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
314
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
315
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
316
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
317
+ /><title /><updated>2012-08-07T21:21:30Z</updated><author><name /></author><content
318
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
319
+ 0016</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
320
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
321
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:30.203</d:CreateDate><d:ModifiedDate
322
+ m:type="Edm.DateTime">2012-08-07T21:21:30.203</d:ModifiedDate><d:CreatedBy>This
323
+ Test</d:CreatedBy></d:AuditFields></m:properties></content></entry>
324
+ http_version: !!null
325
+ recorded_at: Tue, 07 Aug 2012 21:21:30 GMT
326
+ recorded_with: VCR 2.2.4
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: ! '{"Name":"Widget 0017","Description":"Test Widget","Price":"","Category":{"Name":"Category
9
+ 0018","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
10
+ headers:
11
+ Accept:
12
+ - ! '*/*; q=0.5, application/xml'
13
+ Accept-Encoding:
14
+ - gzip, deflate
15
+ Content-Type:
16
+ - application/json
17
+ Content-Length:
18
+ - '177'
19
+ User-Agent:
20
+ - Ruby
21
+ response:
22
+ status:
23
+ code: 400
24
+ message: Bad Request
25
+ headers:
26
+ Cache-Control:
27
+ - private
28
+ Content-Length:
29
+ - '1210'
30
+ Content-Type:
31
+ - application/xml
32
+ Server:
33
+ - Microsoft-IIS/7.5
34
+ Set-Cookie:
35
+ - ASP.NET_SessionId=kw41qeekwnltvdgzfqkfsptr; path=/; HttpOnly
36
+ X-Content-Type-Options:
37
+ - nosniff
38
+ Dataserviceversion:
39
+ - 1.0;
40
+ X-Aspnet-Version:
41
+ - 4.0.30319
42
+ X-Powered-By:
43
+ - ASP.NET
44
+ Date:
45
+ - Tue, 07 Aug 2012 21:21:30 GMT
46
+ body:
47
+ encoding: US-ASCII
48
+ string: ! "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?><error
49
+ xmlns=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"><code></code><message
50
+ xml:lang=\"en-US\">Error processing request stream. Error encountered in converting
51
+ the value from request payload for property 'Price' to type 'Decimal', which
52
+ is the property's expected type. See inner exception for more detail.</message><innererror><message>Input
53
+ string was not in a correct format.</message><type>System.FormatException</type><stacktrace>
54
+ \ at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp;
55
+ number, NumberFormatInfo info, Boolean parseDecimal)&#xD;\n at System.Number.ParseDecimal(String
56
+ value, NumberStyles options, NumberFormatInfo numfmt)&#xD;\n at System.Convert.ToDecimal(String
57
+ value, IFormatProvider provider)&#xD;\n at System.String.System.IConvertible.ToDecimal(IFormatProvider
58
+ provider)&#xD;\n at System.Convert.ChangeType(Object value, Type conversionType,
59
+ IFormatProvider provider)&#xD;\n at System.Data.Services.Serializers.JsonDeserializer.ConvertValues(Object
60
+ value, String propertyName, Type typeToBeConverted, DataServiceProviderWrapper
61
+ provider)</stacktrace></innererror></error>"
62
+ http_version: !!null
63
+ recorded_at: Tue, 07 Aug 2012 21:21:31 GMT
64
+ recorded_with: VCR 2.2.4
@@ -0,0 +1,2025 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)?$expand=Category
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*; q=0.5, application/xml'
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - no-cache
23
+ Content-Length:
24
+ - '2343'
25
+ Content-Type:
26
+ - application/atom+xml;type=entry;charset=utf-8
27
+ Server:
28
+ - Microsoft-IIS/7.5
29
+ Set-Cookie:
30
+ - ASP.NET_SessionId=tpn4yinia5hq1aiqecsj40ma; path=/; HttpOnly
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ Dataserviceversion:
34
+ - 1.0;
35
+ X-Aspnet-Version:
36
+ - 4.0.30319
37
+ X-Powered-By:
38
+ - ASP.NET
39
+ Date:
40
+ - Tue, 07 Aug 2012 21:21:31 GMT
41
+ body:
42
+ encoding: US-ASCII
43
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
44
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
45
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
46
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
47
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
48
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
49
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"><m:inline><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)</id><category
50
+ term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
51
+ /><link rel="edit" title="Category" href="Categories(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"
52
+ type="application/atom+xml;type=feed" title="Products" href="Categories(1)/Products"
53
+ /><title /><updated>2012-08-07T21:21:31Z</updated><author><name /></author><content
54
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Test
55
+ Category</d:Name><d:AuditFields m:type="RubyODataService.AuditFields"><d:CreateDate
56
+ m:type="Edm.DateTime">2012-08-07T21:21:31.203</d:CreateDate><d:ModifiedDate
57
+ m:type="Edm.DateTime">2012-08-07T21:21:31.203</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></m:inline></link><title
58
+ /><updated>2012-08-07T21:21:31Z</updated><author><name /></author><content
59
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
60
+ 0018</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
61
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
62
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:31.5</d:CreateDate><d:ModifiedDate
63
+ m:type="Edm.DateTime">2012-08-07T21:21:31.5</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
64
+ http_version: !!null
65
+ recorded_at: Tue, 07 Aug 2012 21:21:31 GMT
66
+ - request:
67
+ method: get
68
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$filter=Name%20eq%20'Test%20Product'
69
+ body:
70
+ encoding: US-ASCII
71
+ string: ''
72
+ headers:
73
+ Accept:
74
+ - ! '*/*; q=0.5, application/xml'
75
+ Accept-Encoding:
76
+ - gzip, deflate
77
+ User-Agent:
78
+ - Ruby
79
+ response:
80
+ status:
81
+ code: 200
82
+ message: OK
83
+ headers:
84
+ Cache-Control:
85
+ - no-cache
86
+ Content-Length:
87
+ - '1635'
88
+ Content-Type:
89
+ - application/atom+xml;type=feed;charset=utf-8
90
+ Server:
91
+ - Microsoft-IIS/7.5
92
+ Set-Cookie:
93
+ - ASP.NET_SessionId=mnsk3xtwpusy1fgehrcumb5n; path=/; HttpOnly
94
+ X-Content-Type-Options:
95
+ - nosniff
96
+ Dataserviceversion:
97
+ - 1.0;
98
+ X-Aspnet-Version:
99
+ - 4.0.30319
100
+ X-Powered-By:
101
+ - ASP.NET
102
+ Date:
103
+ - Tue, 07 Aug 2012 21:21:31 GMT
104
+ body:
105
+ encoding: US-ASCII
106
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
107
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
108
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
109
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
110
+ type="text">Products</title><updated>2012-08-07T21:21:32Z</updated><link rel="self"
111
+ title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
112
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
113
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
114
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
115
+ /><title /><updated>2012-08-07T21:21:32Z</updated><author><name /></author><content
116
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Test
117
+ Product</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
118
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
119
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:32.093</d:CreateDate><d:ModifiedDate
120
+ m:type="Edm.DateTime">2012-08-07T21:21:32.093</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
121
+ http_version: !!null
122
+ recorded_at: Tue, 07 Aug 2012 21:21:32 GMT
123
+ - request:
124
+ method: get
125
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$orderby=Name
126
+ body:
127
+ encoding: US-ASCII
128
+ string: ''
129
+ headers:
130
+ Accept:
131
+ - ! '*/*; q=0.5, application/xml'
132
+ Accept-Encoding:
133
+ - gzip, deflate
134
+ User-Agent:
135
+ - Ruby
136
+ response:
137
+ status:
138
+ code: 200
139
+ message: OK
140
+ headers:
141
+ Cache-Control:
142
+ - no-cache
143
+ Content-Length:
144
+ - '5926'
145
+ Content-Type:
146
+ - application/atom+xml;type=feed;charset=utf-8
147
+ Server:
148
+ - Microsoft-IIS/7.5
149
+ Set-Cookie:
150
+ - ASP.NET_SessionId=kb2vbfrm25f0ubprp33fixr4; path=/; HttpOnly
151
+ X-Content-Type-Options:
152
+ - nosniff
153
+ Dataserviceversion:
154
+ - 1.0;
155
+ X-Aspnet-Version:
156
+ - 4.0.30319
157
+ X-Powered-By:
158
+ - ASP.NET
159
+ Date:
160
+ - Tue, 07 Aug 2012 21:21:33 GMT
161
+ body:
162
+ encoding: US-ASCII
163
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
164
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
165
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
166
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
167
+ type="text">Products</title><updated>2012-08-07T21:21:33Z</updated><link rel="self"
168
+ title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
169
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
170
+ /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
171
+ type="application/atom+xml;type=entry" title="Category" href="Products(4)/Category"
172
+ /><title /><updated>2012-08-07T21:21:33Z</updated><author><name /></author><content
173
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">4</d:Id><d:Name>Product
174
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
175
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">4</d:CategoryId><d:AuditFields
176
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:33.517</d:CreateDate><d:ModifiedDate
177
+ m:type="Edm.DateTime">2012-08-07T21:21:33.517</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
178
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
179
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
180
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
181
+ /><title /><updated>2012-08-07T21:21:33Z</updated><author><name /></author><content
182
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
183
+ 2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
184
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
185
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:32.657</d:CreateDate><d:ModifiedDate
186
+ m:type="Edm.DateTime">2012-08-07T21:21:32.657</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(5)</id><category
187
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
188
+ /><link rel="edit" title="Product" href="Products(5)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
189
+ type="application/atom+xml;type=entry" title="Category" href="Products(5)/Category"
190
+ /><title /><updated>2012-08-07T21:21:33Z</updated><author><name /></author><content
191
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">5</d:Id><d:Name>Product
192
+ 3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
193
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">5</d:CategoryId><d:AuditFields
194
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:33.86</d:CreateDate><d:ModifiedDate
195
+ m:type="Edm.DateTime">2012-08-07T21:21:33.86</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
196
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
197
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
198
+ type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
199
+ /><title /><updated>2012-08-07T21:21:33Z</updated><author><name /></author><content
200
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
201
+ 4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
202
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
203
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:32.953</d:CreateDate><d:ModifiedDate
204
+ m:type="Edm.DateTime">2012-08-07T21:21:32.953</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
205
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
206
+ /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
207
+ type="application/atom+xml;type=entry" title="Category" href="Products(3)/Category"
208
+ /><title /><updated>2012-08-07T21:21:33Z</updated><author><name /></author><content
209
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">3</d:Id><d:Name>Product
210
+ 5</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
211
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">3</d:CategoryId><d:AuditFields
212
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:33.267</d:CreateDate><d:ModifiedDate
213
+ m:type="Edm.DateTime">2012-08-07T21:21:33.267</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
214
+ http_version: !!null
215
+ recorded_at: Tue, 07 Aug 2012 21:21:34 GMT
216
+ - request:
217
+ method: get
218
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$orderby=Name%20desc
219
+ body:
220
+ encoding: US-ASCII
221
+ string: ''
222
+ headers:
223
+ Accept:
224
+ - ! '*/*; q=0.5, application/xml'
225
+ Accept-Encoding:
226
+ - gzip, deflate
227
+ User-Agent:
228
+ - Ruby
229
+ response:
230
+ status:
231
+ code: 200
232
+ message: OK
233
+ headers:
234
+ Cache-Control:
235
+ - no-cache
236
+ Content-Length:
237
+ - '5924'
238
+ Content-Type:
239
+ - application/atom+xml;type=feed;charset=utf-8
240
+ Server:
241
+ - Microsoft-IIS/7.5
242
+ Set-Cookie:
243
+ - ASP.NET_SessionId=urtpcjkoelitt5vq1n23vdqg; path=/; HttpOnly
244
+ X-Content-Type-Options:
245
+ - nosniff
246
+ Dataserviceversion:
247
+ - 1.0;
248
+ X-Aspnet-Version:
249
+ - 4.0.30319
250
+ X-Powered-By:
251
+ - ASP.NET
252
+ Date:
253
+ - Tue, 07 Aug 2012 21:21:35 GMT
254
+ body:
255
+ encoding: US-ASCII
256
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
257
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
258
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
259
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
260
+ type="text">Products</title><updated>2012-08-07T21:21:35Z</updated><link rel="self"
261
+ title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
262
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
263
+ /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
264
+ type="application/atom+xml;type=entry" title="Category" href="Products(3)/Category"
265
+ /><title /><updated>2012-08-07T21:21:35Z</updated><author><name /></author><content
266
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">3</d:Id><d:Name>Product
267
+ 5</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
268
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">3</d:CategoryId><d:AuditFields
269
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:35.077</d:CreateDate><d:ModifiedDate
270
+ m:type="Edm.DateTime">2012-08-07T21:21:35.077</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
271
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
272
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
273
+ type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
274
+ /><title /><updated>2012-08-07T21:21:35Z</updated><author><name /></author><content
275
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
276
+ 4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
277
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
278
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:34.717</d:CreateDate><d:ModifiedDate
279
+ m:type="Edm.DateTime">2012-08-07T21:21:34.717</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(5)</id><category
280
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
281
+ /><link rel="edit" title="Product" href="Products(5)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
282
+ type="application/atom+xml;type=entry" title="Category" href="Products(5)/Category"
283
+ /><title /><updated>2012-08-07T21:21:35Z</updated><author><name /></author><content
284
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">5</d:Id><d:Name>Product
285
+ 3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
286
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">5</d:CategoryId><d:AuditFields
287
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:35.61</d:CreateDate><d:ModifiedDate
288
+ m:type="Edm.DateTime">2012-08-07T21:21:35.61</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
289
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
290
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
291
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
292
+ /><title /><updated>2012-08-07T21:21:35Z</updated><author><name /></author><content
293
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
294
+ 2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
295
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
296
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:34.42</d:CreateDate><d:ModifiedDate
297
+ m:type="Edm.DateTime">2012-08-07T21:21:34.42</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
298
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
299
+ /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
300
+ type="application/atom+xml;type=entry" title="Category" href="Products(4)/Category"
301
+ /><title /><updated>2012-08-07T21:21:35Z</updated><author><name /></author><content
302
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">4</d:Id><d:Name>Product
303
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
304
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">4</d:CategoryId><d:AuditFields
305
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:35.327</d:CreateDate><d:ModifiedDate
306
+ m:type="Edm.DateTime">2012-08-07T21:21:35.327</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
307
+ http_version: !!null
308
+ recorded_at: Tue, 07 Aug 2012 21:21:35 GMT
309
+ - request:
310
+ method: get
311
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$orderby=Name%20asc
312
+ body:
313
+ encoding: US-ASCII
314
+ string: ''
315
+ headers:
316
+ Accept:
317
+ - ! '*/*; q=0.5, application/xml'
318
+ Accept-Encoding:
319
+ - gzip, deflate
320
+ User-Agent:
321
+ - Ruby
322
+ response:
323
+ status:
324
+ code: 200
325
+ message: OK
326
+ headers:
327
+ Cache-Control:
328
+ - no-cache
329
+ Content-Length:
330
+ - '5926'
331
+ Content-Type:
332
+ - application/atom+xml;type=feed;charset=utf-8
333
+ Server:
334
+ - Microsoft-IIS/7.5
335
+ Set-Cookie:
336
+ - ASP.NET_SessionId=rojo0vde52v5y2wxritac4pl; path=/; HttpOnly
337
+ X-Content-Type-Options:
338
+ - nosniff
339
+ Dataserviceversion:
340
+ - 1.0;
341
+ X-Aspnet-Version:
342
+ - 4.0.30319
343
+ X-Powered-By:
344
+ - ASP.NET
345
+ Date:
346
+ - Tue, 07 Aug 2012 21:21:37 GMT
347
+ body:
348
+ encoding: US-ASCII
349
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
350
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
351
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
352
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
353
+ type="text">Products</title><updated>2012-08-07T21:21:37Z</updated><link rel="self"
354
+ title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
355
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
356
+ /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
357
+ type="application/atom+xml;type=entry" title="Category" href="Products(4)/Category"
358
+ /><title /><updated>2012-08-07T21:21:37Z</updated><author><name /></author><content
359
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">4</d:Id><d:Name>Product
360
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
361
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">4</d:CategoryId><d:AuditFields
362
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:37.063</d:CreateDate><d:ModifiedDate
363
+ m:type="Edm.DateTime">2012-08-07T21:21:37.063</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
364
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
365
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
366
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
367
+ /><title /><updated>2012-08-07T21:21:37Z</updated><author><name /></author><content
368
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
369
+ 2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
370
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
371
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:36.217</d:CreateDate><d:ModifiedDate
372
+ m:type="Edm.DateTime">2012-08-07T21:21:36.217</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(5)</id><category
373
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
374
+ /><link rel="edit" title="Product" href="Products(5)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
375
+ type="application/atom+xml;type=entry" title="Category" href="Products(5)/Category"
376
+ /><title /><updated>2012-08-07T21:21:37Z</updated><author><name /></author><content
377
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">5</d:Id><d:Name>Product
378
+ 3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
379
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">5</d:CategoryId><d:AuditFields
380
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:37.36</d:CreateDate><d:ModifiedDate
381
+ m:type="Edm.DateTime">2012-08-07T21:21:37.36</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
382
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
383
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
384
+ type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
385
+ /><title /><updated>2012-08-07T21:21:37Z</updated><author><name /></author><content
386
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
387
+ 4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
388
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
389
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:36.467</d:CreateDate><d:ModifiedDate
390
+ m:type="Edm.DateTime">2012-08-07T21:21:36.467</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
391
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
392
+ /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
393
+ type="application/atom+xml;type=entry" title="Category" href="Products(3)/Category"
394
+ /><title /><updated>2012-08-07T21:21:37Z</updated><author><name /></author><content
395
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">3</d:Id><d:Name>Product
396
+ 5</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
397
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">3</d:CategoryId><d:AuditFields
398
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:36.813</d:CreateDate><d:ModifiedDate
399
+ m:type="Edm.DateTime">2012-08-07T21:21:36.813</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
400
+ http_version: !!null
401
+ recorded_at: Tue, 07 Aug 2012 21:21:37 GMT
402
+ - request:
403
+ method: get
404
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$skip=3
405
+ body:
406
+ encoding: US-ASCII
407
+ string: ''
408
+ headers:
409
+ Accept:
410
+ - ! '*/*; q=0.5, application/xml'
411
+ Accept-Encoding:
412
+ - gzip, deflate
413
+ User-Agent:
414
+ - Ruby
415
+ response:
416
+ status:
417
+ code: 200
418
+ message: OK
419
+ headers:
420
+ Cache-Control:
421
+ - no-cache
422
+ Content-Length:
423
+ - '2706'
424
+ Content-Type:
425
+ - application/atom+xml;type=feed;charset=utf-8
426
+ Server:
427
+ - Microsoft-IIS/7.5
428
+ Set-Cookie:
429
+ - ASP.NET_SessionId=3ycz20iv5tfj2aa0qycxfm15; path=/; HttpOnly
430
+ X-Content-Type-Options:
431
+ - nosniff
432
+ Dataserviceversion:
433
+ - 1.0;
434
+ X-Aspnet-Version:
435
+ - 4.0.30319
436
+ X-Powered-By:
437
+ - ASP.NET
438
+ Date:
439
+ - Tue, 07 Aug 2012 21:21:38 GMT
440
+ body:
441
+ encoding: US-ASCII
442
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
443
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
444
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
445
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
446
+ type="text">Products</title><updated>2012-08-07T21:21:39Z</updated><link rel="self"
447
+ title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
448
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
449
+ /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
450
+ type="application/atom+xml;type=entry" title="Category" href="Products(4)/Category"
451
+ /><title /><updated>2012-08-07T21:21:39Z</updated><author><name /></author><content
452
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">4</d:Id><d:Name>Product
453
+ 4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
454
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">4</d:CategoryId><d:AuditFields
455
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:38.733</d:CreateDate><d:ModifiedDate
456
+ m:type="Edm.DateTime">2012-08-07T21:21:38.733</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(5)</id><category
457
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
458
+ /><link rel="edit" title="Product" href="Products(5)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
459
+ type="application/atom+xml;type=entry" title="Category" href="Products(5)/Category"
460
+ /><title /><updated>2012-08-07T21:21:39Z</updated><author><name /></author><content
461
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">5</d:Id><d:Name>Product
462
+ 5</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
463
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">5</d:CategoryId><d:AuditFields
464
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:39.077</d:CreateDate><d:ModifiedDate
465
+ m:type="Edm.DateTime">2012-08-07T21:21:39.077</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
466
+ http_version: !!null
467
+ recorded_at: Tue, 07 Aug 2012 21:21:39 GMT
468
+ - request:
469
+ method: post
470
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
471
+ body:
472
+ encoding: ASCII-8BIT
473
+ string: ! '{"Name":"Product 4","Description":"Test Widget","Price":"75.50","Category":{"Name":"Category
474
+ 0044","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
475
+ headers:
476
+ Accept:
477
+ - ! '*/*; q=0.5, application/xml'
478
+ Accept-Encoding:
479
+ - gzip, deflate
480
+ Content-Type:
481
+ - application/json
482
+ Content-Length:
483
+ - '180'
484
+ User-Agent:
485
+ - Ruby
486
+ response:
487
+ status:
488
+ code: 201
489
+ message: Created
490
+ headers:
491
+ Cache-Control:
492
+ - no-cache
493
+ Content-Length:
494
+ - '1426'
495
+ Content-Type:
496
+ - application/atom+xml;type=entry;charset=utf-8
497
+ Location:
498
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(4)
499
+ Server:
500
+ - Microsoft-IIS/7.5
501
+ Set-Cookie:
502
+ - ASP.NET_SessionId=rm0o0sx4maezpke3au0gvwod; path=/; HttpOnly
503
+ X-Content-Type-Options:
504
+ - nosniff
505
+ Dataserviceversion:
506
+ - 1.0;
507
+ X-Aspnet-Version:
508
+ - 4.0.30319
509
+ X-Powered-By:
510
+ - ASP.NET
511
+ Date:
512
+ - Tue, 07 Aug 2012 21:21:39 GMT
513
+ body:
514
+ encoding: US-ASCII
515
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
516
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
517
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
518
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
519
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
520
+ /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
521
+ type="application/atom+xml;type=entry" title="Category" href="Products(4)/Category"
522
+ /><title /><updated>2012-08-07T21:21:40Z</updated><author><name /></author><content
523
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">4</d:Id><d:Name>Product
524
+ 4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
525
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">4</d:CategoryId><d:AuditFields
526
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:40.5Z</d:CreateDate><d:ModifiedDate
527
+ m:type="Edm.DateTime">2012-08-07T21:21:40.5Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
528
+ http_version: !!null
529
+ recorded_at: Tue, 07 Aug 2012 21:21:40 GMT
530
+ - request:
531
+ method: post
532
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
533
+ body:
534
+ encoding: ASCII-8BIT
535
+ string: ! '{"Name":"Product 5","Description":"Test Widget","Price":"10.25","Category":{"Name":"Category
536
+ 0045","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
537
+ headers:
538
+ Accept:
539
+ - ! '*/*; q=0.5, application/xml'
540
+ Accept-Encoding:
541
+ - gzip, deflate
542
+ Content-Type:
543
+ - application/json
544
+ Content-Length:
545
+ - '180'
546
+ User-Agent:
547
+ - Ruby
548
+ response:
549
+ status:
550
+ code: 201
551
+ message: Created
552
+ headers:
553
+ Cache-Control:
554
+ - no-cache
555
+ Content-Length:
556
+ - '1434'
557
+ Content-Type:
558
+ - application/atom+xml;type=entry;charset=utf-8
559
+ Location:
560
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(5)
561
+ Server:
562
+ - Microsoft-IIS/7.5
563
+ Set-Cookie:
564
+ - ASP.NET_SessionId=ru5kvbfyfstczp4mmnejsqbw; path=/; HttpOnly
565
+ X-Content-Type-Options:
566
+ - nosniff
567
+ Dataserviceversion:
568
+ - 1.0;
569
+ X-Aspnet-Version:
570
+ - 4.0.30319
571
+ X-Powered-By:
572
+ - ASP.NET
573
+ Date:
574
+ - Tue, 07 Aug 2012 21:21:40 GMT
575
+ body:
576
+ encoding: US-ASCII
577
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
578
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
579
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
580
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(5)</id><category
581
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
582
+ /><link rel="edit" title="Product" href="Products(5)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
583
+ type="application/atom+xml;type=entry" title="Category" href="Products(5)/Category"
584
+ /><title /><updated>2012-08-07T21:21:40Z</updated><author><name /></author><content
585
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">5</d:Id><d:Name>Product
586
+ 5</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
587
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">5</d:CategoryId><d:AuditFields
588
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:40.84375Z</d:CreateDate><d:ModifiedDate
589
+ m:type="Edm.DateTime">2012-08-07T21:21:40.84375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
590
+ http_version: !!null
591
+ recorded_at: Tue, 07 Aug 2012 21:21:41 GMT
592
+ - request:
593
+ method: get
594
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$top=3
595
+ body:
596
+ encoding: US-ASCII
597
+ string: ''
598
+ headers:
599
+ Accept:
600
+ - ! '*/*; q=0.5, application/xml'
601
+ Accept-Encoding:
602
+ - gzip, deflate
603
+ User-Agent:
604
+ - Ruby
605
+ response:
606
+ status:
607
+ code: 200
608
+ message: OK
609
+ headers:
610
+ Cache-Control:
611
+ - no-cache
612
+ Content-Length:
613
+ - '3778'
614
+ Content-Type:
615
+ - application/atom+xml;type=feed;charset=utf-8
616
+ Server:
617
+ - Microsoft-IIS/7.5
618
+ Set-Cookie:
619
+ - ASP.NET_SessionId=opit2hkc1ynnepclpbq4wtbd; path=/; HttpOnly
620
+ X-Content-Type-Options:
621
+ - nosniff
622
+ Dataserviceversion:
623
+ - 1.0;
624
+ X-Aspnet-Version:
625
+ - 4.0.30319
626
+ X-Powered-By:
627
+ - ASP.NET
628
+ Date:
629
+ - Tue, 07 Aug 2012 21:21:40 GMT
630
+ body:
631
+ encoding: US-ASCII
632
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
633
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
634
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
635
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
636
+ type="text">Products</title><updated>2012-08-07T21:21:40Z</updated><link rel="self"
637
+ title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
638
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
639
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
640
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
641
+ /><title /><updated>2012-08-07T21:21:40Z</updated><author><name /></author><content
642
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
643
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
644
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
645
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:39.64</d:CreateDate><d:ModifiedDate
646
+ m:type="Edm.DateTime">2012-08-07T21:21:39.64</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
647
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
648
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
649
+ type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
650
+ /><title /><updated>2012-08-07T21:21:40Z</updated><author><name /></author><content
651
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
652
+ 2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
653
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
654
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:39.953</d:CreateDate><d:ModifiedDate
655
+ m:type="Edm.DateTime">2012-08-07T21:21:39.953</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
656
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
657
+ /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
658
+ type="application/atom+xml;type=entry" title="Category" href="Products(3)/Category"
659
+ /><title /><updated>2012-08-07T21:21:40Z</updated><author><name /></author><content
660
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">3</d:Id><d:Name>Product
661
+ 3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
662
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">3</d:CategoryId><d:AuditFields
663
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:40.217</d:CreateDate><d:ModifiedDate
664
+ m:type="Edm.DateTime">2012-08-07T21:21:40.217</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
665
+ http_version: !!null
666
+ recorded_at: Tue, 07 Aug 2012 21:21:41 GMT
667
+ - request:
668
+ method: post
669
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
670
+ body:
671
+ encoding: ASCII-8BIT
672
+ string: ! '{"Name":"Product 1","Description":"Test Widget","Price":"25.00","Category":{"Name":"Category
673
+ 0046","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
674
+ headers:
675
+ Accept:
676
+ - ! '*/*; q=0.5, application/xml'
677
+ Accept-Encoding:
678
+ - gzip, deflate
679
+ Content-Type:
680
+ - application/json
681
+ Content-Length:
682
+ - '180'
683
+ User-Agent:
684
+ - Ruby
685
+ response:
686
+ status:
687
+ code: 201
688
+ message: Created
689
+ headers:
690
+ Cache-Control:
691
+ - no-cache
692
+ Content-Length:
693
+ - '1434'
694
+ Content-Type:
695
+ - application/atom+xml;type=entry;charset=utf-8
696
+ Location:
697
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
698
+ Server:
699
+ - Microsoft-IIS/7.5
700
+ Set-Cookie:
701
+ - ASP.NET_SessionId=trtcrq5ihn5gle5atk0l0pzx; path=/; HttpOnly
702
+ X-Content-Type-Options:
703
+ - nosniff
704
+ Dataserviceversion:
705
+ - 1.0;
706
+ X-Aspnet-Version:
707
+ - 4.0.30319
708
+ X-Powered-By:
709
+ - ASP.NET
710
+ Date:
711
+ - Tue, 07 Aug 2012 21:21:40 GMT
712
+ body:
713
+ encoding: US-ASCII
714
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
715
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
716
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
717
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
718
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
719
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
720
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
721
+ /><title /><updated>2012-08-07T21:21:41Z</updated><author><name /></author><content
722
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
723
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
724
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
725
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:41.40625Z</d:CreateDate><d:ModifiedDate
726
+ m:type="Edm.DateTime">2012-08-07T21:21:41.40625Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
727
+ http_version: !!null
728
+ recorded_at: Tue, 07 Aug 2012 21:21:41 GMT
729
+ - request:
730
+ method: post
731
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
732
+ body:
733
+ encoding: ASCII-8BIT
734
+ string: ! '{"Name":"Product 2","Description":"Test Widget","Price":"100.00","Category":{"Name":"Category
735
+ 0047","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
736
+ headers:
737
+ Accept:
738
+ - ! '*/*; q=0.5, application/xml'
739
+ Accept-Encoding:
740
+ - gzip, deflate
741
+ Content-Type:
742
+ - application/json
743
+ Content-Length:
744
+ - '181'
745
+ User-Agent:
746
+ - Ruby
747
+ response:
748
+ status:
749
+ code: 201
750
+ message: Created
751
+ headers:
752
+ Cache-Control:
753
+ - no-cache
754
+ Content-Length:
755
+ - '1437'
756
+ Content-Type:
757
+ - application/atom+xml;type=entry;charset=utf-8
758
+ Location:
759
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(2)
760
+ Server:
761
+ - Microsoft-IIS/7.5
762
+ Set-Cookie:
763
+ - ASP.NET_SessionId=2o00t4tg3nzaja544qinh2h5; path=/; HttpOnly
764
+ X-Content-Type-Options:
765
+ - nosniff
766
+ Dataserviceversion:
767
+ - 1.0;
768
+ X-Aspnet-Version:
769
+ - 4.0.30319
770
+ X-Powered-By:
771
+ - ASP.NET
772
+ Date:
773
+ - Tue, 07 Aug 2012 21:21:40 GMT
774
+ body:
775
+ encoding: US-ASCII
776
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
777
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
778
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
779
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
780
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
781
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
782
+ type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
783
+ /><title /><updated>2012-08-07T21:21:41Z</updated><author><name /></author><content
784
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
785
+ 2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">100.00</d:Price><d:DiscontinuedDate
786
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
787
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:41.703125Z</d:CreateDate><d:ModifiedDate
788
+ m:type="Edm.DateTime">2012-08-07T21:21:41.703125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
789
+ http_version: !!null
790
+ recorded_at: Tue, 07 Aug 2012 21:21:41 GMT
791
+ - request:
792
+ method: post
793
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
794
+ body:
795
+ encoding: ASCII-8BIT
796
+ string: ! '{"Name":"Product 3","Description":"Test Widget","Price":"100.00","Category":{"Name":"Category
797
+ 0048","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
798
+ headers:
799
+ Accept:
800
+ - ! '*/*; q=0.5, application/xml'
801
+ Accept-Encoding:
802
+ - gzip, deflate
803
+ Content-Type:
804
+ - application/json
805
+ Content-Length:
806
+ - '181'
807
+ User-Agent:
808
+ - Ruby
809
+ response:
810
+ status:
811
+ code: 201
812
+ message: Created
813
+ headers:
814
+ Cache-Control:
815
+ - no-cache
816
+ Content-Length:
817
+ - '1437'
818
+ Content-Type:
819
+ - application/atom+xml;type=entry;charset=utf-8
820
+ Location:
821
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(3)
822
+ Server:
823
+ - Microsoft-IIS/7.5
824
+ Set-Cookie:
825
+ - ASP.NET_SessionId=q4optj20g1b1u2es3sjbtgjn; path=/; HttpOnly
826
+ X-Content-Type-Options:
827
+ - nosniff
828
+ Dataserviceversion:
829
+ - 1.0;
830
+ X-Aspnet-Version:
831
+ - 4.0.30319
832
+ X-Powered-By:
833
+ - ASP.NET
834
+ Date:
835
+ - Tue, 07 Aug 2012 21:21:42 GMT
836
+ body:
837
+ encoding: US-ASCII
838
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
839
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
840
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
841
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
842
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
843
+ /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
844
+ type="application/atom+xml;type=entry" title="Category" href="Products(3)/Category"
845
+ /><title /><updated>2012-08-07T21:21:42Z</updated><author><name /></author><content
846
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">3</d:Id><d:Name>Product
847
+ 3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">100.00</d:Price><d:DiscontinuedDate
848
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">3</d:CategoryId><d:AuditFields
849
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:41.984375Z</d:CreateDate><d:ModifiedDate
850
+ m:type="Edm.DateTime">2012-08-07T21:21:41.984375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
851
+ http_version: !!null
852
+ recorded_at: Tue, 07 Aug 2012 21:21:42 GMT
853
+ - request:
854
+ method: post
855
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
856
+ body:
857
+ encoding: ASCII-8BIT
858
+ string: ! '{"Name":"Product 4","Description":"Test Widget","Price":"100.00","Category":{"Name":"Category
859
+ 0049","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
860
+ headers:
861
+ Accept:
862
+ - ! '*/*; q=0.5, application/xml'
863
+ Accept-Encoding:
864
+ - gzip, deflate
865
+ Content-Type:
866
+ - application/json
867
+ Content-Length:
868
+ - '181'
869
+ User-Agent:
870
+ - Ruby
871
+ response:
872
+ status:
873
+ code: 201
874
+ message: Created
875
+ headers:
876
+ Cache-Control:
877
+ - no-cache
878
+ Content-Length:
879
+ - '1437'
880
+ Content-Type:
881
+ - application/atom+xml;type=entry;charset=utf-8
882
+ Location:
883
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(4)
884
+ Server:
885
+ - Microsoft-IIS/7.5
886
+ Set-Cookie:
887
+ - ASP.NET_SessionId=42aysq0kqfs0rk4q0w425okk; path=/; HttpOnly
888
+ X-Content-Type-Options:
889
+ - nosniff
890
+ Dataserviceversion:
891
+ - 1.0;
892
+ X-Aspnet-Version:
893
+ - 4.0.30319
894
+ X-Powered-By:
895
+ - ASP.NET
896
+ Date:
897
+ - Tue, 07 Aug 2012 21:21:42 GMT
898
+ body:
899
+ encoding: US-ASCII
900
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
901
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
902
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
903
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
904
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
905
+ /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
906
+ type="application/atom+xml;type=entry" title="Category" href="Products(4)/Category"
907
+ /><title /><updated>2012-08-07T21:21:42Z</updated><author><name /></author><content
908
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">4</d:Id><d:Name>Product
909
+ 4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">100.00</d:Price><d:DiscontinuedDate
910
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">4</d:CategoryId><d:AuditFields
911
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:42.234375Z</d:CreateDate><d:ModifiedDate
912
+ m:type="Edm.DateTime">2012-08-07T21:21:42.234375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
913
+ http_version: !!null
914
+ recorded_at: Tue, 07 Aug 2012 21:21:42 GMT
915
+ - request:
916
+ method: post
917
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
918
+ body:
919
+ encoding: ASCII-8BIT
920
+ string: ! '{"Name":"Product 5","Description":"Test Widget","Price":"75.50","Category":{"Name":"Category
921
+ 0050","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
922
+ headers:
923
+ Accept:
924
+ - ! '*/*; q=0.5, application/xml'
925
+ Accept-Encoding:
926
+ - gzip, deflate
927
+ Content-Type:
928
+ - application/json
929
+ Content-Length:
930
+ - '180'
931
+ User-Agent:
932
+ - Ruby
933
+ response:
934
+ status:
935
+ code: 201
936
+ message: Created
937
+ headers:
938
+ Cache-Control:
939
+ - no-cache
940
+ Content-Length:
941
+ - '1436'
942
+ Content-Type:
943
+ - application/atom+xml;type=entry;charset=utf-8
944
+ Location:
945
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(5)
946
+ Server:
947
+ - Microsoft-IIS/7.5
948
+ Set-Cookie:
949
+ - ASP.NET_SessionId=33jornj3vesrqoa2tolzbmny; path=/; HttpOnly
950
+ X-Content-Type-Options:
951
+ - nosniff
952
+ Dataserviceversion:
953
+ - 1.0;
954
+ X-Aspnet-Version:
955
+ - 4.0.30319
956
+ X-Powered-By:
957
+ - ASP.NET
958
+ Date:
959
+ - Tue, 07 Aug 2012 21:21:42 GMT
960
+ body:
961
+ encoding: US-ASCII
962
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
963
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
964
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
965
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(5)</id><category
966
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
967
+ /><link rel="edit" title="Product" href="Products(5)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
968
+ type="application/atom+xml;type=entry" title="Category" href="Products(5)/Category"
969
+ /><title /><updated>2012-08-07T21:21:42Z</updated><author><name /></author><content
970
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">5</d:Id><d:Name>Product
971
+ 5</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
972
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">5</d:CategoryId><d:AuditFields
973
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:42.484375Z</d:CreateDate><d:ModifiedDate
974
+ m:type="Edm.DateTime">2012-08-07T21:21:42.484375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
975
+ http_version: !!null
976
+ recorded_at: Tue, 07 Aug 2012 21:21:42 GMT
977
+ - request:
978
+ method: post
979
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
980
+ body:
981
+ encoding: ASCII-8BIT
982
+ string: ! '{"Name":"Product 6","Description":"Test Widget","Price":"75.50","Category":{"Name":"Category
983
+ 0051","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
984
+ headers:
985
+ Accept:
986
+ - ! '*/*; q=0.5, application/xml'
987
+ Accept-Encoding:
988
+ - gzip, deflate
989
+ Content-Type:
990
+ - application/json
991
+ Content-Length:
992
+ - '180'
993
+ User-Agent:
994
+ - Ruby
995
+ response:
996
+ status:
997
+ code: 201
998
+ message: Created
999
+ headers:
1000
+ Cache-Control:
1001
+ - no-cache
1002
+ Content-Length:
1003
+ - '1434'
1004
+ Content-Type:
1005
+ - application/atom+xml;type=entry;charset=utf-8
1006
+ Location:
1007
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(6)
1008
+ Server:
1009
+ - Microsoft-IIS/7.5
1010
+ Set-Cookie:
1011
+ - ASP.NET_SessionId=c0vzp3milehfbuv3c34tzuaq; path=/; HttpOnly
1012
+ X-Content-Type-Options:
1013
+ - nosniff
1014
+ Dataserviceversion:
1015
+ - 1.0;
1016
+ X-Aspnet-Version:
1017
+ - 4.0.30319
1018
+ X-Powered-By:
1019
+ - ASP.NET
1020
+ Date:
1021
+ - Tue, 07 Aug 2012 21:21:42 GMT
1022
+ body:
1023
+ encoding: US-ASCII
1024
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1025
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1026
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1027
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(6)</id><category
1028
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1029
+ /><link rel="edit" title="Product" href="Products(6)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
1030
+ type="application/atom+xml;type=entry" title="Category" href="Products(6)/Category"
1031
+ /><title /><updated>2012-08-07T21:21:42Z</updated><author><name /></author><content
1032
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">6</d:Id><d:Name>Product
1033
+ 6</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
1034
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">6</d:CategoryId><d:AuditFields
1035
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:42.84375Z</d:CreateDate><d:ModifiedDate
1036
+ m:type="Edm.DateTime">2012-08-07T21:21:42.84375Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
1037
+ http_version: !!null
1038
+ recorded_at: Tue, 07 Aug 2012 21:21:43 GMT
1039
+ - request:
1040
+ method: get
1041
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$skip=2&$top=2
1042
+ body:
1043
+ encoding: US-ASCII
1044
+ string: ''
1045
+ headers:
1046
+ Accept:
1047
+ - ! '*/*; q=0.5, application/xml'
1048
+ Accept-Encoding:
1049
+ - gzip, deflate
1050
+ User-Agent:
1051
+ - Ruby
1052
+ response:
1053
+ status:
1054
+ code: 200
1055
+ message: OK
1056
+ headers:
1057
+ Cache-Control:
1058
+ - no-cache
1059
+ Content-Length:
1060
+ - '2708'
1061
+ Content-Type:
1062
+ - application/atom+xml;type=feed;charset=utf-8
1063
+ Server:
1064
+ - Microsoft-IIS/7.5
1065
+ Set-Cookie:
1066
+ - ASP.NET_SessionId=bmdwkil0odrzaga3neowudnv; path=/; HttpOnly
1067
+ X-Content-Type-Options:
1068
+ - nosniff
1069
+ Dataserviceversion:
1070
+ - 1.0;
1071
+ X-Aspnet-Version:
1072
+ - 4.0.30319
1073
+ X-Powered-By:
1074
+ - ASP.NET
1075
+ Date:
1076
+ - Tue, 07 Aug 2012 21:21:42 GMT
1077
+ body:
1078
+ encoding: US-ASCII
1079
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1080
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1081
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1082
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
1083
+ type="text">Products</title><updated>2012-08-07T21:21:42Z</updated><link rel="self"
1084
+ title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
1085
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1086
+ /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
1087
+ type="application/atom+xml;type=entry" title="Category" href="Products(3)/Category"
1088
+ /><title /><updated>2012-08-07T21:21:42Z</updated><author><name /></author><content
1089
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">3</d:Id><d:Name>Product
1090
+ 3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">100.00</d:Price><d:DiscontinuedDate
1091
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">3</d:CategoryId><d:AuditFields
1092
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:41.983</d:CreateDate><d:ModifiedDate
1093
+ m:type="Edm.DateTime">2012-08-07T21:21:41.983</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
1094
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1095
+ /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
1096
+ type="application/atom+xml;type=entry" title="Category" href="Products(4)/Category"
1097
+ /><title /><updated>2012-08-07T21:21:42Z</updated><author><name /></author><content
1098
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">4</d:Id><d:Name>Product
1099
+ 4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">100.00</d:Price><d:DiscontinuedDate
1100
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">4</d:CategoryId><d:AuditFields
1101
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:42.233</d:CreateDate><d:ModifiedDate
1102
+ m:type="Edm.DateTime">2012-08-07T21:21:42.233</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
1103
+ http_version: !!null
1104
+ recorded_at: Tue, 07 Aug 2012 21:21:43 GMT
1105
+ - request:
1106
+ method: post
1107
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Categories
1108
+ body:
1109
+ encoding: ASCII-8BIT
1110
+ string: ! '{"Name":"Test Category","AuditFields":{"CreatedBy":"Machinist"}}'
1111
+ headers:
1112
+ Accept:
1113
+ - ! '*/*; q=0.5, application/xml'
1114
+ Accept-Encoding:
1115
+ - gzip, deflate
1116
+ Content-Type:
1117
+ - application/json
1118
+ Content-Length:
1119
+ - '64'
1120
+ User-Agent:
1121
+ - Ruby
1122
+ response:
1123
+ status:
1124
+ code: 201
1125
+ message: Created
1126
+ headers:
1127
+ Cache-Control:
1128
+ - no-cache
1129
+ Content-Length:
1130
+ - '1253'
1131
+ Content-Type:
1132
+ - application/atom+xml;type=entry;charset=utf-8
1133
+ Location:
1134
+ - http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)
1135
+ Server:
1136
+ - Microsoft-IIS/7.5
1137
+ Set-Cookie:
1138
+ - ASP.NET_SessionId=dzso1ageezjo4il3vekinsxg; path=/; HttpOnly
1139
+ X-Content-Type-Options:
1140
+ - nosniff
1141
+ Dataserviceversion:
1142
+ - 1.0;
1143
+ X-Aspnet-Version:
1144
+ - 4.0.30319
1145
+ X-Powered-By:
1146
+ - ASP.NET
1147
+ Date:
1148
+ - Tue, 07 Aug 2012 21:21:43 GMT
1149
+ body:
1150
+ encoding: US-ASCII
1151
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1152
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1153
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1154
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)</id><category
1155
+ term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1156
+ /><link rel="edit" title="Category" href="Categories(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"
1157
+ type="application/atom+xml;type=feed" title="Products" href="Categories(1)/Products"
1158
+ /><title /><updated>2012-08-07T21:21:43Z</updated><author><name /></author><content
1159
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Test
1160
+ Category</d:Name><d:AuditFields m:type="RubyODataService.AuditFields"><d:CreateDate
1161
+ m:type="Edm.DateTime">2012-08-07T21:21:43.515625Z</d:CreateDate><d:ModifiedDate
1162
+ m:type="Edm.DateTime">2012-08-07T21:21:43.515625Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
1163
+ http_version: !!null
1164
+ recorded_at: Tue, 07 Aug 2012 21:21:43 GMT
1165
+ - request:
1166
+ method: get
1167
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)
1168
+ body:
1169
+ encoding: US-ASCII
1170
+ string: ''
1171
+ headers:
1172
+ Accept:
1173
+ - ! '*/*; q=0.5, application/xml'
1174
+ Accept-Encoding:
1175
+ - gzip, deflate
1176
+ User-Agent:
1177
+ - Ruby
1178
+ response:
1179
+ status:
1180
+ code: 200
1181
+ message: OK
1182
+ headers:
1183
+ Cache-Control:
1184
+ - no-cache
1185
+ Content-Length:
1186
+ - '1245'
1187
+ Content-Type:
1188
+ - application/atom+xml;type=entry;charset=utf-8
1189
+ Server:
1190
+ - Microsoft-IIS/7.5
1191
+ Set-Cookie:
1192
+ - ASP.NET_SessionId=0slwvun3jhabswjuhoxgl2cv; path=/; HttpOnly
1193
+ X-Content-Type-Options:
1194
+ - nosniff
1195
+ Dataserviceversion:
1196
+ - 1.0;
1197
+ X-Aspnet-Version:
1198
+ - 4.0.30319
1199
+ X-Powered-By:
1200
+ - ASP.NET
1201
+ Date:
1202
+ - Tue, 07 Aug 2012 21:21:43 GMT
1203
+ body:
1204
+ encoding: US-ASCII
1205
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1206
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1207
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1208
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)</id><category
1209
+ term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1210
+ /><link rel="edit" title="Category" href="Categories(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"
1211
+ type="application/atom+xml;type=feed" title="Products" href="Categories(1)/Products"
1212
+ /><title /><updated>2012-08-07T21:21:43Z</updated><author><name /></author><content
1213
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Test
1214
+ Category</d:Name><d:AuditFields m:type="RubyODataService.AuditFields"><d:CreateDate
1215
+ m:type="Edm.DateTime">2012-08-07T21:21:43.517</d:CreateDate><d:ModifiedDate
1216
+ m:type="Edm.DateTime">2012-08-07T21:21:43.517</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
1217
+ http_version: !!null
1218
+ recorded_at: Tue, 07 Aug 2012 21:21:43 GMT
1219
+ - request:
1220
+ method: post
1221
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
1222
+ body:
1223
+ encoding: ASCII-8BIT
1224
+ string: ! '{"Name":"Product 1","Description":"Test Widget","Price":"50.00","Category":{"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)"}},"AuditFields":{"CreatedBy":"Machinist"}}'
1225
+ headers:
1226
+ Accept:
1227
+ - ! '*/*; q=0.5, application/xml'
1228
+ Accept-Encoding:
1229
+ - gzip, deflate
1230
+ Content-Type:
1231
+ - application/json
1232
+ Content-Length:
1233
+ - '202'
1234
+ User-Agent:
1235
+ - Ruby
1236
+ response:
1237
+ status:
1238
+ code: 201
1239
+ message: Created
1240
+ headers:
1241
+ Cache-Control:
1242
+ - no-cache
1243
+ Content-Length:
1244
+ - '1430'
1245
+ Content-Type:
1246
+ - application/atom+xml;type=entry;charset=utf-8
1247
+ Location:
1248
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
1249
+ Server:
1250
+ - Microsoft-IIS/7.5
1251
+ Set-Cookie:
1252
+ - ASP.NET_SessionId=3kh1r5iiaxhuusabxckzzf1m; path=/; HttpOnly
1253
+ X-Content-Type-Options:
1254
+ - nosniff
1255
+ Dataserviceversion:
1256
+ - 1.0;
1257
+ X-Aspnet-Version:
1258
+ - 4.0.30319
1259
+ X-Powered-By:
1260
+ - ASP.NET
1261
+ Date:
1262
+ - Tue, 07 Aug 2012 21:21:43 GMT
1263
+ body:
1264
+ encoding: US-ASCII
1265
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1266
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1267
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1268
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
1269
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1270
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
1271
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
1272
+ /><title /><updated>2012-08-07T21:21:43Z</updated><author><name /></author><content
1273
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
1274
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
1275
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
1276
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:43.875Z</d:CreateDate><d:ModifiedDate
1277
+ m:type="Edm.DateTime">2012-08-07T21:21:43.875Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
1278
+ http_version: !!null
1279
+ recorded_at: Tue, 07 Aug 2012 21:21:44 GMT
1280
+ - request:
1281
+ method: get
1282
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)
1283
+ body:
1284
+ encoding: US-ASCII
1285
+ string: ''
1286
+ headers:
1287
+ Accept:
1288
+ - ! '*/*; q=0.5, application/xml'
1289
+ Accept-Encoding:
1290
+ - gzip, deflate
1291
+ User-Agent:
1292
+ - Ruby
1293
+ response:
1294
+ status:
1295
+ code: 200
1296
+ message: OK
1297
+ headers:
1298
+ Cache-Control:
1299
+ - no-cache
1300
+ Content-Length:
1301
+ - '1245'
1302
+ Content-Type:
1303
+ - application/atom+xml;type=entry;charset=utf-8
1304
+ Server:
1305
+ - Microsoft-IIS/7.5
1306
+ Set-Cookie:
1307
+ - ASP.NET_SessionId=rlsbhkawh2hetmsq0xiw5qeq; path=/; HttpOnly
1308
+ X-Content-Type-Options:
1309
+ - nosniff
1310
+ Dataserviceversion:
1311
+ - 1.0;
1312
+ X-Aspnet-Version:
1313
+ - 4.0.30319
1314
+ X-Powered-By:
1315
+ - ASP.NET
1316
+ Date:
1317
+ - Tue, 07 Aug 2012 21:21:43 GMT
1318
+ body:
1319
+ encoding: US-ASCII
1320
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1321
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1322
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1323
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)</id><category
1324
+ term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1325
+ /><link rel="edit" title="Category" href="Categories(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"
1326
+ type="application/atom+xml;type=feed" title="Products" href="Categories(1)/Products"
1327
+ /><title /><updated>2012-08-07T21:21:43Z</updated><author><name /></author><content
1328
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Test
1329
+ Category</d:Name><d:AuditFields m:type="RubyODataService.AuditFields"><d:CreateDate
1330
+ m:type="Edm.DateTime">2012-08-07T21:21:43.517</d:CreateDate><d:ModifiedDate
1331
+ m:type="Edm.DateTime">2012-08-07T21:21:43.517</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
1332
+ http_version: !!null
1333
+ recorded_at: Tue, 07 Aug 2012 21:21:44 GMT
1334
+ - request:
1335
+ method: post
1336
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
1337
+ body:
1338
+ encoding: ASCII-8BIT
1339
+ string: ! '{"Name":"Product 2","Description":"Test Widget","Price":"10.25","Category":{"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)"}},"AuditFields":{"CreatedBy":"Machinist"}}'
1340
+ headers:
1341
+ Accept:
1342
+ - ! '*/*; q=0.5, application/xml'
1343
+ Accept-Encoding:
1344
+ - gzip, deflate
1345
+ Content-Type:
1346
+ - application/json
1347
+ Content-Length:
1348
+ - '202'
1349
+ User-Agent:
1350
+ - Ruby
1351
+ response:
1352
+ status:
1353
+ code: 201
1354
+ message: Created
1355
+ headers:
1356
+ Cache-Control:
1357
+ - no-cache
1358
+ Content-Length:
1359
+ - '1436'
1360
+ Content-Type:
1361
+ - application/atom+xml;type=entry;charset=utf-8
1362
+ Location:
1363
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(2)
1364
+ Server:
1365
+ - Microsoft-IIS/7.5
1366
+ Set-Cookie:
1367
+ - ASP.NET_SessionId=uez0ppvuxekuqpavcbqdz5z3; path=/; HttpOnly
1368
+ X-Content-Type-Options:
1369
+ - nosniff
1370
+ Dataserviceversion:
1371
+ - 1.0;
1372
+ X-Aspnet-Version:
1373
+ - 4.0.30319
1374
+ X-Powered-By:
1375
+ - ASP.NET
1376
+ Date:
1377
+ - Tue, 07 Aug 2012 21:21:44 GMT
1378
+ body:
1379
+ encoding: US-ASCII
1380
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1381
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1382
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1383
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
1384
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1385
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
1386
+ type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
1387
+ /><title /><updated>2012-08-07T21:21:44Z</updated><author><name /></author><content
1388
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
1389
+ 2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
1390
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
1391
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:44.265625Z</d:CreateDate><d:ModifiedDate
1392
+ m:type="Edm.DateTime">2012-08-07T21:21:44.265625Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
1393
+ http_version: !!null
1394
+ recorded_at: Tue, 07 Aug 2012 21:21:44 GMT
1395
+ - request:
1396
+ method: get
1397
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)
1398
+ body:
1399
+ encoding: US-ASCII
1400
+ string: ''
1401
+ headers:
1402
+ Accept:
1403
+ - ! '*/*; q=0.5, application/xml'
1404
+ Accept-Encoding:
1405
+ - gzip, deflate
1406
+ User-Agent:
1407
+ - Ruby
1408
+ response:
1409
+ status:
1410
+ code: 200
1411
+ message: OK
1412
+ headers:
1413
+ Cache-Control:
1414
+ - no-cache
1415
+ Content-Length:
1416
+ - '1245'
1417
+ Content-Type:
1418
+ - application/atom+xml;type=entry;charset=utf-8
1419
+ Server:
1420
+ - Microsoft-IIS/7.5
1421
+ Set-Cookie:
1422
+ - ASP.NET_SessionId=oewvn3k1eh5t4u5voce4arsl; path=/; HttpOnly
1423
+ X-Content-Type-Options:
1424
+ - nosniff
1425
+ Dataserviceversion:
1426
+ - 1.0;
1427
+ X-Aspnet-Version:
1428
+ - 4.0.30319
1429
+ X-Powered-By:
1430
+ - ASP.NET
1431
+ Date:
1432
+ - Tue, 07 Aug 2012 21:21:44 GMT
1433
+ body:
1434
+ encoding: US-ASCII
1435
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1436
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1437
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1438
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)</id><category
1439
+ term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1440
+ /><link rel="edit" title="Category" href="Categories(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"
1441
+ type="application/atom+xml;type=feed" title="Products" href="Categories(1)/Products"
1442
+ /><title /><updated>2012-08-07T21:21:44Z</updated><author><name /></author><content
1443
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Test
1444
+ Category</d:Name><d:AuditFields m:type="RubyODataService.AuditFields"><d:CreateDate
1445
+ m:type="Edm.DateTime">2012-08-07T21:21:43.517</d:CreateDate><d:ModifiedDate
1446
+ m:type="Edm.DateTime">2012-08-07T21:21:43.517</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
1447
+ http_version: !!null
1448
+ recorded_at: Tue, 07 Aug 2012 21:21:44 GMT
1449
+ - request:
1450
+ method: post
1451
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
1452
+ body:
1453
+ encoding: ASCII-8BIT
1454
+ string: ! '{"Name":"Product 3","Description":"Test Widget","Price":"10.25","Category":{"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)"}},"AuditFields":{"CreatedBy":"Machinist"}}'
1455
+ headers:
1456
+ Accept:
1457
+ - ! '*/*; q=0.5, application/xml'
1458
+ Accept-Encoding:
1459
+ - gzip, deflate
1460
+ Content-Type:
1461
+ - application/json
1462
+ Content-Length:
1463
+ - '202'
1464
+ User-Agent:
1465
+ - Ruby
1466
+ response:
1467
+ status:
1468
+ code: 201
1469
+ message: Created
1470
+ headers:
1471
+ Cache-Control:
1472
+ - no-cache
1473
+ Content-Length:
1474
+ - '1436'
1475
+ Content-Type:
1476
+ - application/atom+xml;type=entry;charset=utf-8
1477
+ Location:
1478
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(3)
1479
+ Server:
1480
+ - Microsoft-IIS/7.5
1481
+ Set-Cookie:
1482
+ - ASP.NET_SessionId=lsemdxzdixaicubmpbghxrox; path=/; HttpOnly
1483
+ X-Content-Type-Options:
1484
+ - nosniff
1485
+ Dataserviceversion:
1486
+ - 1.0;
1487
+ X-Aspnet-Version:
1488
+ - 4.0.30319
1489
+ X-Powered-By:
1490
+ - ASP.NET
1491
+ Date:
1492
+ - Tue, 07 Aug 2012 21:21:44 GMT
1493
+ body:
1494
+ encoding: US-ASCII
1495
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1496
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1497
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1498
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
1499
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1500
+ /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
1501
+ type="application/atom+xml;type=entry" title="Category" href="Products(3)/Category"
1502
+ /><title /><updated>2012-08-07T21:21:44Z</updated><author><name /></author><content
1503
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">3</d:Id><d:Name>Product
1504
+ 3</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
1505
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
1506
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:44.671875Z</d:CreateDate><d:ModifiedDate
1507
+ m:type="Edm.DateTime">2012-08-07T21:21:44.671875Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
1508
+ http_version: !!null
1509
+ recorded_at: Tue, 07 Aug 2012 21:21:44 GMT
1510
+ - request:
1511
+ method: get
1512
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Categories(1)/$links/Products
1513
+ body:
1514
+ encoding: US-ASCII
1515
+ string: ''
1516
+ headers:
1517
+ Accept:
1518
+ - ! '*/*; q=0.5, application/xml'
1519
+ Accept-Encoding:
1520
+ - gzip, deflate
1521
+ User-Agent:
1522
+ - Ruby
1523
+ response:
1524
+ status:
1525
+ code: 200
1526
+ message: OK
1527
+ headers:
1528
+ Cache-Control:
1529
+ - no-cache
1530
+ Content-Length:
1531
+ - '325'
1532
+ Content-Type:
1533
+ - application/xml;charset=utf-8
1534
+ Server:
1535
+ - Microsoft-IIS/7.5
1536
+ Set-Cookie:
1537
+ - ASP.NET_SessionId=mxfxn1w3z4gqodj3bjf535sa; path=/; HttpOnly
1538
+ X-Content-Type-Options:
1539
+ - nosniff
1540
+ Dataserviceversion:
1541
+ - 1.0;
1542
+ X-Aspnet-Version:
1543
+ - 4.0.30319
1544
+ X-Powered-By:
1545
+ - ASP.NET
1546
+ Date:
1547
+ - Tue, 07 Aug 2012 21:21:44 GMT
1548
+ body:
1549
+ encoding: US-ASCII
1550
+ string: <?xml version="1.0" encoding="utf-8"?><links xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices"><uri>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</uri><uri>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</uri><uri>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</uri></links>
1551
+ http_version: !!null
1552
+ recorded_at: Tue, 07 Aug 2012 21:21:45 GMT
1553
+ - request:
1554
+ method: post
1555
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
1556
+ body:
1557
+ encoding: ASCII-8BIT
1558
+ string: ! '{"Name":"Widget 0054","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
1559
+ 0053","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
1560
+ headers:
1561
+ Accept:
1562
+ - ! '*/*; q=0.5, application/xml'
1563
+ Accept-Encoding:
1564
+ - gzip, deflate
1565
+ Content-Type:
1566
+ - application/json
1567
+ Content-Length:
1568
+ - '182'
1569
+ User-Agent:
1570
+ - Ruby
1571
+ response:
1572
+ status:
1573
+ code: 201
1574
+ message: Created
1575
+ headers:
1576
+ Cache-Control:
1577
+ - no-cache
1578
+ Content-Length:
1579
+ - '1438'
1580
+ Content-Type:
1581
+ - application/atom+xml;type=entry;charset=utf-8
1582
+ Location:
1583
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
1584
+ Server:
1585
+ - Microsoft-IIS/7.5
1586
+ Set-Cookie:
1587
+ - ASP.NET_SessionId=humiodqhq5ikcbfxqwt4itqm; path=/; HttpOnly
1588
+ X-Content-Type-Options:
1589
+ - nosniff
1590
+ Dataserviceversion:
1591
+ - 1.0;
1592
+ X-Aspnet-Version:
1593
+ - 4.0.30319
1594
+ X-Powered-By:
1595
+ - ASP.NET
1596
+ Date:
1597
+ - Tue, 07 Aug 2012 21:21:45 GMT
1598
+ body:
1599
+ encoding: US-ASCII
1600
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1601
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1602
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1603
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
1604
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1605
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
1606
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
1607
+ /><title /><updated>2012-08-07T21:21:45Z</updated><author><name /></author><content
1608
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
1609
+ 0054</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
1610
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
1611
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:45.265625Z</d:CreateDate><d:ModifiedDate
1612
+ m:type="Edm.DateTime">2012-08-07T21:21:45.265625Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
1613
+ http_version: !!null
1614
+ recorded_at: Tue, 07 Aug 2012 21:21:45 GMT
1615
+ - request:
1616
+ method: post
1617
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
1618
+ body:
1619
+ encoding: ASCII-8BIT
1620
+ string: ! '{"Name":"Widget 0055","Description":"Test Widget","Price":"10.25","Category":{"Name":"Category
1621
+ 0054","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
1622
+ headers:
1623
+ Accept:
1624
+ - ! '*/*; q=0.5, application/xml'
1625
+ Accept-Encoding:
1626
+ - gzip, deflate
1627
+ Content-Type:
1628
+ - application/json
1629
+ Content-Length:
1630
+ - '182'
1631
+ User-Agent:
1632
+ - Ruby
1633
+ response:
1634
+ status:
1635
+ code: 201
1636
+ message: Created
1637
+ headers:
1638
+ Cache-Control:
1639
+ - no-cache
1640
+ Content-Length:
1641
+ - '1434'
1642
+ Content-Type:
1643
+ - application/atom+xml;type=entry;charset=utf-8
1644
+ Location:
1645
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(2)
1646
+ Server:
1647
+ - Microsoft-IIS/7.5
1648
+ Set-Cookie:
1649
+ - ASP.NET_SessionId=fwlmccitlxbny02sepb115sh; path=/; HttpOnly
1650
+ X-Content-Type-Options:
1651
+ - nosniff
1652
+ Dataserviceversion:
1653
+ - 1.0;
1654
+ X-Aspnet-Version:
1655
+ - 4.0.30319
1656
+ X-Powered-By:
1657
+ - ASP.NET
1658
+ Date:
1659
+ - Tue, 07 Aug 2012 21:21:45 GMT
1660
+ body:
1661
+ encoding: US-ASCII
1662
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1663
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1664
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1665
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
1666
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1667
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
1668
+ type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
1669
+ /><title /><updated>2012-08-07T21:21:45Z</updated><author><name /></author><content
1670
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Widget
1671
+ 0055</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
1672
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
1673
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:45.5625Z</d:CreateDate><d:ModifiedDate
1674
+ m:type="Edm.DateTime">2012-08-07T21:21:45.5625Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
1675
+ http_version: !!null
1676
+ recorded_at: Tue, 07 Aug 2012 21:21:45 GMT
1677
+ - request:
1678
+ method: post
1679
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
1680
+ body:
1681
+ encoding: ASCII-8BIT
1682
+ string: ! '{"Name":"Widget 0056","Description":"Test Widget","Price":"10.25","Category":{"Name":"Category
1683
+ 0055","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
1684
+ headers:
1685
+ Accept:
1686
+ - ! '*/*; q=0.5, application/xml'
1687
+ Accept-Encoding:
1688
+ - gzip, deflate
1689
+ Content-Type:
1690
+ - application/json
1691
+ Content-Length:
1692
+ - '182'
1693
+ User-Agent:
1694
+ - Ruby
1695
+ response:
1696
+ status:
1697
+ code: 201
1698
+ message: Created
1699
+ headers:
1700
+ Cache-Control:
1701
+ - no-cache
1702
+ Content-Length:
1703
+ - '1434'
1704
+ Content-Type:
1705
+ - application/atom+xml;type=entry;charset=utf-8
1706
+ Location:
1707
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(3)
1708
+ Server:
1709
+ - Microsoft-IIS/7.5
1710
+ Set-Cookie:
1711
+ - ASP.NET_SessionId=qqnjmnbtj0wojxsfgpbx10dy; path=/; HttpOnly
1712
+ X-Content-Type-Options:
1713
+ - nosniff
1714
+ Dataserviceversion:
1715
+ - 1.0;
1716
+ X-Aspnet-Version:
1717
+ - 4.0.30319
1718
+ X-Powered-By:
1719
+ - ASP.NET
1720
+ Date:
1721
+ - Tue, 07 Aug 2012 21:21:45 GMT
1722
+ body:
1723
+ encoding: US-ASCII
1724
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1725
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1726
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1727
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(3)</id><category
1728
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1729
+ /><link rel="edit" title="Product" href="Products(3)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
1730
+ type="application/atom+xml;type=entry" title="Category" href="Products(3)/Category"
1731
+ /><title /><updated>2012-08-07T21:21:45Z</updated><author><name /></author><content
1732
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">3</d:Id><d:Name>Widget
1733
+ 0056</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
1734
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">3</d:CategoryId><d:AuditFields
1735
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:45.8125Z</d:CreateDate><d:ModifiedDate
1736
+ m:type="Edm.DateTime">2012-08-07T21:21:45.8125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
1737
+ http_version: !!null
1738
+ recorded_at: Tue, 07 Aug 2012 21:21:46 GMT
1739
+ - request:
1740
+ method: post
1741
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
1742
+ body:
1743
+ encoding: ASCII-8BIT
1744
+ string: ! '{"Name":"Widget 0057","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
1745
+ 0056","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
1746
+ headers:
1747
+ Accept:
1748
+ - ! '*/*; q=0.5, application/xml'
1749
+ Accept-Encoding:
1750
+ - gzip, deflate
1751
+ Content-Type:
1752
+ - application/json
1753
+ Content-Length:
1754
+ - '182'
1755
+ User-Agent:
1756
+ - Ruby
1757
+ response:
1758
+ status:
1759
+ code: 201
1760
+ message: Created
1761
+ headers:
1762
+ Cache-Control:
1763
+ - no-cache
1764
+ Content-Length:
1765
+ - '1438'
1766
+ Content-Type:
1767
+ - application/atom+xml;type=entry;charset=utf-8
1768
+ Location:
1769
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(4)
1770
+ Server:
1771
+ - Microsoft-IIS/7.5
1772
+ Set-Cookie:
1773
+ - ASP.NET_SessionId=yeqqqrneuptxu10uvp4o30nh; path=/; HttpOnly
1774
+ X-Content-Type-Options:
1775
+ - nosniff
1776
+ Dataserviceversion:
1777
+ - 1.0;
1778
+ X-Aspnet-Version:
1779
+ - 4.0.30319
1780
+ X-Powered-By:
1781
+ - ASP.NET
1782
+ Date:
1783
+ - Tue, 07 Aug 2012 21:21:45 GMT
1784
+ body:
1785
+ encoding: US-ASCII
1786
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1787
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1788
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1789
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
1790
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1791
+ /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
1792
+ type="application/atom+xml;type=entry" title="Category" href="Products(4)/Category"
1793
+ /><title /><updated>2012-08-07T21:21:46Z</updated><author><name /></author><content
1794
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">4</d:Id><d:Name>Widget
1795
+ 0057</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
1796
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">4</d:CategoryId><d:AuditFields
1797
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:46.078125Z</d:CreateDate><d:ModifiedDate
1798
+ m:type="Edm.DateTime">2012-08-07T21:21:46.078125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
1799
+ http_version: !!null
1800
+ recorded_at: Tue, 07 Aug 2012 21:21:46 GMT
1801
+ - request:
1802
+ method: get
1803
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products/$count
1804
+ body:
1805
+ encoding: US-ASCII
1806
+ string: ''
1807
+ headers:
1808
+ Accept:
1809
+ - ! '*/*; q=0.5, application/xml'
1810
+ Accept-Encoding:
1811
+ - gzip, deflate
1812
+ User-Agent:
1813
+ - Ruby
1814
+ response:
1815
+ status:
1816
+ code: 200
1817
+ message: OK
1818
+ headers:
1819
+ Cache-Control:
1820
+ - no-cache
1821
+ Content-Type:
1822
+ - text/plain;charset=utf-8
1823
+ Content-Encoding:
1824
+ - gzip
1825
+ Vary:
1826
+ - Accept-Encoding
1827
+ Server:
1828
+ - Microsoft-IIS/7.5
1829
+ Set-Cookie:
1830
+ - ASP.NET_SessionId=g3vr35kh4ut40ruechzw42wt; path=/; HttpOnly
1831
+ X-Content-Type-Options:
1832
+ - nosniff
1833
+ Dataserviceversion:
1834
+ - 2.0;
1835
+ X-Aspnet-Version:
1836
+ - 4.0.30319
1837
+ X-Powered-By:
1838
+ - ASP.NET
1839
+ Date:
1840
+ - Tue, 07 Aug 2012 21:21:45 GMT
1841
+ Content-Length:
1842
+ - '120'
1843
+ body:
1844
+ encoding: ASCII-8BIT
1845
+ string: !binary |-
1846
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
1847
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
1848
+ AWz2zkrayZ4hgKrIHz9+fB8/Ivb/HzgbtvMBAAAA
1849
+ http_version: !!null
1850
+ recorded_at: Tue, 07 Aug 2012 21:21:46 GMT
1851
+ - request:
1852
+ method: post
1853
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
1854
+ body:
1855
+ encoding: ASCII-8BIT
1856
+ string: ! '{"Name":"Product 1","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
1857
+ 0057","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
1858
+ headers:
1859
+ Accept:
1860
+ - ! '*/*; q=0.5, application/xml'
1861
+ Accept-Encoding:
1862
+ - gzip, deflate
1863
+ Content-Type:
1864
+ - application/json
1865
+ Content-Length:
1866
+ - '180'
1867
+ User-Agent:
1868
+ - Ruby
1869
+ response:
1870
+ status:
1871
+ code: 201
1872
+ message: Created
1873
+ headers:
1874
+ Cache-Control:
1875
+ - no-cache
1876
+ Content-Length:
1877
+ - '1434'
1878
+ Content-Type:
1879
+ - application/atom+xml;type=entry;charset=utf-8
1880
+ Location:
1881
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
1882
+ Server:
1883
+ - Microsoft-IIS/7.5
1884
+ Set-Cookie:
1885
+ - ASP.NET_SessionId=sea5oynoleek5eq3kaxtgctb; path=/; HttpOnly
1886
+ X-Content-Type-Options:
1887
+ - nosniff
1888
+ Dataserviceversion:
1889
+ - 1.0;
1890
+ X-Aspnet-Version:
1891
+ - 4.0.30319
1892
+ X-Powered-By:
1893
+ - ASP.NET
1894
+ Date:
1895
+ - Tue, 07 Aug 2012 21:21:46 GMT
1896
+ body:
1897
+ encoding: US-ASCII
1898
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1899
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1900
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1901
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
1902
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1903
+ /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
1904
+ type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
1905
+ /><title /><updated>2012-08-07T21:21:46Z</updated><author><name /></author><content
1906
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
1907
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
1908
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
1909
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:46.65625Z</d:CreateDate><d:ModifiedDate
1910
+ m:type="Edm.DateTime">2012-08-07T21:21:46.65625Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
1911
+ http_version: !!null
1912
+ recorded_at: Tue, 07 Aug 2012 21:21:46 GMT
1913
+ - request:
1914
+ method: post
1915
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
1916
+ body:
1917
+ encoding: ASCII-8BIT
1918
+ string: ! '{"Name":"Product 2","Description":"Test Widget","Price":"75.50","Category":{"Name":"Category
1919
+ 0058","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
1920
+ headers:
1921
+ Accept:
1922
+ - ! '*/*; q=0.5, application/xml'
1923
+ Accept-Encoding:
1924
+ - gzip, deflate
1925
+ Content-Type:
1926
+ - application/json
1927
+ Content-Length:
1928
+ - '180'
1929
+ User-Agent:
1930
+ - Ruby
1931
+ response:
1932
+ status:
1933
+ code: 201
1934
+ message: Created
1935
+ headers:
1936
+ Cache-Control:
1937
+ - no-cache
1938
+ Content-Length:
1939
+ - '1434'
1940
+ Content-Type:
1941
+ - application/atom+xml;type=entry;charset=utf-8
1942
+ Location:
1943
+ - http://win7dev:8989/SampleService/RubyOData.svc/Products(2)
1944
+ Server:
1945
+ - Microsoft-IIS/7.5
1946
+ Set-Cookie:
1947
+ - ASP.NET_SessionId=f3z0y5224ri4y0hf52qk40hj; path=/; HttpOnly
1948
+ X-Content-Type-Options:
1949
+ - nosniff
1950
+ Dataserviceversion:
1951
+ - 1.0;
1952
+ X-Aspnet-Version:
1953
+ - 4.0.30319
1954
+ X-Powered-By:
1955
+ - ASP.NET
1956
+ Date:
1957
+ - Tue, 07 Aug 2012 21:21:46 GMT
1958
+ body:
1959
+ encoding: US-ASCII
1960
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
1961
+ xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
1962
+ xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
1963
+ xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
1964
+ term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
1965
+ /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
1966
+ type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
1967
+ /><title /><updated>2012-08-07T21:21:46Z</updated><author><name /></author><content
1968
+ type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
1969
+ 2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
1970
+ m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
1971
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:46.96875Z</d:CreateDate><d:ModifiedDate
1972
+ m:type="Edm.DateTime">2012-08-07T21:21:46.96875Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
1973
+ http_version: !!null
1974
+ recorded_at: Tue, 07 Aug 2012 21:21:47 GMT
1975
+ - request:
1976
+ method: get
1977
+ uri: http://win7dev:8989/SampleService/RubyOData.svc/Products/$count?$filter=Name%20eq%20'Product%202'
1978
+ body:
1979
+ encoding: US-ASCII
1980
+ string: ''
1981
+ headers:
1982
+ Accept:
1983
+ - ! '*/*; q=0.5, application/xml'
1984
+ Accept-Encoding:
1985
+ - gzip, deflate
1986
+ User-Agent:
1987
+ - Ruby
1988
+ response:
1989
+ status:
1990
+ code: 200
1991
+ message: OK
1992
+ headers:
1993
+ Cache-Control:
1994
+ - no-cache
1995
+ Content-Type:
1996
+ - text/plain;charset=utf-8
1997
+ Content-Encoding:
1998
+ - gzip
1999
+ Vary:
2000
+ - Accept-Encoding
2001
+ Server:
2002
+ - Microsoft-IIS/7.5
2003
+ Set-Cookie:
2004
+ - ASP.NET_SessionId=abq1dyldfwyolumls5udn4y0; path=/; HttpOnly
2005
+ X-Content-Type-Options:
2006
+ - nosniff
2007
+ Dataserviceversion:
2008
+ - 2.0;
2009
+ X-Aspnet-Version:
2010
+ - 4.0.30319
2011
+ X-Powered-By:
2012
+ - ASP.NET
2013
+ Date:
2014
+ - Tue, 07 Aug 2012 21:21:46 GMT
2015
+ Content-Length:
2016
+ - '120'
2017
+ body:
2018
+ encoding: ASCII-8BIT
2019
+ string: !binary |-
2020
+ H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3m
2021
+ kuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZk
2022
+ AWz2zkrayZ4hgKrIHz9+fB8/Inb/H7fv3IMBAAAA
2023
+ http_version: !!null
2024
+ recorded_at: Tue, 07 Aug 2012 21:21:47 GMT
2025
+ recorded_with: VCR 2.2.4