forked from mikaelcom/WsdlToPhp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-tpl.php
36 lines (36 loc) · 896 Bytes
/
sample-tpl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Test with PackageName
* @package PackageName
* @date generation_date
*/
ini_set('memory_limit','512M');
ini_set('display_errors', true);
error_reporting(-1);
/**
* Load autoload
*/
require_once dirname(__FILE__) . '/PackageNameAutoload.php';
/**
* PackageName Informations
*/
define('PACKAGENAME_WSDL_URL','WSDL_PATH');
define('PACKAGENAME_USER_LOGIN','');
define('PACKAGENAME_USER_PASSWORD','');
/**
* Wsdl instanciation infos
*/
$wsdl = array();
$wsdl[PackageNameWsdlClass::WSDL_URL] = PACKAGENAME_WSDL_URL;
$wsdl[PackageNameWsdlClass::WSDL_CACHE_WSDL] = WSDL_CACHE_NONE;
$wsdl[PackageNameWsdlClass::WSDL_TRACE] = true;
if(PACKAGENAME_USER_LOGIN !== '')
$wsdl[PackageNameWsdlClass::WSDL_LOGIN] = PACKAGENAME_USER_LOGIN;
if(PACKAGENAME_USER_PASSWORD !== '')
$wsdl[PackageNameWsdlClass::WSDL_PASSWD] = PACKAGENAME_USER_PASSWORD;
// etc....
/**
* Examples
*/
$content;
?>