<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Zend_Json_Server and how to call it via JSON-RPC 2.0</title>
	<atom:link href="http://www.joeyrivera.com/2011/zend_json_server-and-how-to-call-it-via-json-rpc-2-0/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joeyrivera.com/2011/zend_json_server-and-how-to-call-it-via-json-rpc-2-0/</link>
	<description>Blogging about PHP, Zend Framework, and other interests.</description>
	<lastBuildDate>Wed, 20 Mar 2013 14:20:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Andi</title>
		<link>http://www.joeyrivera.com/2011/zend_json_server-and-how-to-call-it-via-json-rpc-2-0/comment-page-1/#comment-1869</link>
		<dc:creator>Andi</dc:creator>
		<pubDate>Mon, 31 Oct 2011 07:54:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=656#comment-1869</guid>
		<description>Hi,

great Post. Exactly what i was looking for:-)
Thanks a lot for sharing this information.

Cheers
Andi</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>great Post. Exactly what i was looking for:-)<br />
Thanks a lot for sharing this information.</p>
<p>Cheers<br />
Andi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joey</title>
		<link>http://www.joeyrivera.com/2011/zend_json_server-and-how-to-call-it-via-json-rpc-2-0/comment-page-1/#comment-924</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Mon, 10 Jan 2011 00:05:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=656#comment-924</guid>
		<description>Fabrice,

Do you have a Student.php file? Sounds like it can&#039;t find that class where you are doing $server-&gt;setClass(&#039;Student&#039;)</description>
		<content:encoded><![CDATA[<p>Fabrice,</p>
<p>Do you have a Student.php file? Sounds like it can&#8217;t find that class where you are doing $server-&gt;setClass(&#8216;Student&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: __fabrice</title>
		<link>http://www.joeyrivera.com/2011/zend_json_server-and-how-to-call-it-via-json-rpc-2-0/comment-page-1/#comment-922</link>
		<dc:creator>__fabrice</dc:creator>
		<pubDate>Sun, 09 Jan 2011 14:36:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.joeyrivera.com/?p=656#comment-922</guid>
		<description>Hi,
I try to use your code, but I have this error : 

Fatal error: Uncaught exception &#039;Zend_Server_Reflection_Exception&#039; with message &#039;Invalid class or object passed to attachClass()&#039;.

Client :
 &#039;2.0&#039;,
        &#039;method&#039; =&gt; &#039;divide&#039;,
        &#039;params&#039; =&gt; array(&#039;326691&#039;),
        &#039;id&#039; =&gt; &#039;test&#039;
);


$http = new Zend_Http_Client();
$http-&gt;setUri(&#039;http://localhost/tests/joeyrivera/server-json.php&#039;);
$http-&gt;setMethod(Zend_Http_Client::POST);
$http-&gt;setRawData(json_encode($params));

echo &quot; ===&gt; &quot;.$http-&gt;request()-&gt;getBody();
?&gt;

Server  :
setClass(&#039;Student&#039;);
$response = $server-&gt;handle();

echo $response;
?&gt;

Class : 



Thanks U,

Fabrice</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I try to use your code, but I have this error : </p>
<p>Fatal error: Uncaught exception &#8216;Zend_Server_Reflection_Exception&#8217; with message &#8216;Invalid class or object passed to attachClass()&#8217;.</p>
<p>Client :<br />
 &#8217;2.0&#8242;,<br />
        &#8216;method&#8217; =&gt; &#8216;divide&#8217;,<br />
        &#8216;params&#8217; =&gt; array(&#8217;326691&#8242;),<br />
        &#8216;id&#8217; =&gt; &#8216;test&#8217;<br />
);</p>
<p>$http = new Zend_Http_Client();<br />
$http-&gt;setUri(&#8216;http://localhost/tests/joeyrivera/server-json.php&#8217;);<br />
$http-&gt;setMethod(Zend_Http_Client::POST);<br />
$http-&gt;setRawData(json_encode($params));</p>
<p>echo &#8221; ===&gt; &#8220;.$http-&gt;request()-&gt;getBody();<br />
?&gt;</p>
<p>Server  :<br />
setClass(&#8216;Student&#8217;);<br />
$response = $server-&gt;handle();</p>
<p>echo $response;<br />
?&gt;</p>
<p>Class : </p>
<p>Thanks U,</p>
<p>Fabrice</p>
]]></content:encoded>
	</item>
</channel>
</rss>
