DocumentService :: DocumentsEnCoursDomaine

The GET method, is used to retrieve data.

The list of necessary parameters for sending a query:
  • string domaine.

The list of parameters is not mandatory to request:

  • int pageNumber,
  • int rowsPerPage.

Returns data as JSON, for use in PHP, you need to convert JSON in StdClass PHP (PHP function: json_decode ()).

Input parameters:

/Vente?pageNumber=1&rowsPerPage=2

Example:

require (__DIR__ . '/service/WebServices100.php');

use services\WebServices100;

$url = 'http://<Your ip>:<Your Port>/WebServices100/<Your environment>/DocumentService/rest/DocumentsEnCoursDomaine/Vente?pageNumber=1&rowsPerPage=2';

// Send requests to receive data
$result = WebServices100::getData($url)));

$response = json_decode($result);

Result:

Array
(
[0] => stdClass Object
(
[__type] => DocumentVente:http://www.proconsult.lu/WebServices100
[TypeDocument] => 1
[Domaine] => 0
[NumeroDocument] => BC00028
[Date] => /Date(1362351600000+0100)/
[Reference] => LOC 03/2013
[NumeroTiers] => DIAMA
[NumeroTiersPayeur] => DIAMA
[Statut] => 2
[Provenance] => 0
[DateLivraison] => /Date(1363129200000+0100)/
[DateLivraisonRealisee] => /Date(-2208992400000+0100)/
[DateExpedition] => /Date(-2208992400000+0100)/
[SectionAnalytique] => 950BIJO
[Contact] =>
[NbFactures] => 1
[NbColis] => 1
[TauxEscompte] => 0
[Langue] => 0
[Donnee1] =>
[Donnee2] =>
[Donnee3] =>
[Donnee4] =>
[EstImprime] =>
[EstTransfere] =>
[EstCloture] =>
[EstReliquat] =>
[IdSouche] => 1
[IdCollaborateur] => 10
[IdDepot] => 1
[IdAdresseLivraison] => 10
[IdModeExpedition] => 1
[IdConditionLivraison] => 1
[IdCategorieComptable] => 1
[IdCategorieTarifaire] => 1
[IdModeleReglement] => 0
[IdDevise] => 0
[CoursDevise] => 0
[FraisExpedition] => 14
[TypeFraisExpedition] => 0
[TypePrixFraisExpedition] => 0
[FrancoDePort] => 4500
[TypeFrancoPort] => 0
[TypePrixFrancoPort] => 0
[ExpeditionCodeTaxe1] => C19
[ExpeditionCodeTaxe2] =>
[ExpeditionCodeTaxe3] =>
[ExpeditionTaux1] => 0
[ExpeditionTaux2] => 0
[ExpeditionTaux3] => 0
[InfosLibres] => Array
(
[0] => stdClass Object
(
[Name] => Commentaires
[Type] => 0
[Size] => 69
[EstCalculee] =>
[Value] => AA - AA - AA -
)
[1] => stdClass Object
(
[Name] => Divers
[Type] => 0
[Size] => 69
[EstCalculee] =>
[Value] => AA - AA - AA -
)
[2] => stdClass Object
(
[Name] => TestTableEntete
[Type] => 0
[Size] => 21
[EstCalculee] =>
[Value] => AA - AA - AA -
)
[3] => stdClass Object
(
[Name] => testDate
[Type] => 1
[Size] => 0
[EstCalculee] =>
[Value] => /Date(1521932400000+0100)/
)
[4] => stdClass Object
(
[Name] => testDecimal
[Type] => 3
[Size] => 0
[EstCalculee] =>
[Value] => 4
)
)
[Createur] => COLU
[DateModification] => /Date(1522842540000+0200)/
)
[1] => stdClass Object
(
[__type] => DocumentVente:http://www.proconsult.lu/WebServices100
[TypeDocument] => 1
[Domaine] => 0
[NumeroDocument] => BC00005
[Date] => /Date(1357340400000+0100)/
[Reference] => CDE77/LIV 02/2013
[NumeroTiers] => CISEL
[NumeroTiersPayeur] => CISEL
[Statut] => 2
[Provenance] => 0
[DateLivraison] => /Date(1360796400000+0100)/
[DateLivraisonRealisee] => /Date(-2208992400000+0100)/
[DateExpedition] => /Date(-2208992400000+0100)/
[SectionAnalytique] => 953INDE
[Contact] =>
[NbFactures] => 1
[NbColis] => 1
[TauxEscompte] => 0
[Langue] => 0
[Donnee1] =>
[Donnee2] =>
[Donnee3] =>
[Donnee4] =>
[EstImprime] =>
[EstTransfere] =>
[EstCloture] =>
[EstReliquat] =>
[IdSouche] => 1
[IdCollaborateur] => 6
[IdDepot] => 1
[IdAdresseLivraison] => 5
[IdModeExpedition] => 1
[IdConditionLivraison] => 1
[IdCategorieComptable] => 1
[IdCategorieTarifaire] => 1
[IdModeleReglement] => 0
[IdDevise] => 0
[CoursDevise] => 0
[FraisExpedition] => 15
[TypeFraisExpedition] => 0
[TypePrixFraisExpedition] => 0
[FrancoDePort] => 2500
[TypeFrancoPort] => 0
[TypePrixFrancoPort] => 0
[ExpeditionCodeTaxe1] => C19
[ExpeditionCodeTaxe2] =>
[ExpeditionCodeTaxe3] =>
[ExpeditionTaux1] => 19.6
[ExpeditionTaux2] => 0
[ExpeditionTaux3] => 0
[InfosLibres] => Array
(
[0] => stdClass Object
(
[Name] => Commentaires
[Type] => 0
[Size] => 69
[EstCalculee] =>
[Value] =>
)
[1] => stdClass Object
(
[Name] => Divers
[Type] => 0
[Size] => 69
[EstCalculee] =>
[Value] =>
)
[2] => stdClass Object
(
[Name] => TestTableEntete
[Type] => 0
[Size] => 21
[EstCalculee] =>
[Value] =>
)
[3] => stdClass Object
(
[Name] => testDate
[Type] => 1
[Size] => 0
[EstCalculee] =>
[Value] =>
)
[4] => stdClass Object
(
[Name] => testDecimal
[Type] => 3
[Size] => 0
[EstCalculee] =>
[Value] =>
)
)
[Createur] => COLU
[DateModification] => /Date(1524155520000+0200)/
)
)