<?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: Creating a JSON-RPC server with Zend Framework</title>
	<atom:link href="http://blog.jtclark.ca/2010/05/creating-a-json-rpc-server-with-zend-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jtclark.ca/2010/05/creating-a-json-rpc-server-with-zend-framework/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creating-a-json-rpc-server-with-zend-framework</link>
	<description>the web, technology and miscellaneous rants</description>
	<lastBuildDate>Wed, 25 Jan 2012 17:52:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Jeremy Glover</title>
		<link>http://blog.jtclark.ca/2010/05/creating-a-json-rpc-server-with-zend-framework/comment-page-1/#comment-736</link>
		<dc:creator>Jeremy Glover</dc:creator>
		<pubDate>Sat, 05 Nov 2011 13:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jtclark.ca/?p=654#comment-736</guid>
		<description>Thanks for this post.

I&#039;ve recently done something similar, but I&#039;m trying to figure out how to handle errors for when calls are made with incorrect parameters. Currently my app throws a Zend_Json_Server_Error exception when there are missing parameters but doesn&#039;t return it as a JSON-RPC response. Unfortunately it just spits the exception out as text.

Any thoughts about how to deal with this?</description>
		<content:encoded><![CDATA[<p>Thanks for this post.</p>
<p>I&#8217;ve recently done something similar, but I&#8217;m trying to figure out how to handle errors for when calls are made with incorrect parameters. Currently my app throws a Zend_Json_Server_Error exception when there are missing parameters but doesn&#8217;t return it as a JSON-RPC response. Unfortunately it just spits the exception out as text.</p>
<p>Any thoughts about how to deal with this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Nguyen</title>
		<link>http://blog.jtclark.ca/2010/05/creating-a-json-rpc-server-with-zend-framework/comment-page-1/#comment-541</link>
		<dc:creator>Eric Nguyen</dc:creator>
		<pubDate>Sun, 12 Jun 2011 17:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jtclark.ca/?p=654#comment-541</guid>
		<description>What I meant is my jsonrpc.php is as follows:
setClass(‘Simple’);
 
 
if (‘GET’ == $_SERVER[‘REQUEST_METHOD’]) {
    // Indicate the URL endpoint, and the JSON-RPC version used:
    $server-&gt;setTarget(‘/api/v1/jsonrpc.php’)
           -&gt;setEnvelope(Zend_Json_Server_Smd::ENV_JSONRPC_2);
 
    // Grab the SMD
    $smd = $server-&gt;getServiceMap();
 
    // Return the SMD to the client
    header(‘Content-Type: application/json’);
    echo $smd;
    return;
}
 
$server-&gt;handle();

(the missing part compared to yours is already taken cared by my index.php)</description>
		<content:encoded><![CDATA[<p>What I meant is my jsonrpc.php is as follows:<br />
setClass(‘Simple’);</p>
<p>if (‘GET’ == $_SERVER[‘REQUEST_METHOD’]) {<br />
    // Indicate the URL endpoint, and the JSON-RPC version used:<br />
    $server-&gt;setTarget(‘/api/v1/jsonrpc.php’)<br />
           -&gt;setEnvelope(Zend_Json_Server_Smd::ENV_JSONRPC_2);</p>
<p>    // Grab the SMD<br />
    $smd = $server-&gt;getServiceMap();</p>
<p>    // Return the SMD to the client<br />
    header(‘Content-Type: application/json’);<br />
    echo $smd;<br />
    return;<br />
}</p>
<p>$server-&gt;handle();</p>
<p>(the missing part compared to yours is already taken cared by my index.php)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Nguyen</title>
		<link>http://blog.jtclark.ca/2010/05/creating-a-json-rpc-server-with-zend-framework/comment-page-1/#comment-540</link>
		<dc:creator>Eric Nguyen</dc:creator>
		<pubDate>Sun, 12 Jun 2011 17:01:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jtclark.ca/?p=654#comment-540</guid>
		<description>Thanks for sharing.

I followed your article but I encountering &quot;Internal Server Error&quot; when I try to access /api/1.0/jsonrpc from the browser. Therefore, the Javascript script can&#039;t work either.

I&#039;m quite sure something is wrong with my .htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^api/([0-9].[0-9])/jsonrpc$ /api/$1/jsonrpc.php [NC,L]
RewriteRule ^.*$ index.php [NC,L]

And my bootstrap.php is as follows:</description>
		<content:encoded><![CDATA[<p>Thanks for sharing.</p>
<p>I followed your article but I encountering &#8220;Internal Server Error&#8221; when I try to access /api/1.0/jsonrpc from the browser. Therefore, the Javascript script can&#8217;t work either.</p>
<p>I&#8217;m quite sure something is wrong with my .htaccess:<br />
RewriteEngine On<br />
RewriteCond %{REQUEST_FILENAME} -s [OR]<br />
RewriteCond %{REQUEST_FILENAME} -l [OR]<br />
RewriteCond %{REQUEST_FILENAME} -d<br />
RewriteRule ^.*$ &#8211; [NC,L]<br />
RewriteRule ^api/([0-9].[0-9])/jsonrpc$ /api/$1/jsonrpc.php [NC,L]<br />
RewriteRule ^.*$ index.php [NC,L]</p>
<p>And my bootstrap.php is as follows:</p>
]]></content:encoded>
	</item>
</channel>
</rss>

