PHP SOAP Transfering Files
Posted
by blackmage
on Stack Overflow
See other posts from Stack Overflow
or by blackmage
Published on 2010-05-26T12:57:50Z
Indexed on
2010/05/26
13:51 UTC
Read the original article
Hit count: 537
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.
© Stack Overflow or respective owner