I am using PHP for web services. While requesting for the customer prices page, I am getting following response.
A transaction must be started before changes can be made to the database.
My PHP code as follows
public function getPriceList($customer_number){
$url = 'Page/CustomerPrices';
try {
$response = new \stdClass();
$response->status = false;
$options = [
'soap_version' => SOAP_1_1,
'connection_timeout' => 120,
'login' => env('MICROSOFT_DYNAMICS_NAV_USERNAME', ''),
'password' => env('MICROSOFT_DYNAMICS_NAV_PASSWORD', ''),
'exceptions' => true,
];
$soapWsdl = env('MICROSOFT_DYNAMICS_NAV_URI', '').$url;
$client = new SoapClient($soapWsdl, $options);
$response->data = $client->ReadMultiple(['filter'=> [],'Start_Date' => "30-05-2018",'Cust_No'=>$customer_number,'Name'=>'Testing','Price_Comments'=>'','setSize'=>'1']);
$response->status = true;
}catch (SoapFault $e) {
$response->data = $e->getMessage();
}
return $response;
}
*This post is locked for comments
I have the same question (0)