Hey,
I'm trying to use the Shippinglogic::FedEx#ship method with the
following options:
opts = {
:shipper_name => "John Doe"
:shipper_postal_code => "10007"
:shipper_country => "US"
:recipient_name => "Jane Doe"
:recipient_postal_code => "75201"
:recipient_country => "US"
:package_weight => 24
:package_length => 12
:package_width => 12
:package_height => 12
:just_validate => false }
and I'm getting a weird error in the response:
Exception raised:
Class: <Shippinglogic::FedEx::Error>
Message: <"Schema validation failed for request., Expected element
'ServiceType@
http://fedex.com/ws/ship/v6' instead of
'PackagingType@
http://fedex.com/ws/ship/v6' here in element
RequestedShipment@
http://fedex.com/ws/ship/v6, Expected element
'ServiceType@
http://fedex.com/ws/ship/v6' instead of 'Shipper@http://
fedex.com/ws/ship/v6' here in element RequestedShipment@http://
fedex.com/ws/ship/v6, Expected element 'ServiceType@
http://fedex.com/
ws/ship/v6' instead of 'Recipient@
http://fedex.com/ws/ship/v6' here in
element RequestedShipment@
http://fedex.com/ws/ship/v6, Expected
element 'ServiceType@
http://fedex.com/ws/ship/v6' instead of
'ShippingChargesPayment@
http://fedex.com/ws/ship/v6' here in element
RequestedShipment@
http://fedex.com/ws/ship/v6, Expected element
'ServiceType@
http://fedex.com/ws/ship/v6' instead of
'LabelSpecification@
http://fedex.com/ws/ship/v6' here in element
RequestedShipment@
http://fedex.com/ws/ship/v6, Expected element
'ServiceType@
http://fedex.com/ws/ship/v6' instead of
'RateRequestTypes@
http://fedex.com/ws/ship/v6' here in element
RequestedShipment@
http://fedex.com/ws/ship/v6, Expected element
'ServiceType@
http://fedex.com/ws/ship/v6' instead of
'PackageCount@
http://fedex.com/ws/ship/v6' here in element
RequestedShipment@
http://fedex.com/ws/ship/v6, Expected element
'ServiceType@
http://fedex.com/ws/ship/v6' instead of
'RequestedPackages@
http://fedex.com/ws/ship/v6' here in element
RequestedShipment@
http://fedex.com/ws/ship/v6, Expected element
'ServiceType@
http://fedex.com/ws/ship/v6' before the end of the
content in element RequestedShipment@
http://fedex.com/ws/ship/v6">
Funny thing is that when I set "just_validate" to true then I get:
Exception raised:
Class: <Shippinglogic::FedEx::Error>
Message: <"Authentication Failed">
My test account credentials are valid as other methods (ie #rate) work
fine.
Any clues?
Thanks!
# solnic