Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I send php code through VFP
Message
From
13/05/2011 15:33:10
 
 
To
13/05/2011 15:13:48
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01510625
Message ID:
01510636
Views:
78
Honestly? Not a F**king clue. here is the example for the API I am trying to use.
$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy->login('apiUser', 'apiKey');
 
$newImage = array(
    'file' => array(
        'name' => 'file_name',
        'content' => base64_encode(file_get_contents('product.jpg')),
        'mime'    => 'image/jpeg'
    ),
    'label'    => 'Cool Image Through Soap',
    'position' => 2,
    'types'    => array('small_image'),
    'exclude'  => 0
);
 
$imageFilename = $proxy->call($sessionId, 'product_media.create', array('Sku', $newImage));
There is just too much 'new' for me in there to get a handle on it.
>Can't you pass the values as XML?
>
>>>I don't think so. You need to use their web service.
>>>
>>>>Okay since the other threads went nowhere, NEW IDEA.
>>>>
>>>>Is it possible (and how)to send php code to a webserver through VFP? And i guess I should also ask about passing variable data through that as well.
>>
>>But in order to do that I need to pass a nested array and VFP doesn't do THAT either.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform