--- http_interactions: - request: method: post uri: http://win7dev:8989/SampleService/RubyOData.svc/Products body: encoding: ASCII-8BIT string: ! '{"Name":"Widget 0017","Description":"Test Widget","Price":"","Category":{"Name":"Category 0018","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}' headers: Accept: - ! '*/*; q=0.5, application/xml' Accept-Encoding: - gzip, deflate Content-Type: - application/json Content-Length: - '177' User-Agent: - Ruby response: status: code: 400 message: Bad Request headers: Cache-Control: - private Content-Length: - '1210' Content-Type: - application/xml Server: - Microsoft-IIS/7.5 Set-Cookie: - ASP.NET_SessionId=kw41qeekwnltvdgzfqkfsptr; path=/; HttpOnly X-Content-Type-Options: - nosniff Dataserviceversion: - 1.0; X-Aspnet-Version: - 4.0.30319 X-Powered-By: - ASP.NET Date: - Tue, 07 Aug 2012 21:21:30 GMT body: encoding: US-ASCII string: ! "Error processing request stream. Error encountered in converting the value from request payload for property 'Price' to type 'Decimal', which is the property's expected type. See inner exception for more detail.Input string was not in a correct format.System.FormatException \ at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) \n at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) \n at System.Convert.ToDecimal(String value, IFormatProvider provider) \n at System.String.System.IConvertible.ToDecimal(IFormatProvider provider) \n at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) \n at System.Data.Services.Serializers.JsonDeserializer.ConvertValues(Object value, String propertyName, Type typeToBeConverted, DataServiceProviderWrapper provider)" http_version: !!null recorded_at: Tue, 07 Aug 2012 21:21:31 GMT recorded_with: VCR 2.2.4