Exemplo n.º 1
0
}
// The NuSOAP adapter was developed and tested with NuSOAP version 0.9.5
//
// Note: The NuSOAP adapter won't work with the PhpWsdlProxy!
PhpWsdl::Debug('NuSOAP adapter loaded');
PhpWsdl::RegisterHook('CreateWsdlHeaderHook', 'nusoap', 'PhpWsdlNuSOAP::CreateWsdl');
PhpWsdl::RegisterHook('PrepareServerHook', 'nusoap', 'PhpWsdlNuSOAP::PrepareServer');
PhpWsdl::RegisterHook('RunServerHook', 'nusoap', 'PhpWsdlNuSOAP::RunServer');
// Disable the PhpWsdl WSDL Generator (we need to use the one from NuSOAP)
PhpWsdl::UnregisterHook('CreateWsdlHeaderHook', 'internal');
PhpWsdl::UnregisterHook('CreateWsdlTypeSchemaHook', 'internal');
PhpWsdl::UnregisterHook('CreateWsdlMessagesHook', 'internal');
PhpWsdl::UnregisterHook('CreateWsdlPortsHook', 'internal');
PhpWsdl::UnregisterHook('CreateWsdlBindingsHook', 'internal');
PhpWsdl::UnregisterHook('CreateWsdlServiceHook', 'internal');
PhpWsdl::UnregisterHook('CreateWsdlFooterHook', 'internal');
// Comment out this line to get rid of the NuSOAP information in the HTML output
PhpWsdl::RegisterHook('CreateHtmlGeneralHook', 'nusoap', 'PhpWsdlNuSOAP::CreateHtmlGeneral');
/**
 * This class will run a NuSOAP SOAP server with PhpWsdl
 * 
 * @author Andreas Müller-Saala, wan24.de
 */
class PhpWsdlNuSOAP
{
    /**
     * The current server object
     * 
     * @var nusoap_server
     */
    public static $Server = null;