1 | <?php |
||
11 | class ConfigurationCreator |
||
12 | { |
||
13 | const SOAP_MESSAGE_PAYLOAD = <<<EOT |
||
14 | <x:Envelope xmlns:x="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:xtk:session"> |
||
15 | <x:Header/> |
||
16 | <x:Body> |
||
17 | <urn:Logon> |
||
18 | <urn:sessiontoken/> |
||
19 | <urn:strLogin>%s</urn:strLogin> |
||
20 | <urn:strPassword>%s</urn:strPassword> |
||
21 | <urn:elemParameters/> |
||
22 | </urn:Logon> |
||
23 | </x:Body> |
||
24 | </x:Envelope> |
||
25 | EOT; |
||
26 | |||
27 | /** |
||
28 | * @var ClientInstantiator |
||
29 | */ |
||
30 | private $clientInstantiator; |
||
31 | |||
32 | /** |
||
33 | * @var array Configuration informations |
||
34 | */ |
||
35 | private $config; |
||
36 | |||
37 | /** |
||
38 | * @param ClientInstantiator $clientInstantiator |
||
39 | * @param array $config |
||
40 | */ |
||
41 | 3 | public function __construct(ClientInstantiator $clientInstantiator, $config) |
|
46 | |||
47 | /** |
||
48 | * Create a Configuration object |
||
49 | * |
||
50 | * @return Configuration |
||
51 | */ |
||
52 | 3 | public function create() |
|
90 | } |
||
91 |