I have a function like this for a SOAP call for a GetSchedule REQUEST.
public function GetSchedule(array $sessionTypeIDs, array $startDate , array $endDate)
I usually pass it from my controller like this
$result1 = $bookservice->GetSchedule(array(114,115,116,127), array(2017-09-25), array(2017-10-15);
When I try to pass dates like this, it gives me a FORBIDDEN error
SoapFault Forbidden
How can I pass dates properly? I am using Laravel and I am trying to make a SOAP call. It's working fine if I don't supply anything for $startDate and $endDate, but if try to filter it by these two variables, I get a Forbidden error.
You're passing in a number, since you're not quoting the date it's doing the math (1983). Instead, you need to quote it.
$result1 = $bookservice->GetSchedule(array(114,115,116,127), array('2017-09-25'), array('2017-10-15');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.