@@ -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))) { |
@@ -34,7 +34,6 @@ |
||
| 34 | 34 | /** |
| 35 | 35 | * Gets or sets the inner value |
| 36 | 36 | * |
| 37 | - * @param string $value |
|
| 38 | 37 | * @return string |
| 39 | 38 | */ |
| 40 | 39 | public function value() |
@@ -35,7 +35,6 @@ |
||
| 35 | 35 | /** |
| 36 | 36 | * Gets or sets the inner value |
| 37 | 37 | * |
| 38 | - * @param string $value |
|
| 39 | 38 | * @return string |
| 40 | 39 | */ |
| 41 | 40 | public function value() |
@@ -35,7 +35,6 @@ |
||
| 35 | 35 | /** |
| 36 | 36 | * Gets or sets the inner value |
| 37 | 37 | * |
| 38 | - * @param string $value |
|
| 39 | 38 | * @return string |
| 40 | 39 | */ |
| 41 | 40 | public function value() |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * Gets or sets the inner value |
| 28 | 28 | * |
| 29 | - * @param mixed $value |
|
| 30 | 29 | * @return mixed |
| 31 | 30 | */ |
| 32 | 31 | public function value() |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | /** |
| 126 | 126 | * Gets as keyName |
| 127 | 127 | * |
| 128 | - * @return string[] |
|
| 128 | + * @return string |
|
| 129 | 129 | */ |
| 130 | 130 | public function getKeyName() |
| 131 | 131 | { |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | * Gets as keyValue |
| 184 | 184 | * |
| 185 | 185 | * @return |
| 186 | - * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\KeyValue[] |
|
| 186 | + string \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\KeyValue[] |
|
| 187 | 187 | */ |
| 188 | 188 | public function getKeyValue() |
| 189 | 189 | { |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | * Gets as retrievalMethod |
| 245 | 245 | * |
| 246 | 246 | * @return |
| 247 | - * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\RetrievalMethod[] |
|
| 247 | + string \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\RetrievalMethod[] |
|
| 248 | 248 | */ |
| 249 | 249 | public function getRetrievalMethod() |
| 250 | 250 | { |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | * Gets as x509Data |
| 305 | 305 | * |
| 306 | 306 | * @return |
| 307 | - * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\X509Data[] |
|
| 307 | + string \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\X509Data[] |
|
| 308 | 308 | */ |
| 309 | 309 | public function getX509Data() |
| 310 | 310 | { |
@@ -364,7 +364,7 @@ discard block |
||
| 364 | 364 | * Gets as pGPData |
| 365 | 365 | * |
| 366 | 366 | * @return |
| 367 | - * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\PGPData[] |
|
| 367 | + string \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\XmlSign\PGPData[] |
|
| 368 | 368 | */ |
| 369 | 369 | public function getPGPData() |
| 370 | 370 | { |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | /** |
| 479 | 479 | * Gets as mgmtData |
| 480 | 480 | * |
| 481 | - * @return string[] |
|
| 481 | + * @return string |
|
| 482 | 482 | */ |
| 483 | 483 | public function getMgmtData() |
| 484 | 484 | { |