Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I send php code through VFP
Message
De
13/05/2011 16:36:37
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
13/05/2011 15:33:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01510625
Message ID:
01510641
Vues:
72
That is not the API that is directions on how to call the soap API using PHP. Have you tried using the SOAP wizard built into VFP? I have not use soap myself but maybe if you ask for soap help someone here my give you some ideas.

>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform