| @@ 140-154 (lines=15) @@ | ||
| 137 | } |
|
| 138 | } |
|
| 139 | ||
| 140 | foreach ($operations as $operation) { |
|
| 141 | if (!empty($operation->value)) { |
|
| 142 | $fullVersion = self::$wsdlDomXpath[$wsdlIdentifier]->evaluate( |
|
| 143 | sprintf(self::XPATH_VERSION_FOR_OPERATION, $operation->value) |
|
| 144 | ); |
|
| 145 | ||
| 146 | if (!empty($fullVersion)) { |
|
| 147 | $extractedVersion = self::extractMessageVersion($fullVersion); |
|
| 148 | $msgAndVer[$operation->value] = [ |
|
| 149 | 'version' => $extractedVersion, |
|
| 150 | 'wsdl' => $wsdlIdentifier |
|
| 151 | ]; |
|
| 152 | } |
|
| 153 | } |
|
| 154 | } |
|
| 155 | } |
|
| 156 | ||
| 157 | return $msgAndVer; |
|
| @@ 202-216 (lines=15) @@ | ||
| 199 | if ($domXpath instanceof \DOMXPath) { |
|
| 200 | $nodeList = $domXpath->query(self::XPATH_ALL_OPERATIONS); |
|
| 201 | ||
| 202 | foreach ($nodeList as $operation) { |
|
| 203 | if (!empty($operation->value)) { |
|
| 204 | $fullVersion = $domXpath->evaluate( |
|
| 205 | sprintf(self::XPATH_ALT_VERSION_FOR_OPERATION, $operation->value) |
|
| 206 | ); |
|
| 207 | ||
| 208 | if (!empty($fullVersion)) { |
|
| 209 | $extractedVersion = self::extractMessageVersion($fullVersion); |
|
| 210 | $msgAndVer[$operation->value] = [ |
|
| 211 | 'version' => $extractedVersion, |
|
| 212 | 'wsdl' => $wsdlIdentifier |
|
| 213 | ]; |
|
| 214 | } |
|
| 215 | } |
|
| 216 | } |
|
| 217 | } |
|
| 218 | ||
| 219 | return $msgAndVer; |
|