Bug #69668 [PATCH]: SOAP: special XML characters in namespace URIs not encoded
Edit report at https://bugs.php.net/bug.php?id=69668&edit=1
ID: 69668
Patch added by: cmb@php.net
Reported by: LastDragon at yandex dot ru
Summary: SOAP: special XML characters in namespace URIs not
encoded
Status: Verified
Type: Bug
Package: SOAP related
Operating System: win 8.1 x64
PHP Version: 5.5.25
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
The following pull request has been associated:
Patch Name: Fix #69668: SOAP special XML characters in namespace URIs not encoded
On GitHub: https://github.com/php/php-src/pull/6804
Patch: https://github.com/php/php-src/pull/6804.patch
Previous Comments:
------------------------------------------------------------------------
[2021-03-23 21:36:23] cmb@php.net
falundir is right; there is no need to use any special XML
characters in the namespace URI. On the other hand, ext/soap
shouldn't produce invalid XML.
------------------------------------------------------------------------
[2015-06-25 08:16:39] falundir at gmail dot com
Service endpoint URL (soap:address location) is not the same as service namespace. Namespaces can be
any URI (or URN) and it's just a name, and not resource locator.
Simply use something else than your service URL as your namespace, ex:
http://company.com/services/TestService/v1
------------------------------------------------------------------------
[2015-05-20 07:41:31] LastDragon at yandex dot ru
Full descrition http://pastebin.com/4WGSvA02 (sorry, I
can't post it here because this piece of shit says "Please do not SPAM our bug
system.")
------------------------------------------------------------------------
[2015-05-20 07:37:06] LastDragon at yandex dot ru
Description:
------------
If service URI contains the querystring (eg ?tmp=1&tmp2=2) then SoapClient will generate
"ns1" attribute without entity encoding ("a=a&b=b" instead of
"a=a&b=b").
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69668&edit=1
Thread (8 messages)