Skip to content

Instantly share code, notes, and snippets.

@multitel
Last active December 17, 2015 02:09
Show Gist options
  • Save multitel/5533799 to your computer and use it in GitHub Desktop.
Save multitel/5533799 to your computer and use it in GitHub Desktop.
e911 ProvisionAddress SOAP function
<?php
include('/path/to/your/nusoap/nusoap.php');
$client = new nusoap_client('http://api.multitel.net/?wsdl','wsdl');
$address ='200 Central Park West';
$address2 ='';
$city ='New York';
$state ='NY';
$zip ='10024';
$number = "12127695100";
$name = "American Museum of Natural History";
$parameters=array(
array(
"UserName" => 'yourusername',
"Password" => 'yourpassword',
"UniqueId" => '',
"Address" => $address,
"Address2" => $address2,
"City" => $city,
"State" => $state,
"Zip" => $zip,
"Number" => $number,
"Callername" => $name
)
);
$Res = array();
$Res = $client->call("ProvisionAddressWs", $parameters,'urn:ProvisionAddressWs');
print_r($Res);exit;
// $return_arr = $Res['DATA'][0];
// $return = $return_arr['RETURN'];
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment