Conditions | 1 |
Paths | 1 |
Total Lines | 27 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | protected function execute(InputInterface $input, OutputInterface $output) |
||
18 | { |
||
19 | $this->output = $output; |
||
20 | $this->soapClient = new SoapClient('http://localhost/wsdl-creator/examples/document_literal_wrapped/SimpleExampleSoapServer.php?wsdl', array( |
||
21 | 'trace' => true, 'cache_wsdl' => WSDL_CACHE_NONE |
||
22 | )); |
||
23 | |||
24 | $this->serviceInfo('Client Simple - document/literal wrapped'); |
||
25 | |||
26 | $this->renderMethodsTable(); |
||
27 | |||
28 | $params = new stdClass(); |
||
29 | $params->name = 'john'; |
||
30 | $params->age = 5; |
||
31 | $response = $this->soapClient->getNameWithAge($params); |
||
32 | $this->method('getNameWithAge', array($params), $response); |
||
33 | |||
34 | $params = new stdClass(); |
||
35 | $params->names = array('john', 'billy', 'peter'); |
||
36 | $response = $this->soapClient->getNameForUsers($params); |
||
37 | $this->method('getNameForUser', array($params), $response); |
||
38 | |||
39 | $params = new stdClass(); |
||
40 | $params->max = 5; |
||
41 | $response = $this->soapClient->countTo($params); |
||
42 | $this->method('countTo', array($params), $response); |
||
43 | } |
||
44 | } |