Req #74698 [NEW]: Add a Namespace Map Option to the SoapClient

From: Date: Sun, 04 Jun 2017 15:35:31 +0000
Subject: Req #74698 [NEW]: Add a Namespace Map Option to the SoapClient
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209384@lists.php.net to get a copy of this message
From: chad dot sikorra at gmail dot com Operating system: N/A PHP version: Irrelevant Package: SOAP related Bug Type: Feature/Change Request Bug description:Add a Namespace Map Option to the SoapClient Description: ------------ When the SoapClient generates XML for the request it also generates the namespace prefixes used in the XML (ie. ns1, ns2, ns3, etc). While this ultimately doesn't matter as far as the XML goes, it makes it unpredictable/difficult to work with requests that have many namespaces involved. It also hinders the ability to always have a predictable prefix for a specific namespace. This can be useful if you're generating a complex request with a mixture of namespaces where the SoapClient often makes things difficult to work with. I think a good feature would be to implement a namespaceMap option for the SoapClient (following the naming for classMap). Basically you would just pass an array of prefix => namespace pairs. For namespaces not in the map it could fallback to the ns1, ns2, etc strategy I guess. Unfortunately it doesn't seem like anyone really works on the Soap extension anymore, so this will probably go unanswered. If only my C skills were better, hah. -- Edit bug report at https://bugs.php.net/bug.php?id=74698&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74698&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74698&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74698&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74698&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74698&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74698&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74698&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74698&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74698&r=support Expected behavior: https://bugs.php.net/fix.php?id=74698&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74698&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74698&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74698&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74698&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74698&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74698&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74698&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74698&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74698&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74698&r=mysqlcfg

« previous php.bugs (#209384) next »