EzidebitにSOAP APIを使用して、リスト内のすべての顧客を取得しようとしています。私のための彼らのドキュメンテーションは非常に混乱しており、いくつかのものが欠けているようです。私には十分なスキルがないかもしれません。SOAP APIでカブを使用する
ドキュメントはここにある:https://www.getpayments.com/docs/#getcustomerlist
電流応答イム取得は次のとおりです。ここで
a:ActionNotSupportedThe message with Action 'run' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).
は私のコードです:(IVEは、XMLの私のキーを削除し、000000000000000に置き換え)
<?php
$soap_request ='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:px="https://px.ezidebit.com.au/">
<soapenv:Header/>
<soapenv:Body>
<px:GetCustomerList>
<px:DigitalKey>000000000000000</px:DigitalKey>
<px:CustomerStatus>ALL</px:CustomerStatus>
<px:OrderBy>EzidebitCustomerID</px:OrderBy>
<px:Order>ASC</px:Order>
<px:PageNumber>1</px:PageNumber>
</px:GetCustomerList>
</soapenv:Body>
</soapenv:Envelope>';
$header = array(
"Content-type: text/xml;charset=\"utf-8\"",
"Accept: text/xml",
"Cache-Control: no-cache",
"Pragma: no-cache",
"SOAPAction: \"run\"",
"Content-length: ".strlen($soap_request),
);
$soap_do = curl_init();
curl_setopt($soap_do, CURLOPT_URL, "https://api.ezidebit.com.au/v3-5/nonpci");
curl_setopt($soap_do, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($soap_do, CURLOPT_TIMEOUT, 10);
curl_setopt($soap_do, CURLOPT_RETURNTRANSFER, true);
curl_setopt($soap_do, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($soap_do, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($soap_do, CURLOPT_POST, true);
curl_setopt($soap_do, CURLOPT_POSTFIELDS, $soap_request);
curl_setopt($soap_do, CURLOPT_HTTPHEADER, $header);
$content = curl_exec($soap_do);
if(curl_exec($soap_do) === false) {
$err = 'Curl error: ' . curl_error($soap_do);
curl_close($soap_do);
print $err;
} else {
curl_close($soap_do);
print_r($content);
}
?>
"SOAPAction:\" run \ ""というヘッダーを参照しているエラーが表示されますが、その場所に何を持っているのかわかりません。
誰かが私を助けてくれることを願っています。
は、なぜ私が理解したことがないあなたはこのhttp://php.net/manual/en/book.soap.php – pinoyCoder
のためのPHP石鹸APIを使用してはいけませんそれは何度か試してみましたが、私の頭を包んだことはありません。 –
あなたはもっと頑張ってください。また、PHPエラーメッセージを慎重に読むことをお勧めします。 – pinoyCoder