Jump to content

SOAP, how to use WSDL and send a request?


daydreamer

Recommended Posts

Hi,

 

I am trying to send a SOAP request but I am getting an error:

"SoapFault exception: [soap:Server] Server was unable to process request. ---> Object reference not set to an instance of an object."

 

Here is my code:

 

<?php
$wsdl="https://testweb.commidea.com/PayerAuth/PayerAuth.asmx?wsdl";
$client=new SoapClient($wsdl, array(
    "trace"      => 1,
    "exceptions" => 0));

$a['MerchantDetails']['AccountID']='22';

echo $client->EnrollmentCheck($a);

?>

 

How am I supposed to be sending the request?

 

Any help much appreciated.

Link to comment
https://forums.phpfreaks.com/topic/180287-soap-how-to-use-wsdl-and-send-a-request/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.