Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion rates error

Received: by 10.220.97.140 with SMTP id l12mr680475vcn.2.1249842225415;
        Sun, 09 Aug 2009 11:23:45 -0700 (PDT)
Return-Path: <bjohn...@binarylogic.com>
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24])
        by gmr-mx.google.com with ESMTP id 19si282919vws.4.2009.08.09.11.23.45;
        Sun, 09 Aug 2009 11:23:45 -0700 (PDT)
Received-SPF: neutral (google.com: 74.125.92.24 is neither permitted nor denied by best guess record for domain of bjohn...@binarylogic.com) client-ip=74.125.92.24;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 74.125.92.24 is neither permitted nor denied by best guess record for domain of bjohn...@binarylogic.com) smtp.mail=bjohn...@binarylogic.com
Received: by qw-out-2122.google.com with SMTP id 5so1011055qwi.31
        for <shippinglogic@googlegroups.com>; Sun, 09 Aug 2009 11:23:45 -0700 (PDT)
Received: by 10.224.54.3 with SMTP id o3mr2573181qag.92.1249842224871;
        Sun, 09 Aug 2009 11:23:44 -0700 (PDT)
Return-Path: <bjohn...@binarylogic.com>
Received: from ?10.0.1.199? (c-69-136-241-53.hsd1.nj.comcast.net [69.136.241.53])
        by mx.google.com with ESMTPS id 5sm10131125qwg.55.2009.08.09.11.23.43
        (version=SSLv3 cipher=RC4-MD5);
        Sun, 09 Aug 2009 11:23:44 -0700 (PDT)
Message-Id: <4D9D40F2-E1EB-46C2-83C4-0AB7BD534064@binarylogic.com>
From: Ben Johnson <bjohn...@binarylogic.com>
To: shippinglogic@googlegroups.com
In-Reply-To: <10bed3a5-b9fe-4da5-8f9a-937a0413a48d@r36g2000vbn.googlegroups.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Apple Message framework v936)
Subject: Re: rates error
Date: Sun, 9 Aug 2009 14:23:43 -0400
References: <26d20709-9925-4fa7-9ab7-49a2837253ea@d21g2000vbm.googlegroups.com>  <B712938A-F974-4842-90FE-69EBB24A3453@binarylogic.com> <34428719-91b7-4fac-8cc0-61ae202996a1@d23g2000vbm.googlegroups.com>  <0BCB90E6-6459-4F7C-8C51-ECC8F4FE5B61@binarylogic.com> <10bed3a5-b9fe-4da5-8f9a-937a0413a48d@r36g2000vbn.googlegroups.com>
X-Mailer: Apple Mail (2.936)

Ok, this is fixed, just update the gem.



Ben Johnson
Binary Logic

W: www.binarylogic.com
E: bjohn...@binarylogic.com

On Aug 8, 2009, at 6:38 PM, Brian Pokosh wrote:

>
> I haven't looked at what you changed yet, but whatever it was fixed
> it. I'll do some more testing later.
>
> Something I noticed is when I make a change to the request - say I
> change the weight and call fedex.rate again - it returns the cached
> result. Is it assumed that I will create a new fedex object for each
> request?
>
> On Aug 8, 5:55 pm, Ben Johnson <bjohn...@binarylogic.com> wrote:
>> Your request looks good to me. I just released a new version for you.
>> Update to that version and do this:
>>
>> begin
>>         # your fedex code here
>> rescue Shippinglogic::FedEx::Error => e
>>         raise e.request.inspect
>> end
>>
>> That should show your raw request. Be sure and mask your fedex
>> credentials. But that should tell us whats going on. All of my tests
>> are passing and I'm currently rating packages in my app right now. So
>> it's probably something dumb.
>>
>> Ben Johnson
>> Binary Logic
>>
>> W:www.binarylogic.com
>> E: bjohn...@binarylogic.com
>>
>> On Aug 8, 2009, at 5:46 PM, Brian Pokosh wrote:
>>
>>
>>
>>
>>
>>> I'm still getting the error. Here's the code I'm using, it's the  
>>> same
>>> an in your example but I removed the _code:
>>
>>> rates = fedex.rate(
>>> :shipper_postal_code => "10007",
>>> :shipper_country => "US",
>>> :recipient_postal_code => "75201",
>>> :recipient_country => "US",
>>> :package_weight => 24,
>>> :package_length => 12,
>>> :package_width => 12,
>>> :package_height => 12
>>> )
>>
>>> Any ideas?
>>
>>> On Aug 8, 5:36 pm, Ben Johnson <bjohn...@binarylogic.com> wrote:
>>>> Hey Brian,
>>
>>>> Use country, not country_code.
>>
>>>> I don't do any validation on my end because that is fedex's job.  
>>>> More
>>>> importantly, I dont want to keep up with their validation changes,
>>>> etc
>>>> because they don't document that.
>>
>>>> Anyways country refers to the element they want.
>>
>>>> Ben Johnson
>>>> Binary Logic
>>
>>>> W:www.binarylogic.com
>>>> E: bjohn...@binarylogic.com
>>
>>>> On Aug 8, 2009, at 5:29 PM, Brian Pokosh wrote:
>>
>>>>> I'm getting an error when trying the fedex.rate call:
>>
>>>>> Shippinglogic::FedEx::Error: Schema validation failed for  
>>>>> request.,
>>>>> Expected element 'CountryCode@http://fedex.com/ws/rate/ 
>>>>> v6'insteadof
>>>>> 'Residential@http://fedex.com/ws/rate/v6'herein element
>>>>> Address@http://fedex.com/ws/rate/v6, and Expected element
>>>>> 'CountryCode@http://fedex.com/ws/rate/v6'beforethe end of the
>>>>> content in element Address@http://fedex.com/ws/rate/v6
>>
>>>>> I'm using the example in the code:
>>>>> rates = fedex.rate(
>>>>> :shipper_postal_code => "10007",
>>>>> :shipper_country => "US",
>>>>> :recipient_postal_code => "75201",
>>>>> :recipient_country_code => "US",
>>>>> :package_weight => 24,
>>>>> :package_length => 12,
>>>>> :package_width => 12,
>>>>> :package_height => 12
>>>>> )
>>
>>>>> It might be a good idea to save the XML request and response so  
>>>>> that
>>>>> they can be viewed later.