hi am a c# programmer with basic knowledge on php. Currently am working on a php assignment which requires a pdf to be downloaded. i tried downloading through webservice but it does not work. Am able to get the byte array of the concerned PDF. Is it possible to convert it in to a PDF file. Please help thank you.
my php code:
<?php
require_once("nuSOAP/lib/nusoap.php");
$client = new nusoap_client('http://localhost/WS-PDF/Fill_Pdf.asmx?wsdl',true);
$soapaction = "http://tempuri.org/GetPdf";
$namespace= "http://tempuri.org/";
$client->soap_defencoding = 'UTF-8';
$params = array('test' => "PDF");
$result = $client->call('GetPdf',$params,$namespace,$soapaction);
print_r(array_values($result));
$err = $client->getError();
if ($err) {
exit();
}
?>