@@ -6,13 +6,11 @@ |
||
6 | 6 | use GoetasWebservices\SoapServices\SoapClient\Exception\ClientException; |
7 | 7 | use GoetasWebservices\SoapServices\SoapClient\Exception\FaultException; |
8 | 8 | use GoetasWebservices\SoapServices\SoapClient\Exception\ServerException; |
9 | -use GoetasWebservices\SoapServices\SoapClient\Exception\SoapException; |
|
10 | 9 | use GoetasWebservices\SoapServices\SoapClient\Message\MessageFactoryInterface; |
11 | 10 | use GoetasWebservices\SoapServices\SoapClient\Result\ResultCreator; |
12 | 11 | use GoetasWebservices\SoapServices\SoapClient\Result\ResultCreatorInterface; |
13 | 12 | use GoetasWebservices\SoapServices\SoapCommon as SoapCommon; |
14 | 13 | use GoetasWebservices\SoapServices\SoapCommon\SoapEnvelope\Parts\Fault; |
15 | -use GoetasWebservices\SoapServices\SoapEnvelope; |
|
16 | 14 | use GuzzleHttp\ClientInterface; |
17 | 15 | use GuzzleHttp\Exception\BadResponseException; |
18 | 16 | use JMS\Serializer\Serializer; |
@@ -111,6 +111,9 @@ |
||
111 | 111 | return $this->resultCreator->prepareResult($response, $soapOperation['output']); |
112 | 112 | } |
113 | 113 | |
114 | + /** |
|
115 | + * @return string |
|
116 | + */ |
|
114 | 117 | public function findFaultClass(ResponseInterface $response) |
115 | 118 | { |
116 | 119 | if (strpos($response->getHeaderLine('Content-Type'), 'application/soap+xml') === 0) { |
@@ -73,6 +73,11 @@ |
||
73 | 73 | $this->generator = $generator; |
74 | 74 | } |
75 | 75 | |
76 | + /** |
|
77 | + * @param string $wsdl |
|
78 | + * @param string $portName |
|
79 | + * @param string $serviceName |
|
80 | + */ |
|
76 | 81 | private function getSoapService($wsdl, $portName = null, $serviceName = null) |
77 | 82 | { |
78 | 83 | $generator = $this->generator ?: new PhpMetadataGenerator(); |
@@ -115,6 +115,9 @@ |
||
115 | 115 | return $operation; |
116 | 116 | } |
117 | 117 | |
118 | + /** |
|
119 | + * @param string $direction |
|
120 | + */ |
|
118 | 121 | protected function generateInOut(Operation $operation, OperationMessage $operationMessage, Param $param, $direction, Service $service) |
119 | 122 | { |
120 | 123 | $xmlNs = $operation->getOperation()->getDefinition()->getTargetNamespace(); |
@@ -80,6 +80,9 @@ |
||
80 | 80 | } |
81 | 81 | } |
82 | 82 | |
83 | + /** |
|
84 | + * @param string $namespace |
|
85 | + */ |
|
83 | 86 | private function setAttributeOnNode(\DOMElement $node, $name, $value, $namespace) |
84 | 87 | { |
85 | 88 | if (!($prefix = $node->lookupPrefix($namespace)) && !($prefix = $node->ownerDocument->lookupPrefix($namespace))) { |
@@ -337,7 +337,7 @@ |
||
337 | 337 | |
338 | 338 | /** |
339 | 339 | * @param \DOMElement $security |
340 | - * @param $dt |
|
340 | + * @param \DateTime $dt |
|
341 | 341 | * @param Security $securityData |
342 | 342 | */ |
343 | 343 | private function handleUsername(\DOMElement $security, $dt, Security $securityData) |