|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-10-20 15:30 UTC] gnarlypowers+2020-10-20 at gmail dot com
[2020-10-20 15:32 UTC] gnarlypowers+2020-10-20 at gmail dot com
-Status: Open
+Status: Closed
-PHP Version: 7.2Git-2020-10-20 (Git)
+PHP Version: 7.2.27
[2020-10-20 15:32 UTC] gnarlypowers+2020-10-20 at gmail dot com
[2020-10-20 16:09 UTC] cmb@php.net
-Status: Closed
+Status: Not a bug
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 07:00:02 2025 UTC |
Description: ------------ Working with web-services provided by another system, I am able to use SoapClient to receive values for all but one element. Using __getLastResponse and then DOMDocument::loadXml I'm able to see the element being dropped by whatever parsing SoapClient is using. The element name in my case was "W9StatusICD". Test script: --------------- // Preconditions: $url defined as a WSDL with a method $method, which returns at least one element with a numeral in the name after the first character when called with $params (a numeral as the first character would be invalid XML) try { $client = new SoapClient( $url, array( 'trace' => 1, 'exception' => 1 ) ); return $client->$method($params); catch (Exception $e) { echo '<p class="error">'$e->getMessage(),'</p>'; } } echo '<p><pre>',htmlspecialchars(print_r($client->__getLastResponse(),true)),'</pre></p>'; Expected result: ---------------- An element with a numeral in the second or later position in the name (example: W9StatusICD) should be indicated in the resulting text. Actual result: -------------- All elements except those with numerals are returned.