soap function not returning string in php soap function not returning string in php curl curl

soap function not returning string in php


You would need to set CURLOPT_RETURNTRANSFER to get the result on success.

Add this line before curl_exec

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_exec() returns TRUE on success or FALSE on failure. However, if the CURLOPT_RETURNTRANSFER option is set, it will return the result on success, FALSE on failure.