PC Review


Reply
Thread Tools Rate Thread

Commission Junction SOAP access Error

 
 
jatrojoomla
Guest
Posts: n/a
 
      29th Sep 2007
Hi!
Is there any one with knowledge of CJ [Commission Junction] API
development
I am getting error like:
http://fb.aafter.com/cj/testb/support.php
during Commission Junction SOAP access

Commission Junction:
http://cj.com/
http://webservices.cj.com/

Code is:
<body>
<center>
<h2>Commission Junction Demo Product Search</h2>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>"
method="get">
<p><label for="keywords">Search for </label>
<input type="text" name="keywords" value="<?php echo
$_GET['keywords'] ?>" >
<input type="submit" value="Continue &rarr;" /></p>

</form>

</center>
<hr>

<?php

try {
$ini = ini_set("soap.wsdl_cache_enabled","0");
$client = new SoapClient('https://linksearch.api.cj.com/wsdl/version2/
productSearchServiceV2.wsdl', array('trace'=> true));
$results = $client->search(
$developerKey = 'developer_key /
developer_password',
$locale = 'EN'
);

} catch (Exception $e){

echo "<div id='error'><p>There was an error
with your request or the service is unavailable.</p></div>";

}

?>

</body>
</html>

 
Reply With Quote
 
 
 
 
Jon Spivey
Guest
Posts: n/a
 
      30th Sep 2007
Hi,
Can't help with php as I use asp.net but on first look it looks like you're
not passing in enough params to the product search. If you don't want to use
any param enter it as an empty string. Also you don't need a password just a
dev key you also need a web site id. It seams your url to the wsdl is wrong,
they've changed recently and now all start with http://product.ap1.cj.com eg
the productsearchservice is at
https://product.api.cj.com/wsdl/vers...ServiceV2.wsdl

Just to show you this does actually work here's a 2 second page doing what I
think you want to do.
http://www.nisusnewmedia.com/cjprodu...chservice.aspx

Cheers,
Jon


"jatrojoomla" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi!
> Is there any one with knowledge of CJ [Commission Junction] API
> development
> I am getting error like:
> http://fb.aafter.com/cj/testb/support.php
> during Commission Junction SOAP access
>
> Commission Junction:
> http://cj.com/
> http://webservices.cj.com/
>
> Code is:
> <body>
> <center>
> <h2>Commission Junction Demo Product Search</h2>
> <form action="<?php echo $_SERVER['PHP_SELF'] ?>"
> method="get">
> <p><label for="keywords">Search for </label>
> <input type="text" name="keywords" value="<?php echo
> $_GET['keywords'] ?>" >
> <input type="submit" value="Continue &rarr;" /></p>
>
> </form>
>
> </center>
> <hr>
>
> <?php
>
> try {
> $ini = ini_set("soap.wsdl_cache_enabled","0");
> $client = new SoapClient('https://linksearch.api.cj.com/wsdl/version2/
> productSearchServiceV2.wsdl', array('trace'=> true));
> $results = $client->search(
> $developerKey = 'developer_key /
> developer_password',
> $locale = 'EN'
> );
>
> } catch (Exception $e){
>
> echo "<div id='error'><p>There was an error
> with your request or the service is unavailable.</p></div>";
>
> }
>
> ?>
>
> </body>
> </html>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Adsense Alternative - Commission Junction Alternative -ClickBank Alternative William9999 Windows XP Performance 0 2nd Nov 2010 09:02 AM
Google Adsense Alternative - Commission Junction Alternative -ClickBank Alternative William9999 Windows XP Performance 0 2nd Nov 2010 09:01 AM
Difference between Junction & Hardlink or Junction & Symlink? =?Utf-8?B?R3JhbnQ=?= Windows Vista General Discussion 6 16th Jul 2006 11:17 PM
calculate commission $ based on total sold and commission percent =?Utf-8?B?YmxvbmRlaW5kZW52ZXI=?= Microsoft Excel Programming 1 6th Jul 2005 02:09 AM
got <faulterror>soap:client<faulterror> while using soap toolkit to access C# web service hapordigi@gmail.com Microsoft VC .NET 0 24th Apr 2005 10:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:42 PM.