forked from WsdlToPhp/WsdlToPhp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-tpl.php
36 lines (36 loc) · 1.15 KB
/
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 for WSDL_PATH
* @package PackageName
*/
ini_set('memory_limit','512M');
ini_set('display_errors',true);
error_reporting(-1);
/**
* Load autoload
*/
require_once dirname(__FILE__) . '/PackageNameAutoload.php';
/**
* Wsdl instanciation infos. By default, nothing has to be set.
* If you wish to override the SoapClient's options, please refer to the sample below.
*
* This is an associative array as:
* - the key must be a PackageNameWsdlClass constant beginning with WSDL_
* - the value must be the corresponding key value
* Each option matches the {@link http://www.php.net/manual/en/soapclient.soapclient.php} options
*
* Here is below an example of how you can set the array:
* $wsdl = array();
* $wsdl[PackageNameWsdlClass::WSDL_URL] = WSDL_PATH;
* $wsdl[PackageNameWsdlClass::WSDL_CACHE_WSDL] = WSDL_CACHE_NONE;
* $wsdl[PackageNameWsdlClass::WSDL_TRACE] = true;
* $wsdl[PackageNameWsdlClass::WSDL_LOGIN] = 'myLogin';
* $wsdl[PackageNameWsdlClass::WSDL_PASSWD] = '**********';
* etc....
* Then instantiate the Service class as:
* - $wsdlObject = new PackageNameWsdlClass($wsdl);
*/
/**
* Examples
*/
$content;