Issue with PHP SoapClient

Hi,

I’m having issues with accessing data.

Here is the code:

[php]
//turn off WSDP caching if not in a production environment
$ini = ini_set(“soap.wsdl_cache_enabled”,“0”);

//instantiate the SOAP client
$client = new SoapClient(“https://www.ajpes.si/wsPrsInfo/PrsInfo.asmx?WSDL”);

$params = array();

$params[“sInParam”][0] = ‘1732803000’;
$params[“sInParam”][1] = ‘myUsername’;
$params[“sInParam”][2] = ‘myPassword’;
$params[“sInParam”][3] = ‘PRS_MN_P’;

$response = $client -> PrsDataGet(array($params));
[/php]

And here is the result:

[php]
( ! ) Fatal error: Uncaught SoapFault exception: [soap:Server] Server was unable to process request. —> Object reference not set to an instance of an object. in C:\wamp\www\poslovanje\test\test.php:26 Stack trace: #0 C:\wamp\www\poslovanje\test\test.php(26): SoapClient->__call(‘PrsDataGet’, Array) #1 C:\wamp\www\poslovanje\test\test.php(26): SoapClient->PrsDataGet(Array) #2 {main} thrown in C:\wamp\www\poslovanje\test\test.php on line 26
[/php]

Can somebody help me out?

Sponsor our Newsletter | Privacy Policy | Terms of Service