Initial commit

This commit is contained in:
2026-09-03 11:24:19 +02:00
commit 6ed3153f36
1897 changed files with 538007 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
<?php
require_once("../func.php");
require_once("../dbaccess.php");
$polacz = mysql_connect($db_host, $db_user, $db_user_pass) or die ('cannot connect to db');
mysql_select_db($db_name);
mysql_query("SET NAMES utf8");
mysql_query("SET CHARACTER_SET utf8_general_ci");
require_once('class.soap.php');
require_once('class.complextypes.php');
// Initialize the PhpWsdl class
require_once('lib/class.phpwsdl.php');
$soap=PhpWsdl::CreateInstance(
null, // PhpWsdl will determine a good namespace
null, // Change this to your SOAP endpoint URI (or keep it NULL and PhpWsdl will determine it)
'./cache', // Change this to a folder with write access
Array( // All files with WSDL definitions in comments
'class.soap.php',
'class.complextypes.php'
),
null, // The name of the class that serves the webservice will be determined by PhpWsdl
null, // This demo contains all method definitions in comments
null, // This demo contains all complex types in comments
false, // Don't send WSDL right now
false); // Don't start the SOAP server right now
ini_set('soap.wsdl_cache_enabled',1); // Disable caching in PHP
PhpWsdl::$CacheTime=86400; // Disable caching in PhpWsdl
// Run the SOAP server
if($soap->IsWsdlRequested()) // WSDL requested by the client?
$soap->Optimize=false; // Don't optimize WSDL to send it human readable to the browser
$soap->ParseDocs=false; // Uncomment this line to disable the whole documentation features
$soap->SoapServerOptions = ['soap_version' => SOAP_1_2]; // Setting proper soap_server version
//$soap->IncludeDocs=false; // Uncomment this line to disable writing the documentation in WSDL XML
//$wsdl=$soap->CreateWsdl(); // This would save the WSDL XML string in $wsdl
//$php=$soap->OutputPhp(false,false); // This would save a PHP SOAP client as PHP source code string in $php
//$html=$soap->OutputHtml(false,false); // This would save the HTML documentation string in $html
$soap->RunServer(); // Finally, run the server
mysql_close($polacz);