Fedex Web Services: ERROR 9040 - Can't pull up tracking

前端 未结 3 1800
广开言路
广开言路 2021-01-18 21:17

I\'m having issues attempting to pull up tracking info using Fedex\'s Web Services. I am using a valid tracking number and I\'m able to view the details on Fedex\'s site. Ho

3条回答
  •  孤城傲影
    2021-01-18 22:01

    Got it!

    Call the web services departement and they told me to remove 'beta' from the wsdl file. This appears to be a different address than what I found in responses to this problem before. On line 1507 of the wsdl file, make the following change:

    From:

    
    

    To

    
    

    I changed the rest of my code slightly, but that shouldn't have made the difference. To be on the safe side, here it is:

     1));
    
    $trackRequest = array(
        'WebAuthenticationDetail' => array(
            'UserCredential' => array(
                'Key'      => 'MY_KEY',
                'Password' => 'MY_PASSWORD'
            )
        ),
        'ClientDetail' => array(
            'AccountNumber' => 'MY_ACCT_#',
            'MeterNumber'   => 'MY_METER_#'
        ),
        'Version' => array(
            'ServiceId'    => 'trck',
            'Major'        => '5',
            'Intermediate' => '0',
            'Minor'        => '0'
        ),
        'PackageIdentifier' => array(
            'Type'  => 'TRACKING_NUMBER_OR_DOORTAG',
            'Value' => 'THE_TRACKING_#',
        ),
        'CustomerTrasactionId',
        'IncludeDetailedScans' => 1
    );
    $response = $client->track($trackRequest);
    var_dump($response);
    
    ?>
    

提交回复
热议问题