<?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: Sync Drupal Content Using Services and xmlrpc()</title>
	<atom:link href="http://www.delawarewebdesigner.com/tech-stuff/sync-drupal-content-using-services-and-xmlrpc.htm/feed" rel="self" type="application/rss+xml" />
	<link>http://www.delawarewebdesigner.com/tech-stuff/sync-drupal-content-using-services-and-xmlrpc.htm</link>
	<description>Inclind, Inc - Delaware Web Designers - Professional Delaware Web Design Since 1999</description>
	<lastBuildDate>Thu, 22 Jul 2010 18:55:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: bwinett</title>
		<link>http://www.delawarewebdesigner.com/tech-stuff/sync-drupal-content-using-services-and-xmlrpc.htm/comment-page-1#comment-379</link>
		<dc:creator>bwinett</dc:creator>
		<pubDate>Thu, 22 Jul 2010 18:55:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.delawarewebdesigner.com/?p=427#comment-379</guid>
		<description>Thanks for your response and info.  Just thought I&#039;d let you know I found your follow-up article discussing my files question:

http://www.delawarewebdesigner.com/how-tos/sync-files-in-drupal-using-services-and-xmlrpc.htm

Good stuff!</description>
		<content:encoded><![CDATA[<p>Thanks for your response and info.  Just thought I&#8217;d let you know I found your follow-up article discussing my files question:</p>
<p><a href="http://www.delawarewebdesigner.com/how-tos/sync-files-in-drupal-using-services-and-xmlrpc.htm" rel="nofollow">http://www.delawarewebdesigner.com/how-tos/sync-files-in-drupal-using-services-and-xmlrpc.htm</a></p>
<p>Good stuff!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trevor.james</title>
		<link>http://www.delawarewebdesigner.com/tech-stuff/sync-drupal-content-using-services-and-xmlrpc.htm/comment-page-1#comment-378</link>
		<dc:creator>trevor.james</dc:creator>
		<pubDate>Wed, 21 Jul 2010 20:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.delawarewebdesigner.com/?p=427#comment-378</guid>
		<description>I think it&#039;s a permissions issue.  Looks like XML-RPC is only accepting POST requests.  In the parent site browser if I go to xmlrpc I get this:

XML-RPC server accepts POST requests only.

And then if I try getting the nodes on the child site via the Devel module I get this:

stdClass Object
(
    [is_error] =&gt; 1
    [code] =&gt; 1
    [message] =&gt; Access denied
)


How can I configure the one site to accept GET requests?</description>
		<content:encoded><![CDATA[<p>I think it&#8217;s a permissions issue.  Looks like XML-RPC is only accepting POST requests.  In the parent site browser if I go to xmlrpc I get this:</p>
<p>XML-RPC server accepts POST requests only.</p>
<p>And then if I try getting the nodes on the child site via the Devel module I get this:</p>
<p>stdClass Object<br />
(<br />
    [is_error] =&gt; 1<br />
    [code] =&gt; 1<br />
    [message] =&gt; Access denied<br />
)</p>
<p>How can I configure the one site to accept GET requests?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trevor.james</title>
		<link>http://www.delawarewebdesigner.com/tech-stuff/sync-drupal-content-using-services-and-xmlrpc.htm/comment-page-1#comment-377</link>
		<dc:creator>trevor.james</dc:creator>
		<pubDate>Wed, 21 Jul 2010 20:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.delawarewebdesigner.com/?p=427#comment-377</guid>
		<description>If I run the node.getAllHomes via the Services interface on my parent site it does retrieve the correct array of node IDs so that module seems to be working:

Result

Array
(
    [0] =&gt; 1452
    [1] =&gt; 1453
)</description>
		<content:encoded><![CDATA[<p>If I run the node.getAllHomes via the Services interface on my parent site it does retrieve the correct array of node IDs so that module seems to be working:</p>
<p>Result</p>
<p>Array<br />
(<br />
    [0] =&gt; 1452<br />
    [1] =&gt; 1453<br />
)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trevor.james</title>
		<link>http://www.delawarewebdesigner.com/tech-stuff/sync-drupal-content-using-services-and-xmlrpc.htm/comment-page-1#comment-376</link>
		<dc:creator>trevor.james</dc:creator>
		<pubDate>Wed, 21 Jul 2010 19:59:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.delawarewebdesigner.com/?p=427#comment-376</guid>
		<description>I added the fields to the CCK and then added the $node-&gt;field_ lines back into the homes_sync module.  Still not working.

-Trevor</description>
		<content:encoded><![CDATA[<p>I added the fields to the CCK and then added the $node-&gt;field_ lines back into the homes_sync module.  Still not working.</p>
<p>-Trevor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trevor.james</title>
		<link>http://www.delawarewebdesigner.com/tech-stuff/sync-drupal-content-using-services-and-xmlrpc.htm/comment-page-1#comment-375</link>
		<dc:creator>trevor.james</dc:creator>
		<pubDate>Wed, 21 Jul 2010 19:51:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.delawarewebdesigner.com/?p=427#comment-375</guid>
		<description>Something seems odd though - I do have nodes published using this content type and the foreach is looping over those published nodes correct?

-Trevor</description>
		<content:encoded><![CDATA[<p>Something seems odd though &#8211; I do have nodes published using this content type and the foreach is looping over those published nodes correct?</p>
<p>-Trevor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trevor.james</title>
		<link>http://www.delawarewebdesigner.com/tech-stuff/sync-drupal-content-using-services-and-xmlrpc.htm/comment-page-1#comment-374</link>
		<dc:creator>trevor.james</dc:creator>
		<pubDate>Wed, 21 Jul 2010 19:34:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.delawarewebdesigner.com/?p=427#comment-374</guid>
		<description>Oh ok - I deleted the lines that you had for your specific fields thinking I didn&#039;t need those since I didn&#039;t have fields in the content type (just the default body and title) but let me try adding them back and see if I can fix it that way.

Is that what you mean byt the foreach has nothing to loop over?

Best-

Trevor</description>
		<content:encoded><![CDATA[<p>Oh ok &#8211; I deleted the lines that you had for your specific fields thinking I didn&#8217;t need those since I didn&#8217;t have fields in the content type (just the default body and title) but let me try adding them back and see if I can fix it that way.</p>
<p>Is that what you mean byt the foreach has nothing to loop over?</p>
<p>Best-</p>
<p>Trevor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Quillen</title>
		<link>http://www.delawarewebdesigner.com/tech-stuff/sync-drupal-content-using-services-and-xmlrpc.htm/comment-page-1#comment-373</link>
		<dc:creator>Kevin Quillen</dc:creator>
		<pubDate>Wed, 21 Jul 2010 18:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.delawarewebdesigner.com/?p=427#comment-373</guid>
		<description>Looks like the foreach has nothing to loop over. I don&#039;t see anything immediately wrong in the module, though since the post has been written, some of the code has changed.</description>
		<content:encoded><![CDATA[<p>Looks like the foreach has nothing to loop over. I don&#8217;t see anything immediately wrong in the module, though since the post has been written, some of the code has changed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trevor.james</title>
		<link>http://www.delawarewebdesigner.com/tech-stuff/sync-drupal-content-using-services-and-xmlrpc.htm/comment-page-1#comment-372</link>
		<dc:creator>trevor.james</dc:creator>
		<pubDate>Wed, 21 Jul 2010 14:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.delawarewebdesigner.com/?p=427#comment-372</guid>
		<description>Hello!  I&#039;ve enabled this code via 2 modules on 2 sites.  I have the parent site using the first section of code you supplied as a custom module in /sites/all/modules/services/services/homes_service.

I then implemented the homes_sync module in /sites/all/modules on my other site.

Everything enables.  When I run cron on the child site however I&#039;m getting the following error and the Homes content is not populating over from my Parent site.  Any idea what could be causing this?

Status report
warning: Invalid argument supplied for foreach() in /var/www/msde2/sites/all/modules/homes_sync/homes_sync.module on line 41.

I look forward to hearing back from you soon.

Best-

Trevor</description>
		<content:encoded><![CDATA[<p>Hello!  I&#8217;ve enabled this code via 2 modules on 2 sites.  I have the parent site using the first section of code you supplied as a custom module in /sites/all/modules/services/services/homes_service.</p>
<p>I then implemented the homes_sync module in /sites/all/modules on my other site.</p>
<p>Everything enables.  When I run cron on the child site however I&#8217;m getting the following error and the Homes content is not populating over from my Parent site.  Any idea what could be causing this?</p>
<p>Status report<br />
warning: Invalid argument supplied for foreach() in /var/www/msde2/sites/all/modules/homes_sync/homes_sync.module on line 41.</p>
<p>I look forward to hearing back from you soon.</p>
<p>Best-</p>
<p>Trevor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Quillen</title>
		<link>http://www.delawarewebdesigner.com/tech-stuff/sync-drupal-content-using-services-and-xmlrpc.htm/comment-page-1#comment-371</link>
		<dc:creator>Kevin Quillen</dc:creator>
		<pubDate>Wed, 21 Jul 2010 13:05:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.delawarewebdesigner.com/?p=427#comment-371</guid>
		<description>1. Not necessarily. You just need a service to call and functions to handle the response. As long as you have that, you can have multiple service functions handling various types of content. My functions were just specific to handle this one use-case with a content type. If you have multiple content types where the only real difference is the name (and no CCK), you could write a more abstract data retriever and get the same functionality.

2. There are a few ways you can do this depending on the approach. You can use some of the file.get() services included in the core Services module, or write your own. If it is attached to the node, node.get() should be able to tell you there are files attached. In the case that they are linked within the content, you might have to parse the body text for img tags, and do file_get_contents() if you find anything matching the file system path. I knew that wouldn&#039;t be the case with what I was working on, so I did not have to go that far.

The great thing about the Services module is its flexibility to do just about anything data-wise.</description>
		<content:encoded><![CDATA[<p>1. Not necessarily. You just need a service to call and functions to handle the response. As long as you have that, you can have multiple service functions handling various types of content. My functions were just specific to handle this one use-case with a content type. If you have multiple content types where the only real difference is the name (and no CCK), you could write a more abstract data retriever and get the same functionality.</p>
<p>2. There are a few ways you can do this depending on the approach. You can use some of the file.get() services included in the core Services module, or write your own. If it is attached to the node, node.get() should be able to tell you there are files attached. In the case that they are linked within the content, you might have to parse the body text for img tags, and do file_get_contents() if you find anything matching the file system path. I knew that wouldn&#8217;t be the case with what I was working on, so I did not have to go that far.</p>
<p>The great thing about the Services module is its flexibility to do just about anything data-wise.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bwinett</title>
		<link>http://www.delawarewebdesigner.com/tech-stuff/sync-drupal-content-using-services-and-xmlrpc.htm/comment-page-1#comment-370</link>
		<dc:creator>bwinett</dc:creator>
		<pubDate>Tue, 20 Jul 2010 21:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.delawarewebdesigner.com/?p=427#comment-370</guid>
		<description>Excellent post.  Two questions:

1) Looks like you have to create 2 modules for every content type.
2) How would you handle embedded images, links to files on the server, and attached files?</description>
		<content:encoded><![CDATA[<p>Excellent post.  Two questions:</p>
<p>1) Looks like you have to create 2 modules for every content type.<br />
2) How would you handle embedded images, links to files on the server, and attached files?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

