[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dolibarr-dev] Interface Dolibarr OSC
From: |
Jean |
Subject: |
[Dolibarr-dev] Interface Dolibarr OSC |
Date: |
Thu, 14 Jun 2007 17:42:21 -1000 |
User-agent: |
Debian Thunderbird 1.0.2 (X11/20070113) |
Modificzation du serveur web services
Les sous-répertoires
/home/jean/projets/dolibarr_devref/dolibarr/htdocs/oscommerce_ws/ws_server/includes
et /home/jean/projets/dolibarr/htdocs/oscommerce_ws/ws_server/includes sont
identiques.
Les sous-répertoires
/home/jean/projets/dolibarr_devref/dolibarr/htdocs/oscommerce_ws/ws_server/lib
et /home/jean/projets/dolibarr/htdocs/oscommerce_ws/ws_server/lib sont
identiques.
diff --exclude=CVS --exclude='.#' --exclude='~' --exclude=documents
/home/jean/projets/dolibarr_devref/dolibarr/htdocs/oscommerce_ws/ws_server/ws_articles.php
/home/jean/projets/dolibarr/htdocs/oscommerce_ws/ws_server/ws_articles.php
26a27,28
> define(OSC_IMG_URL, 'http://www.tiaris.info/catalog/images/'); // url du site
> OSC
>
28a31
> define('OSCIMAGES', '/home/jean/projets/osc_tiaris/images/');
51a55,56
>
>
101c106
< $sql = "SELECT p.products_id, p.products_model,
p.products_quantity, p.products_status, p.products_price, d.products_name,
d.products_description, m.manufacturers_name, m.manufacturers_id";
---
> $sql = "SELECT p.products_id, p.products_model,
> p.products_quantity, p.products_status,
> concat('".OSC_IMG_URL."',p.products_image) as image, p.products_price,
> d.products_name, d.products_description, m.manufacturers_name,
> m.manufacturers_id";
133c138
< $sql = "SELECT p.products_id as OSC_id, p.products_model as model,
p.products_quantity as quantity, p.products_status as status, d.products_name
as name, m.manufacturers_name as manufacturer, m.manufacturers_id";
---
> $sql = "SELECT p.products_id as OSC_id, p.products_model as model,
> p.products_quantity as quantity, p.products_status as status,
> concat('".OSC_IMG_URL."',p.products_image) as image, d.products_name as name,
> m.manufacturers_name as manufacturer, m.manufacturers_id";
156a162,169
> function saveImage($name,$content)
> {
> $fich = fopen(OSCIMAGES.$name, 'wb');
> fwrite($fich,base64_decode($content));
> fclose($fich);
> return $name.' enregistré';
> }
>
Seulement dans /home/jean/projets/dolibarr/htdocs/oscommerce_ws/ws_server:
ws_articles.php~
Seulement dans /home/jean/projets/dolibarr/htdocs/oscommerce_ws/ws_server:
.#ws_articles.php.1.3
Seulement dans /home/jean/projets/dolibarr/htdocs/oscommerce_ws/ws_server:
.#ws_articles.php.1.5
Seulement dans /home/jean/projets/dolibarr/htdocs/oscommerce_ws/ws_server:
.#ws_customers.php.1.2
Seulement dans /home/jean/projets/dolibarr/htdocs/oscommerce_ws/ws_server:
.#ws_orders.php.1.3
diff --exclude=CVS --exclude='.#' --exclude='~' --exclude=documents
/home/jean/projets/dolibarr_devref/dolibarr/htdocs/oscommerce_ws/ws_server/ws_test.php
/home/jean/projets/dolibarr/htdocs/oscommerce_ws/ws_server/ws_test.php
10,11d9
< $s->configureWSDL('WebServicesOSCommerceForDolibarr',$ns);
< $s->wsdl->schemaTargetNamespace=$ns;
13,14c11,26
< // Register a method available for clients
< $s->register('hello');
---
> #$s->configureWSDL('WebServicesOSCommerceForDolibarr',$ns);
> #$s->wsdl->schemaTargetNamespace=$ns;
>
> // Register a method available for clients
> $s->register('hello');
>
> function hello($name){
>
> $returnedString = "Coucou ** de Tetiaroa ".$name." !";
> return $returnedString;
>
> }
>
> // Return the results.
> $s->service($HTTP_RAW_POST_DATA);
> ?>
16,25d27
< function hello($name){
<
< $returnedString = "Hello de Tetiaroa ".$name." !";
< return $returnedString;
<
< }
<
< // Return the results.
< $s->service($HTTP_RAW_POST_DATA);
< ?>
Seulement dans /home/jean/projets/dolibarr/htdocs/oscommerce_ws/ws_server:
ws_test.php~
Seulement dans /home/jean/projets/dolibarr/htdocs/oscommerce_ws/ws_server:
.#ws_test.php.1.2
jean.vcf
Description: Vcard