News Feed
Jobs Feed
Sections




News Archive
feed this:

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


PHPRiot.com:
Zend Framework 101 Zend_Soap
August 10, 2009 @ 12:09:27

PHPRiot.com is back with another installment in their "Zend Framework 101" series with a look at the Zend_Soap component to create a SOAP service and client.

In this article I will introduce you to the Zend_Soap component of the Zend Framework. This component allows you to easily create and consume SOAP web services. We will create a simple web service with several methods using Zend_Soap_Server, and consume the service with Zend_Soap_Client.

They start with a brief look at how SOAP works before moving on to the code - creating the SOAP server code followed by the client. Their simple application takes in age information and returns back a simple, formatted string.

0 comments voice your opinion now!
zendsoap tutorial zendframework


Benjamin Eberlei's Blog:
Using Zend_Soap Server and Autodiscover in a Controller
March 23, 2009 @ 12:03:10

Benjamin Eberlei has an example posted to his blog of a use of Zend_Soap_Server and Zend_Soap_AutoDiscover in more of a Model/View/Controller setup.

The following example provides you with a working Soap server inside a Zend_Controller_Action, although I discourage the use of it and would suggest using a dedicated script outside the dispatching process to gain multitudes of performance, which webservices often require.

His setup request two routes to be added - one that points "server" to "serverActioin" and the other that points "wsdl" to "wsdlAction".

0 comments voice your opinion now!
zendsoap mvc example zendsoapserver zendsoapautodiscover



Community Events











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


symfony2 component framework opinion overview support facebook podcast unittest hhvm language release application composer install hack package security code introduction

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