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

前端 未结 3 1797
广开言路
广开言路 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:15

    I have same problem when use xml-request. I solved the problem this way:

    $endpointurl = "https://gatewaybeta.fedex.com:443/xml"; // remove word "beta"
    $endpointurl = "https://gateway.fedex.com:443/xml";
    
    ...
    $request = stream_context_create($form);
    $browser = fopen($endpointurl , 'rb' , false , $request);
    $response = stream_get_contents($browser);
    ...
    

提交回复
热议问题