Magento Forum

   
SOAP v2 API - Internal Server Error
 
samhuckaby
Jr. Member
 
Total Posts:  8
Joined:  2012-08-13
 

Good Morning/Afternoon All,

I have recently run up against an interesting problem. I believe that it may be a permissions problem, but I can’t seem to figure out where. I’ve been through the guides and have my folders set to 755 and files set to 644 etc etc.

My problem is this, when I run functions from PHP through the magento SOAP v2 API, they work correctly, except for the catalogProductList function. It’s pretty odd really, I’ve tested out a few other methods including catalogProductInfo and they return information as they’re supposed to, however when I make a call to catalogProductList i am returned an “Internal Server Error”. below is the code I’m running:

$client = new SoapClient('http://www.#######.net/api/v2_soap/?wsdl');
    
$session $client->login('#######''#######');

    
$result $client->catalogProductList($session);
    
var_dump($result);

Really all I want is a list of every product in the store. (My original goal had been to get every SKU that started with ‘FRA’ but I’ve pretty much given up on that. haha)

Thanks and Best Regards,
Sam

 
Magento Community Magento Community
Magento Community
Magento Community
 
samhuckaby
Jr. Member
 
Total Posts:  8
Joined:  2012-08-13
 

Also, It’s worth noting that I’m running Magento 1.7.0.2

 
Magento Community Magento Community
Magento Community
Magento Community
 
shawng
Jr. Member
 
Total Posts:  5
Joined:  2009-03-12
 

You may find this usefull/

I done some stuff like this a long time ago in .net but that was years ago..

You should check out Oath now… its looking like the way to go..
http://www.aschroder.com/2012/04/introduction-to-the-magento-rest-apis-with-oauth-in-version-1-7/

Hopefully that helps.

 
Magento Community Magento Community
Magento Community
Magento Community
 
samhuckaby
Jr. Member
 
Total Posts:  8
Joined:  2012-08-13
 

Thanks a lot! It does look like a much more useful way of approaching the issue. I’m having problems setting up users correctly, but I’m sure I’ll figure it out, and once I do, I’ll try to remember to come back and post it here.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top