Fix web service category

This commit is contained in:
Florian HENRY 2014-09-26 16:18:32 +02:00
parent 249d37a093
commit 96c5771718
2 changed files with 34 additions and 48 deletions

View File

@ -21,6 +21,7 @@ For users:
- Fix: cents for indian ruppes are calle paisa and paise. - Fix: cents for indian ruppes are calle paisa and paise.
- Fix: Invoices payments may be older than invoices. - Fix: Invoices payments may be older than invoices.
- Fix: [ bug #1593 ] Spanish Localtax IRPF not being calculated since 3.6.0 in supplier invoices when adding a line - Fix: [ bug #1593 ] Spanish Localtax IRPF not being calculated since 3.6.0 in supplier invoices when adding a line
- Fix: Web service categorie WDSL declaration is correct
***** ChangeLog for 3.6 compared to 3.5.* ***** ***** ChangeLog for 3.6 compared to 3.5.* *****
For users: For users:

View File

@ -106,56 +106,41 @@ $server->wsdl->addComplexType(
'tns:categorie' 'tns:categorie'
); );
/* /*
* Tableau des catégories * Image of product
$server->wsdl->addComplexType(
'categories',
'complexType',
'array',
'',
'SOAP-ENC:Array',
array(),
array(
array('id'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:categorie[]')
),
'tns:categories'
);
*/ */
$server->wsdl->addComplexType(
/* 'PhotosArray',
* Les photos de la catégorie (un tableau indéxé qui contient les images avec leur vignette) 'complexType',
'array',
'sequence',
'',
array(
'image' => array(
'name' => 'image',
'type' => 'tns:image',
'minOccurs' => '0',
'maxOccurs' => 'unbounded'
)
)
);
/*
* An image
*/ */
$server->wsdl->addComplexType( $server->wsdl->addComplexType(
'PhotosArray', 'image',
'complexType', 'complexType',
'array', 'struct',
'', 'all',
'SOAP-ENC:Array', '',
array(), array(
array( 'photo' => array('name'=>'photo','type'=>'xsd:string'),
array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:image[]') 'photo_vignette' => array('name'=>'photo_vignette','type'=>'xsd:string'),
), 'imgWidth' => array('name'=>'imgWidth','type'=>'xsd:string'),
'' 'imgHeight' => array('name'=>'imgHeight','type'=>'xsd:string')
); )
);
/*
* Une photo ( nom image / nom_vignette )
*/
$server->wsdl->addComplexType(
'image',
'complexType',
'array',
'',
'SOAP-ENC:Array',
array(),
array(
'photo' => array('name'=>'photo','type'=>'xsd:string'),
'photo_vignette' => array('name'=>'photo_vignette','type'=>'xsd:string'),
'imgWidth' => array('name'=>'imgWidth','type'=>'xsd:string'),
'imgHeight' => array('name'=>'imgHeight','type'=>'xsd:string')
)
);
/* /*
* Retour * Retour