News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

King Foo Blog:
Using Complex Type with Zend_Soap
September 23, 2011 @ 08:37:10

New from the King Foo blog there's a tutorial showing how to use complex types in a SOAP request with Zend_Soap, a component of the Zend Framework.

To be able to use complex types with Soap requests, they need to be fully defined in the WSDL file. Zend_Soap can automate this process, if you know how to define those complex types. Let us start without it Zend_Soap's magic and compare it with a fully discovered complex request type afterwards.

In their example, they have a collection of books (objects) that they want to send over to the web service. The code for both the server and client side are included with the WSDL automagically created by the Zend_Soap_Server component. By setting docblock comments on the properties of the Book objects, the SOAP components automatically know what types they are. Their example defines these, and sets up the web service on the other side with a classmap to define where the "tags" information for each book lies.

0 comments voice your opinion now!
zendsoap soap zendframework component autodiscover docblock


blog comments powered by Disqus

Similar Posts

Enrise.com: Using MemcacheQ as Message Queue

Zend Developer Zone: Zend Framework is a BOSSie Award Winner

Brandon Savage's Blog: Making Zend_Navigation Useful

Zend Developer Zone: My Favorite Design Patterns

PHPBuilder.com: Boost PHP Site Performance with Zend Framework Data Caching


Community Events





Don't see your event here?
Let us know!


laravel application list language threedevsandamaybe project wordpress podcast api community code developer release configure interview framework series library introduction install

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework