<?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>Fordnox &#187; soap</title>
	<atom:link href="http://www.fordnox.com/blog/tag/soap/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fordnox.com/blog</link>
	<description>Life is about trust</description>
	<lastBuildDate>Fri, 19 Mar 2010 22:57:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ZF 1.8 Soap server example module</title>
		<link>http://www.fordnox.com/blog/2009/05/zf-18-soap-server-example-module/</link>
		<comments>http://www.fordnox.com/blog/2009/05/zf-18-soap-server-example-module/#comments</comments>
		<pubDate>Wed, 27 May 2009 12:21:37 +0000</pubDate>
		<dc:creator>Andrius</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Operating systems]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Widgets]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[soap]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.fordnox.com/blog/?p=127</guid>
		<description><![CDATA[I want to share my example Zend Soap Server module. This is Zend Framework module, with default folders structure. You can just drop it your &#8220;modules&#8221; directory and server will be ready for work.
My aim was to show how Service documentation is made &#8220;on the fly&#8221;. You only need to change DocBlock in service class. [...]]]></description>
			<content:encoded><![CDATA[<p>I want to share my example Zend Soap Server module. This is Zend Framework module, with default folders structure. You can just drop it your &#8220;modules&#8221; directory and server will be ready for work.<br />
My aim was to show how Service documentation is made &#8220;on the fly&#8221;. You only need to change DocBlock in service class. Fully working documentation will be generated by reflection class.</p>
<p>Some things worth mentioning:</p>
<ul>
<li>I have left ini_set(&#8220;soap.wsdl_cache_enabled&#8221;, &#8220;0&#8243;); because $server-&gt;setWsdlCache(false); does nothing</li>
<li>Authentication example is for demo only and should not be considered as proposed solution.</li>
</ul>
<p><span id="more-127"></span><br />

<a href='http://www.fordnox.com/blog/2009/05/zf-18-soap-server-example-module/docs/' title='Generated documentation'><img width="150" height="150" src="http://www.fordnox.com/blog/wp-content/uploads/2009/05/docs-150x150.png" class="attachment-thumbnail" alt="" title="Generated documentation" /></a>
<a href='http://www.fordnox.com/blog/2009/05/zf-18-soap-server-example-module/class/' title='PHP class example'><img width="150" height="150" src="http://www.fordnox.com/blog/wp-content/uploads/2009/05/class-150x150.png" class="attachment-thumbnail" alt="" title="PHP class example" /></a>
<a href='http://www.fordnox.com/blog/2009/05/zf-18-soap-server-example-module/auto_test/' title='Auto create form for server function'><img width="150" height="116" src="http://www.fordnox.com/blog/wp-content/uploads/2009/05/auto_test-150x116.png" class="attachment-thumbnail" alt="" title="Auto create form for server function" /></a>
<a href='http://www.fordnox.com/blog/2009/05/zf-18-soap-server-example-module/resp/' title='Test response'><img width="150" height="150" src="http://www.fordnox.com/blog/wp-content/uploads/2009/05/resp-150x150.png" class="attachment-thumbnail" alt="" title="Test response" /></a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fordnox.com/blog/2009/05/zf-18-soap-server-example-module/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Zend Framework Soap server</title>
		<link>http://www.fordnox.com/blog/2008/11/zend-framework-soap-server/</link>
		<comments>http://www.fordnox.com/blog/2008/11/zend-framework-soap-server/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 15:07:47 +0000</pubDate>
		<dc:creator>Andrius</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[soap]]></category>
		<category><![CDATA[wsdl]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://www.fordnox.com/blog/?p=99</guid>
		<description><![CDATA[Thanks for great explanation Viktorai Agejevai
Server class has function:

/**
* @desc Get Product info by product_id
* @param int $product_id
* @return array
*/
public function getProduct($product_id)
{
	$result = array(
		"product_id"=>$product_id,
		"title"=>'Product Title'
		);
	return $result;
}

Client get response:


	
	  product_id
	  2
	
	
	  title
	  Product Title
	

I want this response to be like this:


	
2
		
	

How do i do that ?
]]></description>
			<content:encoded><![CDATA[<p>Thanks for great explanation <a href="http://electrotek.wordpress.com/2008/04/19/soap-web-service-with-zend-framework/">Viktorai Agejevai</a></p>
<p>Server class has function:</p>
<pre class="brush: js">
/**
* @desc Get Product info by product_id
* @param int $product_id
* @return array
*/
public function getProduct($product_id)
{
	$result = array(
		"product_id"=>$product_id,
		"title"=>'Product Title'
		);
	return $result;
}
</pre>
<p>Client get response:</p>
<pre class="brush: js">
<item xsi:type="ns1:Map">
	</item><item>
	  <key xsi:type="xsd:string">product_id</key>
	  <value xsi:type="xsd:string">2</value>
	</item>
	<item>
	  <key xsi:type="xsd:string">title</key>
	  <value xsi:type="xsd:string">Product Title</value>
	</item>
</pre>
<p>I want this response to be like this:</p>
<pre class="brush: js">
<item xsi:type="ns1:Map">
	</item><item>
<product_id>2</product_id>
		
	</item>
</pre>
<p>How do i do that ?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fordnox.com/blog/2008/11/zend-framework-soap-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
