- var_dump: documentation ( source)
- stream_context_create: documentation ( source)
<?php
$aHTTP['http']['header'] = "User-Agent: PHP-SOAP/5.5.11\r\n";
$aHTTP['http']['header'].= "username: 20127765279MODDATOS\r\n"."password: moddatos\r\n";
$context = stream_context_create($aHTTP);
$client=new SoapClient("https://www.sunat.gob.pe:443/ol-ti-itcpgem-beta/billService",
array('trace' => 1,"stream_context" => $context));
$result = $client->__getFunctions();
var_dump($result);
?>