News Feed
Jobs Feed
Sections




News Archive
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

The Show (CakePHP Podcast): Understanding FormHelper

The Bakery: New Tutorials, News and Helpers Posted

Stuart Herbert's Blog: Installing Phix on Various OSes (OSX, Debian, Ubuntu, Fedora)

Christoph Dorn's Blog: Profiling queries with Zend_Db_Profiler_Firebug

Mike Naberezny's Blog: Easier XML-RPC for PHP 5


Community Events











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


framework development phpunit code conference unittest zendframework2 application community interview series language opinion release podcast functional tool testing example introduction

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