| @@ 407-421 (lines=15) @@ | ||
| 404 | } |
|
| 405 | } |
|
| 406 | ||
| 407 | foreach ($operations as $operation) { |
|
| 408 | if (!empty($operation->value)) { |
|
| 409 | $fullVersion = $this->wsdlDomXpath[$wsdlIdentifier]->evaluate( |
|
| 410 | sprintf(self::XPATH_VERSION_FOR_OPERATION, $operation->value) |
|
| 411 | ); |
|
| 412 | ||
| 413 | if (!empty($fullVersion)) { |
|
| 414 | $extractedVersion = $this->extractMessageVersion($fullVersion); |
|
| 415 | $msgAndVer[$operation->value] = [ |
|
| 416 | 'version' => $extractedVersion, |
|
| 417 | 'wsdl' => $wsdlIdentifier |
|
| 418 | ]; |
|
| 419 | } |
|
| 420 | } |
|
| 421 | } |
|
| 422 | } |
|
| 423 | ||
| 424 | return $msgAndVer; |
|
| @@ 595-609 (lines=15) @@ | ||
| 592 | if ($domXpath instanceof \DOMXPath) { |
|
| 593 | $nodeList = $domXpath->query(self::XPATH_ALL_OPERATIONS); |
|
| 594 | ||
| 595 | foreach ($nodeList as $operation) { |
|
| 596 | if (!empty($operation->value)) { |
|
| 597 | $fullVersion = $domXpath->evaluate( |
|
| 598 | sprintf(self::XPATH_ALT_VERSION_FOR_OPERATION, $operation->value) |
|
| 599 | ); |
|
| 600 | ||
| 601 | if (!empty($fullVersion)) { |
|
| 602 | $extractedVersion = $this->extractMessageVersion($fullVersion); |
|
| 603 | $msgAndVer[$operation->value] = [ |
|
| 604 | 'version' => $extractedVersion, |
|
| 605 | 'wsdl' => $wsdlIdentifier |
|
| 606 | ]; |
|
| 607 | } |
|
| 608 | } |
|
| 609 | } |
|
| 610 | } |
|
| 611 | ||
| 612 | return $msgAndVer; |
|