连接到Fedex API时出现身份验证错误

时间:2018-12-15 11:52:27

标签: php api codeigniter soap-client fedex

我正在将Fedex API与codeigniter集成在一起。我从联邦快递网站下载了测试代码和WSDL文件。集成时,出现以下错误:

// Body: {"email": "example@email.com", "pass": "passw0rd"}

Future<dynamic> post(String url, var body) async {
  var response = await http.post(url, body: body);
  final String res = response.body;
  return res;
}

// That's not the full code. I removed some lines because they are useless for this thread.
// Most of them are only some debug outputs or conditional statements

我得到这个回复:

  PHP_Common initialized

    stdClass Object
   (
[HighestSeverity] => ERROR
[Notifications] => Array
    (
        [0] => stdClass Object
            (
                [Severity] => ERROR
                [Source] => prof
                [Code] => 1000
                [Message] => Authentication Failed
            )

    )

[Version] => stdClass Object
    (
        [ServiceId] => ship
        [Major] => 23
        [Intermediate] => 0
        [Minor] => 0
    )

  )



The transaction returned an Error.
Severity: ERROR
Source: prof
Code: 1000
Message: Authentication Failed

0 个答案:

没有答案