嗨,我从 eway 令牌支付 api 集成中收到此错误。
SoapFault 异常:[HTTP] 错误请求
当我运行以下代码时,肥皂中的函数
var_dump($client->__getFunctions());
和功能列表是
array
0 => string 'CreateCustomerResponse CreateCustomer(CreateCustomer $parameters)' (length=65)
1 => string 'UpdateCustomerResponse UpdateCustomer(UpdateCustomer $parameters)' (length=65)
2 => string 'QueryCustomerResponse QueryCustomer(QueryCustomer $parameters)' (length=62)
3 => string 'QueryCustomerByReferenceResponse QueryCustomerByReference(QueryCustomerByReference $parameters)' (length=95)
4 => string 'ProcessPaymentResponse ProcessPayment(ProcessPayment $parameters)' (length=65)
5 => string 'ProcessPaymentWithCVNResponse ProcessPaymentWithCVN(ProcessPaymentWithCVN $parameters)' (length=86)
6 => string 'ProcessPaymentWithBeagleResponse ProcessPaymentWithBeagle(ProcessPaymentWithBeagle $parameters)' (length=95)
7 => string 'QueryPaymentResponse QueryPayment(QueryPayment $parameters)' (length=59)
8 => string 'CreateCustomerResponse CreateCustomer(CreateCustomer $parameters)' (length=65)
9 => string 'UpdateCustomerResponse UpdateCustomer(UpdateCustomer $parameters)' (length=65)
10 => string 'QueryCustomerResponse QueryCustomer(QueryCustomer $parameters)' (length=62)
11 => string 'QueryCustomerByReferenceResponse QueryCustomerByReference(QueryCustomerByReference $parameters)' (length=95)
12 => string 'ProcessPaymentResponse ProcessPayment(ProcessPayment $parameters)' (length=65)
13 => string 'ProcessPaymentWithCVNResponse ProcessPaymentWithCVN(ProcessPaymentWithCVN $parameters)' (length=86)
14 => string 'ProcessPaymentWithBeagleResponse ProcessPaymentWithBeagle(ProcessPaymentWithBeagle $parameters)' (length=95)
15 => string 'QueryPaymentResponse QueryPayment(QueryPayment $parameters)' (length=59)
当我像这样调用函数时
$client->CreateCustomer($customerinfo);
然后它给我错误 SoapFault 异常:[HTTP] 错误请求。
$customerinfo 是所有数据的数组。