<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>King Foo &#187; Zend Framework</title>
	<atom:link href="http://www.king-foo.be/category/zend-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.king-foo.be</link>
	<description>we build, deploy and maintain web applications</description>
	<lastBuildDate>Tue, 24 Jan 2012 22:43:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Using Complex Type with Zend_Soap</title>
		<link>http://www.king-foo.be/2011/09/using-complex-types-with-zend_soap/</link>
		<comments>http://www.king-foo.be/2011/09/using-complex-types-with-zend_soap/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 07:50:37 +0000</pubDate>
		<dc:creator>ronny</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web services]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.king-foo.be/?p=546</guid>
		<description><![CDATA[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&#8217;s magic and compare it with a fully discovered complex request type afterwards. First, let&#8217;s define your classes. Let&#8217;s assume we have a book collection, and each book can have multiple tags. Our webservice class looks like this: By using Zend_Soap and the automagically created WSDL file, the code launching our SOAP server could look like this: The WSDL (just browse to http:/localhost/soap.php?WSDL=1) does not hold any information about the Book or Tags objects: The inserted book can be of anyType. This is not really useful as you can imagine. Now, let&#8217;s spice things up. The real magic in Zend_Soap is in the autodiscovery mechanism producing the WSDL file. Zend_Soap_AutoDiscover won&#8217;t know how to use all those variables, unless you define the types with correct docblock information, like this: The type for $tags is Tag[], Tag comes from the defined class, and [] makes it an array. Note the /**, it&#8217;s necessary to use 2 asterisks for the Reflection class to identify the docblock. Now you can use the Book type in your Webservice functions. The insertBook method is annotated like this: Zend_Soap_Autodiscover has several strategies, you can read the Zend Framework Manual for more information on complex type strategies. We will use Zend_Soap_Wsdl_Strategy_ArrayOfTypeComplex, so Autodiscover can find the Tag array ...]]></description>
		<wfw:commentRss>http://www.king-foo.be/2011/09/using-complex-types-with-zend_soap/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Presentation on Building Web Services with ZF</title>
		<link>http://www.king-foo.be/2010/07/presentation-on-building-web-services/</link>
		<comments>http://www.king-foo.be/2010/07/presentation-on-building-web-services/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 12:08:58 +0000</pubDate>
		<dc:creator>jonas</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web services]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.king-foo.be/?p=66</guid>
		<description><![CDATA[Yesterday, I tried a first attempt at presenting some info on &#8216;Building Web Services with Zend Framework&#8217;. Feedback is collected here and the slideshow is embedded below. Building Web Services with Zend Framework (PHP Benelux meeting 20100713 Vlissingen) View more presentations from King Foo.]]></description>
		<wfw:commentRss>http://www.king-foo.be/2010/07/presentation-on-building-web-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

