ZF-10660: Unable to use "&" char in uri in Zend_Soap_Wsdl

Issue Type: Patch Created: 2010-11-08T23:23:59.000+0000 Last Updated: 2012-11-20T21:37:49.000+0000 Status: In Progress Fix version(s): Reporter: S├ębastien Krafft (skrafft) Assignee: None Tags: - Zend_Soap_Wsdl

Related issues: - ZF-5736



When trying to use Zend_Soap_Wsdl with an uri containing "&" char, I have the following bug:

{quote}Warning: DOMDocument::loadXML() [domdocument.loadxml]: EntityRef: expecting ';' in Entity, line: 2 in /Zend/Soap/Wsdl.php on line 108 Warning: DOMDocument::loadXML() [domdocument.loadxml]: EntityRef: expecting ';' in Entity, line: 4 in /Zend/Soap/Wsdl.php on line 108 Exception: Unable to create DomDocument{quote}

The problem comes from line 91 to 98 in Zend/Soap/Wsdl.php :

    <pre class="highlight">$wsdl = "<?xml version='1.0' ?>
            <definitions name='$name' targetNamespace='$uri'
                xmlns='<a rel="nofollow" href=""></a>'
                xmlns:soap='<a rel="nofollow" href=""></a>'
                xmlns:xsd='<a rel="nofollow" href=""></a>'
                xmlns:soap-enc='<a rel="nofollow" href=""></a>'
                xmlns:wsdl='<a rel="nofollow" href=""></a>'></definitions>";

The following replacement works perfectly:

<pre class="highlight">$wsdl = "<?xml version='1.0' ?>


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.