ZF-4366: Adding missing setObject() to Zend_Soap_Server

Issue Type: Patch Created: 2008-09-24T01:57:57.000+0000 Last Updated: 2008-11-13T14:10:10.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Benjamin Eberlei (beberlei) Assignee: Benjamin Eberlei (beberlei) Tags: - Zend_Soap_Server

Related issues: Attachments: - Server.php.patch


SoapServer->setObject($object) is an undocumeneted but very useful method of the SoapServer extension. Its missing in the Zend Soap Server wrapper. The attached patch contains a new method setObject on the Zend_Soap_Server object that registers one object and injects the object into the SoapServer in _getSoap().

I have also added the patch to the ServerTest.php to add one unittest that checks functionality of setObject().

I have made some tests and found out that using both setClass and setObject does not work for SoapServer, but i haven't implemented an Exception yet that warns on usage of both of them. SoapServer just processes the first one of both calls and /dev/null's all the requests to the second. I havent throughly tested this though, so I cant give a final word on this (and left out the exception respectivly).


Posted by Benjamin Eberlei (beberlei) on 2008-09-24T01:59:36.000+0000

Patch for setObject() addition

Posted by Benjamin Eberlei (beberlei) on 2008-09-24T02:00:02.000+0000

Attached Unit-Test for setObject()

Posted by Benjamin Eberlei (beberlei) on 2008-10-06T11:07:33.000+0000

Added missing documentation part. This now shows how setObject is used inside the already existing setClass example.

Posted by Benjamin Eberlei (beberlei) on 2008-10-26T11:40:55.000+0000

Fixed in trunk

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:10.000+0000

Changing issues in preparation for the 1.7.0 release.

Have you found an issue?

See the Overview section for more details.


© 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.