Question

Currently receiving this when trying to submit my XML to FedEx's servers:

    'errorCode' => '5',
'reason' => 'Schema validation failed for request.',
'details' => {
    'ValidationFailureDetail' => {
    'xmlLocation' => {
        'NumberOfPieces' => ''
    },{
        'Units' => ''
    },{
        'Value' => ''
    },
    'message' => {
        'Invalid decimal value: expected at least one digit',
        'string value \'\' is not a valid enumeration value for WeightUnits in namespace http://fedex.com/ws/ship/v10',
        'Invalid decimal value: expected at least one digit'
    }

Do you folks have any suggestions? It seems Fedex isn't receiving out 'Commodities' array but everything is being set (including the NumberOfPieces', 'Units' & ' Value').

Any suggestions are appreciated.

Was it helpful?

Solution 2

Seems the entire scheme was different, and oddly enough WeightUnits was not in the new schema that was accepted, as per FedEx, WeightUnits is taken from Weight { units:0 }

OTHER TIPS

Without seeing your XML or your schema, how am I supposed to tell you why the XML is invalid against the schema? The message is pretty clear: it says there is something called WeightUnits that should be a decimal value but is actually an empty string.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top