<?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: XML-RPC on the iPhone</title>
	<atom:link href="http://www.kilbot.com.au/2009/06/14/xml-rpc-on-the-iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kilbot.com.au/2009/06/14/xml-rpc-on-the-iphone/</link>
	<description>The Kilbot Factory provides web design, web development and web hosting. We specialise in clean, modern design and dynamic database driven content for e-Commerce and CMS web sites.</description>
	<lastBuildDate>Tue, 16 Feb 2010 16:42:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ad</title>
		<link>http://www.kilbot.com.au/2009/06/14/xml-rpc-on-the-iphone/comment-page-1/#comment-7655</link>
		<dc:creator>ad</dc:creator>
		<pubDate>Tue, 16 Feb 2010 16:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilbot.com.au/?p=252#comment-7655</guid>
		<description>Thanks, Lex.&lt;br&gt;&lt;br&gt;Now I kinda succeded in establishing a communication between my app and my php WS, but I have some problems with types. &lt;br&gt;&lt;br&gt;I created the WS using phpxmlrpc library, do you know if it&#039;s compatible with the wordpress library? I sometimes find that I dont get returned a NSDictionary but a String.&lt;br&gt;&lt;br&gt;I also would like to know how to send integers or other types to the WS, not only strings.&lt;br&gt;&lt;br&gt;Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks, Lex.</p>
<p>Now I kinda succeded in establishing a communication between my app and my php WS, but I have some problems with types. </p>
<p>I created the WS using phpxmlrpc library, do you know if it&#39;s compatible with the wordpress library? I sometimes find that I dont get returned a NSDictionary but a String.</p>
<p>I also would like to know how to send integers or other types to the WS, not only strings.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lex</title>
		<link>http://www.kilbot.com.au/2009/06/14/xml-rpc-on-the-iphone/comment-page-1/#comment-7640</link>
		<dc:creator>Lex</dc:creator>
		<pubDate>Fri, 11 Dec 2009 12:01:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilbot.com.au/?p=252#comment-7640</guid>
		<description>It sounds to me like the argument that is passed to NSString&#039;s decodeXMLCharactersIn method is of the wrong type. Make sure that types of your variables support the methods you call on them. This can be tricky due to Objective-C being very dynamic. If you debug and step into the parse method and reach the point where [NSString decodeXMLCharactersIn] is called, you should be able to track down the error.</description>
		<content:encoded><![CDATA[<p>It sounds to me like the argument that is passed to NSString&#39;s decodeXMLCharactersIn method is of the wrong type. Make sure that types of your variables support the methods you call on them. This can be tricky due to Objective-C being very dynamic. If you debug and step into the parse method and reach the point where [NSString decodeXMLCharactersIn] is called, you should be able to track down the error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ad</title>
		<link>http://www.kilbot.com.au/2009/06/14/xml-rpc-on-the-iphone/comment-page-1/#comment-7638</link>
		<dc:creator>ad</dc:creator>
		<pubDate>Thu, 03 Dec 2009 12:11:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilbot.com.au/?p=252#comment-7638</guid>
		<description>Hi, I&#039;m trying to develop an application based on your post, and on Leoganda&#039;s one, but I&#039;m doing something wrong. My app has an exception everytime.&lt;br&gt;&lt;br&gt;Terminating app due to uncaught exception &#039;NSInvalidArgument&lt;br&gt;Exception&#039;, reason: &#039;*** +[NSString decodeXMLCharactersIn:]: unrecognized selector sent to class 0x30692800&#039;&lt;br&gt;&lt;br&gt;I debugged and found that it crashes on the first line of this function:&lt;br&gt;&lt;br&gt;- (id)decode&lt;br&gt;{&lt;br&gt;	[_parser parse];&lt;br&gt;	&lt;br&gt;	NSError *parseError = [_parser parserError];&lt;br&gt;	if (parseError) {&lt;br&gt;		return parseError;&lt;br&gt;	}&lt;br&gt;	&lt;br&gt;	return decodedValue;&lt;br&gt;}&lt;br&gt;&lt;br&gt;Even though, I still don&#039;t know what I&#039;m doing wrong. Some advice would be very helpful.&lt;br&gt;&lt;br&gt;Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, I&#39;m trying to develop an application based on your post, and on Leoganda&#39;s one, but I&#39;m doing something wrong. My app has an exception everytime.</p>
<p>Terminating app due to uncaught exception &#39;NSInvalidArgument<br />Exception&#39;, reason: &#39;*** +[NSString decodeXMLCharactersIn:]: unrecognized selector sent to class 0&#215;30692800&#39;</p>
<p>I debugged and found that it crashes on the first line of this function:</p>
<p>- (id)decode<br />{<br />	[_parser parse];</p>
<p>	NSError *parseError = [_parser parserError];<br />	if (parseError) {<br />		return parseError;<br />	}</p>
<p>	return decodedValue;<br />}</p>
<p>Even though, I still don&#39;t know what I&#39;m doing wrong. Some advice would be very helpful.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jb</title>
		<link>http://www.kilbot.com.au/2009/06/14/xml-rpc-on-the-iphone/comment-page-1/#comment-7635</link>
		<dc:creator>Jb</dc:creator>
		<pubDate>Wed, 04 Nov 2009 14:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilbot.com.au/?p=252#comment-7635</guid>
		<description>Lex - check your comment on the WP iPhone app...  The keys are dependent on what the XMLRPC service returns... I.E. you&#039;re making a method call for some data and what comes back depends on what you asked for and how that XMLRPC service creates the XML...</description>
		<content:encoded><![CDATA[<p>Lex &#8211; check your comment on the WP iPhone app&#8230;  The keys are dependent on what the XMLRPC service returns&#8230; I.E. you&#39;re making a method call for some data and what comes back depends on what you asked for and how that XMLRPC service creates the XML&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lex</title>
		<link>http://www.kilbot.com.au/2009/06/14/xml-rpc-on-the-iphone/comment-page-1/#comment-7634</link>
		<dc:creator>Lex</dc:creator>
		<pubDate>Thu, 29 Oct 2009 09:07:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilbot.com.au/?p=252#comment-7634</guid>
		<description>Alrite, I can&#039;t figure how the returned data strucutre is composed. I tried looking for an NSDictionary strucutre in the debugger, but no success. My response in XML looks like this:&lt;br&gt;&lt;br&gt;&lt;methodResponse&gt;&lt;br&gt;  &lt;params&gt;&lt;br&gt;      &lt;param&gt;&lt;br&gt;           &lt;value&gt;&lt;br&gt;               &lt;boolean&gt;0&lt;/boolean&gt;&lt;br&gt;           &lt;/value&gt;&lt;br&gt;      &lt;/param&gt;&lt;br&gt;  &lt;/params&gt;&lt;br&gt;&lt;/methodResponse&gt;&lt;br&gt;&lt;br&gt;I tried using &quot;boolean&quot; and &quot;value&quot; as the key, but that didn&#039;t help, I get a &quot;Terminating app due to uncaught expcetion NSUNknownKeyException, reason: NSCFBoolean 0x... valueForUndefineKey: this class is not key value coding-compliant for the key boolean/value/...&quot;&lt;br&gt;&lt;br&gt;Does the key relate to the XML at all?</description>
		<content:encoded><![CDATA[<p>Alrite, I can&#39;t figure how the returned data strucutre is composed. I tried looking for an NSDictionary strucutre in the debugger, but no success. My response in XML looks like this:</p>
<p>&lt;methodResponse&gt;<br />  &lt;params&gt;<br />      &lt;param&gt;<br />           &lt;value&gt;<br />               &lt;boolean&gt;0&lt;/boolean&gt;<br />           &lt;/value&gt;<br />      &lt;/param&gt;<br />  &lt;/params&gt;<br />&lt;/methodResponse&gt;</p>
<p>I tried using &#8220;boolean&#8221; and &#8220;value&#8221; as the key, but that didn&#39;t help, I get a &#8220;Terminating app due to uncaught expcetion NSUNknownKeyException, reason: NSCFBoolean 0x&#8230; valueForUndefineKey: this class is not key value coding-compliant for the key boolean/value/&#8230;&#8221;</p>
<p>Does the key relate to the XML at all?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kilbot</title>
		<link>http://www.kilbot.com.au/2009/06/14/xml-rpc-on-the-iphone/comment-page-1/#comment-7633</link>
		<dc:creator>kilbot</dc:creator>
		<pubDate>Wed, 28 Oct 2009 06:29:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilbot.com.au/?p=252#comment-7633</guid>
		<description>Hi Lex, the response is returned as a NSDictionary, so depending on how you are trying to access data within that object you could be getting the NSInvalidArgumentException error.&lt;br&gt;&lt;br&gt;Try logging some notices in the app to see where it is failing, eg:&lt;br&gt;  if( [response isKindOfClass:[NSError class]] ) {&lt;br&gt;    NSLog(@&quot;Something went wrong ... there was no readable response&quot;);&lt;br&gt;    return nil;&lt;br&gt;  }&lt;br&gt;  else {&lt;br&gt;    NSLog(@&quot;key: %@&quot;,[response valueForKey:@&quot;key&quot;]);&lt;br&gt;    return [response valueForKey:@&quot;key&quot;];          // the response key&lt;br&gt;  }&lt;br&gt;  return nil;&lt;br&gt;&lt;br&gt;Where &#039;key&#039; is some data you expect to get back from the server.</description>
		<content:encoded><![CDATA[<p>Hi Lex, the response is returned as a NSDictionary, so depending on how you are trying to access data within that object you could be getting the NSInvalidArgumentException error.</p>
<p>Try logging some notices in the app to see where it is failing, eg:<br />  if( [response isKindOfClass:[NSError class]] ) {<br />    NSLog(@&#8221;Something went wrong &#8230; there was no readable response&#8221;);<br />    return nil;<br />  }<br />  else {<br />    NSLog(@&#8221;key: %@&#8221;,[response valueForKey:@"key"]);<br />    return [response valueForKey:@"key"];          // the response key<br />  }<br />  return nil;</p>
<p>Where &#39;key&#39; is some data you expect to get back from the server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lex</title>
		<link>http://www.kilbot.com.au/2009/06/14/xml-rpc-on-the-iphone/comment-page-1/#comment-7632</link>
		<dc:creator>Lex</dc:creator>
		<pubDate>Tue, 27 Oct 2009 14:51:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilbot.com.au/?p=252#comment-7632</guid>
		<description>Hey Kilbot,&lt;br&gt;&lt;br&gt;thanks for the info. I need to use XMLRPC for my iPhone app, I tried implementing an example pretty much like what Leo has on his site (&lt;a href=&quot;http://www.leoganda.net/xml-rpc-on-iphone/&quot; rel=&quot;nofollow&quot;&gt;http://www.leoganda.net/xml-rpc-on-iphone/&lt;/a&gt;). Even if I define response as an id and not NSString, I get a “NSInvalidArgumentException, reason: *** [NSError object]: unrecognized selector sent to instance …” error when I return the response as an object. Have you encountered this as well?</description>
		<content:encoded><![CDATA[<p>Hey Kilbot,</p>
<p>thanks for the info. I need to use XMLRPC for my iPhone app, I tried implementing an example pretty much like what Leo has on his site (<a href="http://www.leoganda.net/xml-rpc-on-iphone/" rel="nofollow">http://www.leoganda.net/xml-rpc-on-iphone/</a>). Even if I define response as an id and not NSString, I get a “NSInvalidArgumentException, reason: *** [NSError object]: unrecognized selector sent to instance …” error when I return the response as an object. Have you encountered this as well?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leoganda</title>
		<link>http://www.kilbot.com.au/2009/06/14/xml-rpc-on-the-iphone/comment-page-1/#comment-7543</link>
		<dc:creator>Leoganda</dc:creator>
		<pubDate>Wed, 19 Aug 2009 06:19:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilbot.com.au/?p=252#comment-7543</guid>
		<description>Hi thanks kilbot, I have succeed make simple app with XMLRPC Wordpress now :)</description>
		<content:encoded><![CDATA[<p>Hi thanks kilbot, I have succeed make simple app with XMLRPC Wordpress now :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kilbot</title>
		<link>http://www.kilbot.com.au/2009/06/14/xml-rpc-on-the-iphone/comment-page-1/#comment-7164</link>
		<dc:creator>kilbot</dc:creator>
		<pubDate>Fri, 31 Jul 2009 21:35:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilbot.com.au/?p=252#comment-7164</guid>
		<description>The returned object (*response in the case above) is a NSDictionary, that way you can access the data with key/value pairs.</description>
		<content:encoded><![CDATA[<p>The returned object (*response in the case above) is a NSDictionary, that way you can access the data with key/value pairs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zero dist0rti0n</title>
		<link>http://www.kilbot.com.au/2009/06/14/xml-rpc-on-the-iphone/comment-page-1/#comment-7148</link>
		<dc:creator>zero dist0rti0n</dc:creator>
		<pubDate>Fri, 31 Jul 2009 02:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilbot.com.au/?p=252#comment-7148</guid>
		<description>Cool, do these classes convert the array returned to an NSArray?</description>
		<content:encoded><![CDATA[<p>Cool, do these classes convert the array returned to an NSArray?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kilbot</title>
		<link>http://www.kilbot.com.au/2009/06/14/xml-rpc-on-the-iphone/comment-page-1/#comment-6856</link>
		<dc:creator>kilbot</dc:creator>
		<pubDate>Fri, 17 Jul 2009 21:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilbot.com.au/?p=252#comment-6856</guid>
		<description>Hi Leoganda, I don&#039;t have a complete article but I probably help you put together some basic code.. what is the task you are trying to complete?</description>
		<content:encoded><![CDATA[<p>Hi Leoganda, I don&#8217;t have a complete article but I probably help you put together some basic code.. what is the task you are trying to complete?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leoganda</title>
		<link>http://www.kilbot.com.au/2009/06/14/xml-rpc-on-the-iphone/comment-page-1/#comment-6808</link>
		<dc:creator>Leoganda</dc:creator>
		<pubDate>Mon, 13 Jul 2009 04:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilbot.com.au/?p=252#comment-6808</guid>
		<description>Hi, it&#039;s really good article! 
I&#039;m newbie in Iphone development, do you have complete article how to use this xml rpc and linked to the UI??

Thanks</description>
		<content:encoded><![CDATA[<p>Hi, it&#8217;s really good article!<br />
I&#8217;m newbie in Iphone development, do you have complete article how to use this xml rpc and linked to the UI??</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
