<?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>ActiveCodeline &#187; Flex</title>
	<atom:link href="http://activecodeline.com/tag/flex/feed" rel="self" type="application/rss+xml" />
	<link>http://activecodeline.com</link>
	<description>Blog site of Branko Ajzele, web application developer.</description>
	<lastBuildDate>Tue, 07 Sep 2010 05:59:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Variable number of arguments is not supported for services error&#8230; Magento and Zend_AMF</title>
		<link>http://activecodeline.com/variable-number-of-arguments-is-not-supported-for-services-error-magento-and-zend_amf</link>
		<comments>http://activecodeline.com/variable-number-of-arguments-is-not-supported-for-services-error-magento-and-zend_amf#comments</comments>
		<pubDate>Sat, 23 May 2009 11:23:25 +0000</pubDate>
		<dc:creator>branko</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[AMF]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://activecodeline.com/?p=736</guid>
		<description><![CDATA[Here is a little something to share with the world. Last night I was building a nice little application for Flex &#8211; AMF &#8211; Magento development. Basically it consists of Flex application from which you are calling Magento AMF server. AMF server is made as a module in Magento, with its own config.xml file, controller [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a little something to share with the world. Last night I was building a nice little application for Flex &#8211; AMF &#8211; Magento development. Basically it consists of Flex application from which you are calling Magento AMF server. AMF server is made as a module in Magento, with its own config.xml file, controller and model files. Basically I already build an application, just wanted to share interesting issue I come across. When I wish to extend any of my models with some of Magento models I get following error from AMF server: &#8220;<strong><em>Variable number of arguments is not supported for services (except optional parameters). Number of function arguments must currespond to actual number of arguments described in a docblock.</em></strong>&#8220;.<span id="more-736"></span></p>
<p>So by doing the class definition like below, Zend_AMF component will work just fine.<br />
<em>class MyCompany_MyModule_Model_MyModel</em></p>
<p>And doing it like</p>
<p><em>class MyCompany_MyModule_Model_MyModel extends Mage_Core_Model_Abstract</em></p>
<p>will trigger the above error.</p>
<p>Solution? Workaround. For most of the part you will not need to extend model class. If you do need something like that, why not store the instace of Mage_Core_Model_Abstract class in private property then work on that property within your class. I?m talking about scenarios where you need to implement Zend_Amf and Flex into Magento.</p>
]]></content:encoded>
			<wfw:commentRss>http://activecodeline.com/variable-number-of-arguments-is-not-supported-for-services-error-magento-and-zend_amf/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
