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

Jakub Zalas' Blog: Managing object creation in PHP with the Symfony2 Dependency Injection component

Pascal Opitz's Blog: An example of how to use Pimple DI with ZF 1.x

Zend Developer Zone: Leveraging Zend Framework Components from Adobe Flash Platform Applications

IBM developerWorks: Service Component Architecture v0.1.0 (alpha) released

Pádraic Brady's Blog: OpenID library for the Zend Framework?


Community Events











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


application functional interview opinion language release podcast phpunit testing series community zendframework2 api example code development database framework composer introduction

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