<?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: CJ API/WebService version 2</title>
	<atom:link href="http://www.money-code.com/2008/01/cj-apiwebservice-version-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.money-code.com/2008/01/cj-apiwebservice-version-2/</link>
	<description>Coding For Online Success</description>
	<lastBuildDate>Wed, 15 Jun 2011 08:44:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: piwshop</title>
		<link>http://www.money-code.com/2008/01/cj-apiwebservice-version-2/comment-page-1/#comment-820</link>
		<dc:creator>piwshop</dc:creator>
		<pubDate>Mon, 15 Feb 2010 15:06:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-820</guid>
		<description>SOAP-ERROR: Parsing WSDL
and if I go directly to CJ SOAP, it said
Warning: Invalid argument supplied for foreach()</description>
		<content:encoded><![CDATA[<p>SOAP-ERROR: Parsing WSDL<br />
and if I go directly to CJ SOAP, it said<br />
Warning: Invalid argument supplied for foreach()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kiran</title>
		<link>http://www.money-code.com/2008/01/cj-apiwebservice-version-2/comment-page-1/#comment-132</link>
		<dc:creator>kiran</dc:creator>
		<pubDate>Fri, 23 Jan 2009 07:41:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-132</guid>
		<description>Hi,

First of all, thanks for this code snippet - saved me a lot of time to build a script that does searches products for 100 keywords and downloads the product data.  2 issues (the rest of the response fields can be output on the browser or written to file successfully)  - 

1) The buyURL is returning as blank - is this a known CJ issue, or is something wrong in my script?  I cannot sell these products without this parameter, so how do i get it if CJ is not populating it?
2) Do i need to do a utf8_decode on URLs (which may have special characters such as /, :, &amp;, ?, .) before i can write it to a file or display it on the browser?
 
thanks
kiran</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>First of all, thanks for this code snippet &#8211; saved me a lot of time to build a script that does searches products for 100 keywords and downloads the product data.  2 issues (the rest of the response fields can be output on the browser or written to file successfully)  &#8211; </p>
<p>1) The buyURL is returning as blank &#8211; is this a known CJ issue, or is something wrong in my script?  I cannot sell these products without this parameter, so how do i get it if CJ is not populating it?<br />
2) Do i need to do a utf8_decode on URLs (which may have special characters such as /, :, &#038;, ?, .) before i can write it to a file or display it on the browser?</p>
<p>thanks<br />
kiran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.money-code.com/2008/01/cj-apiwebservice-version-2/comment-page-1/#comment-26</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-26</guid>
		<description>Hello

This is untested.. but should work. You can take some snippets of code from this tutorial:
http://www.money-code.com/node/23

It uses the nusoap class. You can google for more information on that class. You would need to remove the try/catch handling and use nusoap instead of using PHP5&#039;s built in SOAP object. You might have to tweak with nusoap a bit, but overall it should just &#039;work&#039;.

Hope this helps.
hanji</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>This is untested.. but should work. You can take some snippets of code from this tutorial:<br />
<a href="http://www.money-code.com/node/23" rel="nofollow">http://www.money-code.com/node/23</a></p>
<p>It uses the nusoap class. You can google for more information on that class. You would need to remove the try/catch handling and use nusoap instead of using PHP5&#8242;s built in SOAP object. You might have to tweak with nusoap a bit, but overall it should just &#8216;work&#8217;.</p>
<p>Hope this helps.<br />
hanji</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeremy</title>
		<link>http://www.money-code.com/2008/01/cj-apiwebservice-version-2/comment-page-1/#comment-27</link>
		<dc:creator>jeremy</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-27</guid>
		<description>Does this list products based on keywords?  What exactly does it do?</description>
		<content:encoded><![CDATA[<p>Does this list products based on keywords?  What exactly does it do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.money-code.com/2008/01/cj-apiwebservice-version-2/comment-page-1/#comment-28</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-28</guid>
		<description>Yes, this will return products from CJ based off of keywords AND advertisers.</description>
		<content:encoded><![CDATA[<p>Yes, this will return products from CJ based off of keywords AND advertisers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hans</title>
		<link>http://www.money-code.com/2008/01/cj-apiwebservice-version-2/comment-page-1/#comment-29</link>
		<dc:creator>hans</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-29</guid>
		<description>How to build it in php4?
Can you tell me?</description>
		<content:encoded><![CDATA[<p>How to build it in php4?<br />
Can you tell me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hans</title>
		<link>http://www.money-code.com/2008/01/cj-apiwebservice-version-2/comment-page-1/#comment-36</link>
		<dc:creator>hans</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-36</guid>
		<description>Right now my hosting use php5,
I have already used  your code above but get error :

Fatal error: Class &#039;SoapClient&#039; not found in /home/airbase/public_html/trycj.php on line 4

What wrong with that?

Thanks for your help.

Hans</description>
		<content:encoded><![CDATA[<p>Right now my hosting use php5,<br />
I have already used  your code above but get error :</p>
<p>Fatal error: Class &#8216;SoapClient&#8217; not found in /home/airbase/public_html/trycj.php on line 4</p>
<p>What wrong with that?</p>
<p>Thanks for your help.</p>
<p>Hans</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.money-code.com/2008/01/cj-apiwebservice-version-2/comment-page-1/#comment-37</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-37</guid>
		<description>&lt;p&gt;That&#039;s a bummer. It looks like your hosting provider does not have PHP5 built with SOAP. You can verify this by creating a test script to get phpinfo()...&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
&lt;?php
phpinfo();
?&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You need to have --enable-soap listed in the Configure Command block at the top. You might be able to request this, but it would involve recompiling PHP on the server. Here is a link about PHP/SOAP:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://us2.php.net/manual/en/ref.soap.php&quot; target=&quot;_blank&quot;&gt;http://us2.php.net/manual/en/ref.soap.php&lt;/a&gt;&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>That&#8217;s a bummer. It looks like your hosting provider does not have PHP5 built with SOAP. You can verify this by creating a test script to get phpinfo()&#8230;</p>
<p><code><br />
< ?php<br />
phpinfo();<br />
?><br />
</code></p>
<p>You need to have &#8211;enable-soap listed in the Configure Command block at the top. You might be able to request this, but it would involve recompiling PHP on the server. Here is a link about PHP/SOAP:</p>
<p><a href="http://us2.php.net/manual/en/ref.soap.php" target="_blank">http://us2.php.net/manual/en/ref.soap.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.money-code.com/2008/01/cj-apiwebservice-version-2/comment-page-1/#comment-47</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-47</guid>
		<description>Warning: Invalid argument supplied for foreach()  on line 15. I used your code exactly (of course with my account details). And I used the Porduct search wsdl from CJ.</description>
		<content:encoded><![CDATA[<p>Warning: Invalid argument supplied for foreach()  on line 15. I used your code exactly (of course with my account details). And I used the Porduct search wsdl from CJ.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.money-code.com/2008/01/cj-apiwebservice-version-2/comment-page-1/#comment-48</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-48</guid>
		<description>Looks like the return value for the foreach was NOT an array. I would var_dump() the return from the web service. My example doesn&#039;t have error to catch that. It might be a string returning a error code or statement back from CJ.

hanji</description>
		<content:encoded><![CDATA[<p>Looks like the return value for the foreach was NOT an array. I would var_dump() the return from the web service. My example doesn&#8217;t have error to catch that. It might be a string returning a error code or statement back from CJ.</p>
<p>hanji</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
