Issues

ZF-7181: Namespaces and WSDL Autodiscovery - PHP 5.3

Issue Type: Improvement Created: 2009-07-02T02:58:53.000+0000 Last Updated: 2011-08-15T13:49:31.000+0000 Status: Open Fix version(s): Reporter: Stig W (swo) Assignee: Benjamin Eberlei (beberlei) Tags: - Zend_Soap_Wsdl

Related issues: Attachments:

Description

In the new relase of PHP (5.3) namespaces was introduced. When using these in conjuction with the AutoDiscover there are some problemes.

Consider this example.

<pre class="highlight">/**
* @param some\package\Product
* @return boolean
*/
function foo($obj) {
 // implementation
 returns true;
}

When the autodiscover generates the WSDL, the complex definition of Object is namespaced in the wsdl complex name and in the message part type definition, example.

<pre class="highlight">

This looks ok, but when trying to connect this to SoapUi ie. this failes because of the slashes in the namespace.

I found a workaround for this, by rewriting the type which is send down to DefaultComplexType.php. That way the namespace is seperated by . (dott) in the wsdl, but it uses the correct namespace when reflects the object, creating the complex type.

We will probably end up extending the wsdl strategy classes, implementing this solution, but it would be nice if this could be fixed in an upcomming release of the Zend framework.

Comments

Posted by Benjamin Eberlei (beberlei) on 2009-07-03T04:27:04.000+0000

very good point :-)

Posted by Sasa Stamenkovic (umpirsky) on 2011-08-15T13:49:31.000+0000

Can you share the workaround please?

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts