使用php集成Fedex时的问题


Issue when integrating Fedex using php?

我正在尝试整合FedEx。我从以下链接得到了代码FedEx PHP code

我还发现了一个FedEx WebService WSDL

我使用代码$path_to_wsdl = "RateService_v10.wsdl";包含wsdl文件,我给出了与我的凭据相同的代码。当我运行php文件时,我得到以下错误,

Error in processing transaction.
ERROR
crs
300
Package 1 - Group package count must be at least a value of 1.
Package 1 - Group package count must be at least a value of 1.
Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/standard_php/php/RateWebServiceClient/test.php on line 80  

如何解决这个问题?我想知道运费是多少?

我给错了fedex-common的账号。php5

if($var == 'shipaccount') Return 'XXX'; //i replaced xxx with valid account number.