Cette page vous donne les différences entre la révision choisie et la version actuelle de la page.
hub_recherche:examples_soap [2012/05/04 10:55] Accelya |
hub_recherche:examples_soap [2018/04/23 11:22] (version actuelle) |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== API de Recherche : SOAP (xml) ====== | ====== API de Recherche : SOAP (xml) ====== | ||
+ | ===== URL WSDL ===== | ||
+ | Pour connaître la dernière version en cours et l'adresse des services [[hub_recherche:start|cliquer ici]] | ||
===== Authentification ===== | ===== Authentification ===== | ||
Ligne 116: | Ligne 118: | ||
<def:sortOrder>DESCENDING</def:sortOrder> | <def:sortOrder>DESCENDING</def:sortOrder> | ||
</def:pagination> | </def:pagination> | ||
+ | <!--You have a CHOICE of the next 2 items at this level--> | ||
+ | <def:advancedSearch> | ||
+ | <def:title>WAYLANDER</def:title> | ||
+ | <def:publisher>Bragelonne</def:publisher> | ||
+ | </def:advancedSearch> | ||
+ | <def:includeNotice>false</def:includeNotice> | ||
+ | </def:SearchRequest> | ||
+ | </soapenv:Body> | ||
+ | </soapenv:Envelope> | ||
+ | </code> | ||
+ | |||
+ | ====== API de Recherche : SOAP (xml) ====== | ||
+ | |||
+ | |||
+ | ===== Authentification ===== | ||
+ | |||
+ | <code xml> | ||
+ | <xxxxRequest> | ||
+ | <glnReseller>3026900001000</glnReseller> | ||
+ | <passwordReseller>3x59ftmdmdEds</passwordReseller> | ||
+ | ... | ||
+ | </xxxxRequest> | ||
+ | </code> | ||
+ | |||
+ | |||
+ | |||
+ | ===== Gestion des erreurs et codes de retour ===== | ||
+ | <code xml> | ||
+ | <xxxxResponse> | ||
+ | <returnStatus>AUTHENTICATION_ERROR</returnStatus> | ||
+ | <returnMessage>Bad credentials</returnMessage > | ||
+ | </xxxxResponse> | ||
+ | </code> | ||
+ | |||
+ | ===== Recherche rapide ===== | ||
+ | ==== Requête ==== | ||
+ | <code xml> | ||
+ | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:def="http://hub.dilicom.net/definitions/"> | ||
+ | <soapenv:Header/> | ||
+ | <soapenv:Body> | ||
+ | <def:SearchRequest> | ||
+ | <def:glnReseller>3025594195700</def:glnReseller> | ||
+ | <def:passwordReseller>xxxxxxx</def:passwordReseller> | ||
+ | <def:pagination> | ||
+ | <def:nbResultsPerPage>15</def:nbResultsPerPage> | ||
+ | <def:currentPage>1</def:currentPage> | ||
+ | <def:sortBy>RELEVANCE</def:sortBy> | ||
+ | <def:sortOrder>DESCENDING</def:sortOrder> | ||
+ | </def:pagination> | ||
+ | <def:catalog>HUB</def:catalog> | ||
+ | <def:catalog>PNB</def:catalog> | ||
+ | <def:quickSearch>waylander</def:quickSearch> | ||
+ | <def:includeNotice>true</def:includeNotice> | ||
+ | </def:SearchRequest> | ||
+ | </soapenv:Body> | ||
+ | </soapenv:Envelope> | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ==== Réponse ==== | ||
+ | <code xml> | ||
+ | <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> | ||
+ | <SOAP-ENV:Header/> | ||
+ | <SOAP-ENV:Body> | ||
+ | <SearchResponse xmlns="http://hub.dilicom.net/definitions/"> | ||
+ | <paginationRs> | ||
+ | <nbResultsPerPage>15</nbResultsPerPage> | ||
+ | <currentPage>1</currentPage> | ||
+ | <sortBy>RELEVANCE</sortBy> | ||
+ | <sortOrder>DESCENDING</sortOrder> | ||
+ | <nbFoundResults>6</nbFoundResults> | ||
+ | <nbSentResults>6</nbSentResults> | ||
+ | </paginationRs> | ||
+ | <returnStatus>OK</returnStatus> | ||
+ | <detailNotice> | ||
+ | <ean13>9782820500014</ean13> | ||
+ | <glnDistributor>3012410001000</glnDistributor> | ||
+ | <supplierName>IMMATERIEL.FR</supplierName> | ||
+ | <onixProduct><![CDATA[<Product> ....]]></onixProduct> | ||
+ | <type>HUB</type> | ||
+ | </detailNotice> | ||
+ | <detailNotice> | ||
+ | <ean13>9781405512008</ean13> | ||
+ | <glnDistributor>3019000052909</glnDistributor> | ||
+ | <supplierName>OLF NUMERIQUE</supplierName> | ||
+ | <onixProduct><![CDATA[<Product> ....]]></onixProduct> | ||
+ | <type>HUB</type> | ||
+ | </detailNotice> | ||
+ | <detailNotice> | ||
+ | <ean13>9780307797506</ean13> | ||
+ | <glnDistributor>3019000052909</glnDistributor> | ||
+ | <supplierName>OLF NUMERIQUE</supplierName> | ||
+ | <onixProduct><![CDATA[<Product> ....]]></onixProduct> | ||
+ | <type>HUB</type> | ||
+ | </detailNotice> | ||
+ | <detailNotice> | ||
+ | <ean13>9781405512022</ean13> | ||
+ | <glnDistributor>3019000052909</glnDistributor> | ||
+ | <supplierName>OLF NUMERIQUE</supplierName> | ||
+ | <onixProduct><![CDATA[<Product> ....]]></onixProduct> | ||
+ | <type>HUB</type> | ||
+ | </detailNotice> | ||
+ | <detailNotice> | ||
+ | <ean13>9782820501196</ean13> | ||
+ | <glnDistributor>3012410001000</glnDistributor> | ||
+ | <supplierName>IMMATERIEL.FR</supplierName> | ||
+ | <onixProduct><![CDATA[<Product> ....]]></onixProduct> | ||
+ | <type>HUB</type> | ||
+ | </detailNotice> | ||
+ | <detailNotice> | ||
+ | <ean13>9780307797575</ean13> | ||
+ | <glnDistributor>3019000052909</glnDistributor> | ||
+ | <supplierName>OLF NUMERIQUE</supplierName> | ||
+ | <onixProduct><![CDATA[<Product> ....]]></onixProduct> | ||
+ | <type>HUB</type> | ||
+ | </detailNotice> | ||
+ | </SearchResponse> | ||
+ | </SOAP-ENV:Body> | ||
+ | </SOAP-ENV:Envelope> | ||
+ | </code> | ||
+ | |||
+ | ===== Recherche avancée ===== | ||
+ | ==== Requête ==== | ||
+ | <code xml> | ||
+ | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:def="http://hub.dilicom.net/definitions/"> | ||
+ | <soapenv:Header/> | ||
+ | <soapenv:Body> | ||
+ | <def:SearchRequest> | ||
+ | <def:glnReseller>3025594195700</def:glnReseller> | ||
+ | <def:passwordReseller>xxx</def:passwordReseller> | ||
+ | <def:pagination> | ||
+ | <def:nbResultsPerPage>15</def:nbResultsPerPage> | ||
+ | <def:currentPage>1</def:currentPage> | ||
+ | <def:sortBy>RELEVANCE</def:sortBy> | ||
+ | <def:sortOrder>DESCENDING</def:sortOrder> | ||
+ | </def:pagination> | ||
+ | <def:catalog>HUB</def:catalog> | ||
<!--You have a CHOICE of the next 2 items at this level--> | <!--You have a CHOICE of the next 2 items at this level--> | ||
<def:advancedSearch> | <def:advancedSearch> | ||
Ligne 146: | Ligne 285: | ||
<glnDistributor>3012410001000</glnDistributor> | <glnDistributor>3012410001000</glnDistributor> | ||
<supplierName>IMMATERIEL.FR</supplierName> | <supplierName>IMMATERIEL.FR</supplierName> | ||
+ | <type>HUB</type> | ||
</detailNotice> | </detailNotice> | ||
<detailNotice> | <detailNotice> | ||
Ligne 151: | Ligne 291: | ||
<glnDistributor>3012410001000</glnDistributor> | <glnDistributor>3012410001000</glnDistributor> | ||
<supplierName>IMMATERIEL.FR</supplierName> | <supplierName>IMMATERIEL.FR</supplierName> | ||
+ | <type>HUB</type> | ||
</detailNotice> | </detailNotice> | ||
</SearchResponse> | </SearchResponse> |