PHP SOAP Transfering Files
- by blackmage
Hey,
I am new to SOAP and I am trying to learn how to transfer files (.zip files) between a client and server using PHP and SOAP. Currently I have a set up that looks something like this:
enter code here
require('libraries/nusoap/nusoap.php');
$server = new nusoap_server;
$server-configureWSDL('server', 'urn:server');
$server-wsdl-schemaTargetNamespace = 'urn:server';
$server-register('sendFile',
array('value' = 'xsd:string'),
array('return' = 'xsd:string'),
'urn:server',
'urn:server#sendFile');
But I am unsure on what the return type should be if not a string? I am thinking of using a base64_encode but I am not sure how to. Any advice would be greatly appreciated.