<?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: Magento api with Java Client &#8212; problem with XML-RPC interface</title>
	<atom:link href="http://libjack.com/2009/03/26/java-magento-xmlrpc-api-nil-issue/feed/" rel="self" type="application/rss+xml" />
	<link>http://libjack.com/2009/03/26/java-magento-xmlrpc-api-nil-issue/</link>
	<description>What is a libjack? ... Dunno? .... stick around and find out!</description>
	<lastBuildDate>Wed, 07 Jul 2010 04:56:15 -0600</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Gary</title>
		<link>http://libjack.com/2009/03/26/java-magento-xmlrpc-api-nil-issue/comment-page-1/#comment-716</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Wed, 07 Jul 2010 04:56:15 +0000</pubDate>
		<guid isPermaLink="false">http://libjack.com/?p=34#comment-716</guid>
		<description>Thank you very much for the solution, saved a tone of time... I was just about to start debugging myself. Thanks again...</description>
		<content:encoded><![CDATA[<p>Thank you very much for the solution, saved a tone of time&#8230; I was just about to start debugging myself. Thanks again&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kamal Govindraj</title>
		<link>http://libjack.com/2009/03/26/java-magento-xmlrpc-api-nil-issue/comment-page-1/#comment-648</link>
		<dc:creator>Kamal Govindraj</dc:creator>
		<pubDate>Thu, 03 Jun 2010 10:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://libjack.com/?p=34#comment-648</guid>
		<description>Thanks a lot - this saved me a couple of hours of debugging.</description>
		<content:encoded><![CDATA[<p>Thanks a lot &#8211; this saved me a couple of hours of debugging.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arimus</title>
		<link>http://libjack.com/2009/03/26/java-magento-xmlrpc-api-nil-issue/comment-page-1/#comment-524</link>
		<dc:creator>arimus</dc:creator>
		<pubDate>Tue, 06 Apr 2010 03:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://libjack.com/?p=34#comment-524</guid>
		<description>Thank you very much.  I had  extensions enabled for perl RPC::XML and needed to get the apache client working and the enabledForExtensions also did not work for me...was scratching my head.  You saved me a few hours, which after a long string of tracking things down myself was a welcome change.

Cheers</description>
		<content:encoded><![CDATA[<p>Thank you very much.  I had  extensions enabled for perl RPC::XML and needed to get the apache client working and the enabledForExtensions also did not work for me&#8230;was scratching my head.  You saved me a few hours, which after a long string of tracking things down myself was a welcome change.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lee</title>
		<link>http://libjack.com/2009/03/26/java-magento-xmlrpc-api-nil-issue/comment-page-1/#comment-468</link>
		<dc:creator>lee</dc:creator>
		<pubDate>Sat, 13 Mar 2010 00:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://libjack.com/?p=34#comment-468</guid>
		<description>This solved an issue I had making requests to a web service from Java using the Apache XML-RPC library (unrelated to Magento). But, I still had issues because I needed to send nil to the web service, but it didn&#039;t recognize nil encoded as . To fix it, in the MyTypeFactory class from the code above I included the following method:

        @Override
        public TypeSerializer getSerializer(XmlRpcStreamConfig pConfig, Object pObject) throws SAXException {
            if (pObject == null) {
                return new TypeSerializerImpl() {
                    public void write(ContentHandler pHandler, Object o) throws SAXException {
                        pHandler.startElement(&quot;&quot;, VALUE_TAG, VALUE_TAG, ZERO_ATTRIBUTES);
                        pHandler.startElement(&quot;&quot;, NullSerializer.NIL_TAG, NullSerializer.NIL_TAG, ZERO_ATTRIBUTES);
                        pHandler.endElement(&quot;&quot;, NullSerializer.NIL_TAG, NullSerializer.NIL_TAG);
                        pHandler.endElement(&quot;&quot;, VALUE_TAG, VALUE_TAG);
                    }
                };
            } else {
                return super.getSerializer(pConfig, pObject);
            }
        }</description>
		<content:encoded><![CDATA[<p>This solved an issue I had making requests to a web service from Java using the Apache XML-RPC library (unrelated to Magento). But, I still had issues because I needed to send nil to the web service, but it didn&#8217;t recognize nil encoded as . To fix it, in the MyTypeFactory class from the code above I included the following method:</p>
<p>        @Override<br />
        public TypeSerializer getSerializer(XmlRpcStreamConfig pConfig, Object pObject) throws SAXException {<br />
            if (pObject == null) {<br />
                return new TypeSerializerImpl() {<br />
                    public void write(ContentHandler pHandler, Object o) throws SAXException {<br />
                        pHandler.startElement(&#8220;&#8221;, VALUE_TAG, VALUE_TAG, ZERO_ATTRIBUTES);<br />
                        pHandler.startElement(&#8220;&#8221;, NullSerializer.NIL_TAG, NullSerializer.NIL_TAG, ZERO_ATTRIBUTES);<br />
                        pHandler.endElement(&#8220;&#8221;, NullSerializer.NIL_TAG, NullSerializer.NIL_TAG);<br />
                        pHandler.endElement(&#8220;&#8221;, VALUE_TAG, VALUE_TAG);<br />
                    }<br />
                };<br />
            } else {<br />
                return super.getSerializer(pConfig, pObject);<br />
            }<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leeman</title>
		<link>http://libjack.com/2009/03/26/java-magento-xmlrpc-api-nil-issue/comment-page-1/#comment-465</link>
		<dc:creator>leeman</dc:creator>
		<pubDate>Thu, 11 Mar 2010 00:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://libjack.com/?p=34#comment-465</guid>
		<description>Thanks for this post, saved me lots of time! And I wasn&#039;t even doing anything with Magento, it was some other web service using XML-RPC with nil instead of ex:nil.</description>
		<content:encoded><![CDATA[<p>Thanks for this post, saved me lots of time! And I wasn&#8217;t even doing anything with Magento, it was some other web service using XML-RPC with nil instead of ex:nil.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hoook</title>
		<link>http://libjack.com/2009/03/26/java-magento-xmlrpc-api-nil-issue/comment-page-1/#comment-274</link>
		<dc:creator>hoook</dc:creator>
		<pubDate>Tue, 17 Nov 2009 10:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://libjack.com/?p=34#comment-274</guid>
		<description>Hey, 
Thanks for this post, it saved me hours of making my own walkarround :)

I&#039;m not sure, that this is only magento problem. I&#039;m connectiong from Java (apache .jar) to Python&#039;s XMLRPC WebService and got the same exception.

Anyway, thanks :)</description>
		<content:encoded><![CDATA[<p>Hey,<br />
Thanks for this post, it saved me hours of making my own walkarround <img src='http://libjack.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m not sure, that this is only magento problem. I&#8217;m connectiong from Java (apache .jar) to Python&#8217;s XMLRPC WebService and got the same exception.</p>
<p>Anyway, thanks <img src='http://libjack.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: panticz.de</title>
		<link>http://libjack.com/2009/03/26/java-magento-xmlrpc-api-nil-issue/comment-page-1/#comment-239</link>
		<dc:creator>panticz.de</dc:creator>
		<pubDate>Sat, 19 Sep 2009 09:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://libjack.com/?p=34#comment-239</guid>
		<description>Hello everybody!
 
I am currently writing a Magento Connector for Java. The goal is to create a free wrapper / library to manage Magento from a Java application. A few parts such as management of products, categories and pictures are already partially finished and can be used. 
 
The latest version (source code and JAR package) can be downloaded from this homepage:
http://www.panticz.de/MagentoConnector

If someone is interested in co-development, please contact my here http://www.panticz.de/contact/.
 
Greeting
 
Pawel</description>
		<content:encoded><![CDATA[<p>Hello everybody!</p>
<p>I am currently writing a Magento Connector for Java. The goal is to create a free wrapper / library to manage Magento from a Java application. A few parts such as management of products, categories and pictures are already partially finished and can be used. </p>
<p>The latest version (source code and JAR package) can be downloaded from this homepage:<br />
<a href="http://www.panticz.de/MagentoConnector" rel="nofollow">http://www.panticz.de/MagentoConnector</a></p>
<p>If someone is interested in co-development, please contact my here <a href="http://www.panticz.de/contact/" rel="nofollow">http://www.panticz.de/contact/</a>.</p>
<p>Greeting</p>
<p>Pawel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaetano</title>
		<link>http://libjack.com/2009/03/26/java-magento-xmlrpc-api-nil-issue/comment-page-1/#comment-230</link>
		<dc:creator>Gaetano</dc:creator>
		<pubDate>Tue, 07 Jul 2009 08:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://libjack.com/?p=34#comment-230</guid>
		<description>Just for clarification: according to the XMLRPC spec, NIL does not exist at all, namespace or not (http://www.xmlrpc.com/spec).
The ex:nil is an extension first added by the Apache lib whereas the &#039;nil&#039; extension was added by another implementation (http://ontosys.com/xml-rpc/extensions.php), long time before that iirc.
So to say that the fault lies on the magento side is a bit arbitrary...</description>
		<content:encoded><![CDATA[<p>Just for clarification: according to the XMLRPC spec, NIL does not exist at all, namespace or not (<a href="http://www.xmlrpc.com/spec" rel="nofollow">http://www.xmlrpc.com/spec</a>).<br />
The ex:nil is an extension first added by the Apache lib whereas the &#8216;nil&#8217; extension was added by another implementation (<a href="http://ontosys.com/xml-rpc/extensions.php" rel="nofollow">http://ontosys.com/xml-rpc/extensions.php</a>), long time before that iirc.<br />
So to say that the fault lies on the magento side is a bit arbitrary&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan Wiencznys Blog</title>
		<link>http://libjack.com/2009/03/26/java-magento-xmlrpc-api-nil-issue/comment-page-1/#comment-226</link>
		<dc:creator>Stephan Wiencznys Blog</dc:creator>
		<pubDate>Sat, 27 Jun 2009 02:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://libjack.com/?p=34#comment-226</guid>
		<description>&lt;strong&gt;Magento...&lt;/strong&gt;

Also sollte mal jemand in die Verlegenheit kommen Magento benutzen zu müssen, tut er mir leid. Vom Funktionsumfang her ist hat es so ziemlich alles, was man sich wünschen könnte. Geht es jedoch darum Erweiterungen zu schreiben hört der Spaß auf. D...</description>
		<content:encoded><![CDATA[<p><strong>Magento&#8230;</strong></p>
<p>Also sollte mal jemand in die Verlegenheit kommen Magento benutzen zu müssen, tut er mir leid. Vom Funktionsumfang her ist hat es so ziemlich alles, was man sich wünschen könnte. Geht es jedoch darum Erweiterungen zu schreiben hört der Spaß auf. D&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Rogers</title>
		<link>http://libjack.com/2009/03/26/java-magento-xmlrpc-api-nil-issue/comment-page-1/#comment-203</link>
		<dc:creator>Jonathan Rogers</dc:creator>
		<pubDate>Thu, 16 Apr 2009 17:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://libjack.com/?p=34#comment-203</guid>
		<description>Thanks for the workaround. I was surprised to discover that the bug was in Magento or whatever XML-RPC implementation it&#039;s using, since Python&#039;s xmlrpclib communicates with it just fine. I guess a number of implementations must allow the non-standard nil. Ideally, this should be addressed in Magento.</description>
		<content:encoded><![CDATA[<p>Thanks for the workaround. I was surprised to discover that the bug was in Magento or whatever XML-RPC implementation it&#8217;s using, since Python&#8217;s xmlrpclib communicates with it just fine. I guess a number of implementations must allow the non-standard nil. Ideally, this should be addressed in Magento.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
