/ / SoapClient :: SoapClient (): Ungültige Parameter - PHP, Soap-Client

SoapClient :: SoapClient (): Ungültige Parameter - php, soap-client

Ich möchte mit diesen Codes Seifenanrufe tätigen:

      $fields = array(
"Token_param" => array(
"AMOUNT" => $this->getEncryptedAmount(),
"CRN" => $this->getEncryptedTrancactionId(),
"MID" => $this->getEncryptedMerchantId(),
"REFERALADRESS" => $this->getEncryptedCallbackUrl(),
"SIGNATURE" => $this->createSignature(),
"TID" => $this->getEncryptedTerminalId()
)
);

try {
$ops = array ("soap" => array(
"attempts" => 2 // Attempts if soap connection is fail
) );
$soap = new SoapClient($this->serverUrl,$ops, array("stream_context" => stream_context_create(
array(
"ssl" => array(
"verify_peer"       => false,
"verify_peer_name"  => false,
)
)
)));
$response = $soap->reservation($fields);

} catch(SoapFault $e) {
$this->transactionFailed();
$this->newLog("SoapFault", $e->getMessage());
throw $e;
}

Aber ich bekomme: SoapClient :: SoapClient (): Ungültige Parameter

Ich denke, ich habe ein Problem mit den zweiten Argumenten von Soap Client.

Antworten:

0 für die Antwort № 1

Der beste Weg, um die richtige Anfrage zu erstellen, ist die Verwendung einer WSDL zu php sdk, die Sie bei der Erstellung der Anfrage unterstützt. Außerdem hilft es Ihnen, mit der Antwort umzugehen.

Sie sollten einen Blick auf die PackageGenerator Projekt.