Sales
Click for numbers
Welcome User Tools Developer Tools Prices Help Sign up Login
You are here: Home > Developer Tools > Fax Web Service > Samples > PHP- How to fax a character-based file using NuSOAP

Fax Web Service Code Sample (NuSOAP)

PHP- How to fax a character-based file, using NuSOAP

Here's a snippet that shows how to fax a character-based file, such as HTML or text.  NuSOAP is a one-file download and has no dependencies, making it simpler to install than PEAR::SOAP.

<?php

require_once('nusoap.php');
$client = new soapclient("http://ws.interfax.net/dfs.asmx?wsdl", true);
$params[] = array('Username'      => '********',
                'Password'        => '********',
                'FaxNumber'       => '+44-870-730-1444',
                'Data'            => 'My text goes here',
                'FileType'        => 'TXT'
                );

$result = $client->call("SendCharFax", $params);

echo $result["SendCharFaxResult"];

?>



About | Contact | Privacy | Terms | Partners | Login | System Status

© Interfax Inc