Sanju Pazhankannur

Greenhorn
+ Follow
since Nov 05, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sanju Pazhankannur

I am new to SOAP API and WSDL. I had this project to use the SOAP API and I used this code from one of the stackoverflow answers. But when I am running this, I am getting this error.


> Uncaught SoapFault exception: [HTTP] Forbidden in /home/public_html/test.php:18 Stack trace: #0 [internal function]: SoapClient->__doRequest

Here is my code:

   <?php

$wsdl_url = 'API';
$client = new SOAPClient($wsdl_url);
$params = array(
'LBID' => '1',
'YearID' => '23',
'SectorId' => '1',
'Password' => 'password'
);
$result = $client->getProjectDetails($params);
print_r($result);
   ?>


I don't know what this error is, I tried searching the forums but couldn't get any idea about this. Can anyone help?
1 week ago