Cette page vous donne les différences entre la révision choisie et la version actuelle de la page.
hub_principal:examples_soap [2013/11/04 10:38] Dilicom |
hub_principal:examples_soap [2018/04/23 11:22] (version actuelle) |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== API Principale : SOAP (xml) ====== | ====== API Principale : SOAP (xml) ====== | ||
+ | ===== URL WSDL ===== | ||
+ | Pour connaître la dernière version en cours et l'adresse des services [[hub_principal:start|cliquer ici ]] | ||
===== Authentification ===== | ===== Authentification ===== | ||
Ligne 22: | Ligne 24: | ||
</code> | </code> | ||
+ | |||
+ | |||
+ | |||
+ | ===== Vérification des disponibilités : checkAvailability() ===== | ||
+ | ==== Interrogation du web service ==== | ||
+ | <code xml> | ||
+ | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:def="http://hub.dilicom.net/definitions/"> | ||
+ | <soapenv:Header/> | ||
+ | <soapenv:Body> | ||
+ | <def:CheckAvailabilityRequest> | ||
+ | <def:glnReseller>3026900001000</def:glnReseller> | ||
+ | <def:passwordReseller>3x59ftmdmpc85sdEds</def:passwordReseller> | ||
+ | <def:glnContractor>0000000000000</def:glnContractor> | ||
+ | <def:country>FR</def:country> | ||
+ | <def:checkAvailabilityLine> | ||
+ | <def:ean13>9791093983004</def:ean13> | ||
+ | <def:glnDistributor>3012410001000</def:glnDistributor> | ||
+ | <def:unitPrice>399</def:unitPrice> | ||
+ | </def:checkAvailabilityLine> | ||
+ | <def:checkAvailabilityLine> | ||
+ | <def:ean13>9791093594712</def:ean13> | ||
+ | <def:glnDistributor>3012410002007</def:glnDistributor> | ||
+ | <def:unitPrice>799</def:unitPrice> | ||
+ | <def:unitPriceExcludingTax>450</def:unitPriceExcludingTax> | ||
+ | <def:currency>EUR</def:currency> | ||
+ | </def:checkAvailabilityLine> | ||
+ | </def:CheckAvailabilityRequest> | ||
+ | </soapenv:Body> | ||
+ | </soapenv:Envelope> | ||
+ | </code> | ||
+ | |||
+ | ==== Réponse du web service ==== | ||
+ | <code xml> | ||
+ | <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> | ||
+ | <SOAP-ENV:Header/> | ||
+ | <SOAP-ENV:Body> | ||
+ | <CheckAvailabilityResponse xmlns="http://hub.dilicom.net/definitions/"> | ||
+ | <checkAvailabilityResponseLine> | ||
+ | <ean13>9791093594712</ean13> | ||
+ | <glnDistributor>3012410002007</glnDistributor> | ||
+ | <checkAvailabilityReturnValue>AVAILABLE</checkAvailabilityReturnValue> | ||
+ | <returnStatus>OK</returnStatus> | ||
+ | </checkAvailabilityResponseLine> | ||
+ | <checkAvailabilityResponseLine> | ||
+ | <ean13>9791093983004</ean13> | ||
+ | <glnDistributor>3012410001000</glnDistributor> | ||
+ | <checkAvailabilityReturnValue>AVAILABLE</checkAvailabilityReturnValue> | ||
+ | <returnStatus>OK</returnStatus> | ||
+ | </checkAvailabilityResponseLine> | ||
+ | <returnStatus>OK</returnStatus> | ||
+ | </CheckAvailabilityResponse> | ||
+ | </SOAP-ENV:Body> | ||
+ | </SOAP-ENV:Envelope> | ||
+ | </code> | ||
+ | |||
+ | ===== Passage de commandes : sendOrder() ===== | ||
+ | ==== Interrogation du web service ==== | ||
+ | <code xml> | ||
+ | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:def="http://hub.dilicom.net/definitions/"> | ||
+ | <soapenv:Header/> | ||
+ | <soapenv:Body> | ||
+ | <def:SendOrderRequest> | ||
+ | <def:glnReseller>3026900001000</def:glnReseller> | ||
+ | <def:passwordReseller>3x59ftmdmdEds</def:passwordReseller> | ||
+ | <def:orderId>ORDER0001</def:orderId> | ||
+ | <def:glnGroup>0000000000000</def:glnGroup> | ||
+ | <def:glnContractor>000000000000</def:glnContractor> | ||
+ | <def:customerId>test0001</def:customerId> | ||
+ | |||
+ | <def:finalBookOwner> | ||
+ | <def:identifier>ident0002</def:identifier> | ||
+ | <def:civility>M</def:civility> | ||
+ | <def:firstName>TestFirstName</def:firstName> | ||
+ | <def:lastName>TestLastName</def:lastName> | ||
+ | <def:email>test@unknown.com</def:email> | ||
+ | <def:country>FR</def:country> | ||
+ | <def:postalCode>92000</def:postalCode> | ||
+ | <def:city>NANTERRE</def:city> | ||
+ | </def:finalBookOwner> | ||
+ | |||
+ | <def:orderRequestLine> | ||
+ | <def:ean13>9791093594712</def:ean13> | ||
+ | <def:glnDistributor>3012410002007</def:glnDistributor> | ||
+ | <def:unitPrice>799</def:unitPrice> | ||
+ | <def:unitPriceExcludingTax>450</def:unitPriceExcludingTax> | ||
+ | <def:currency>EUR</def:currency> | ||
+ | <def:quantity>1</def:quantity> | ||
+ | <def:lineReference>testRefLine1</def:lineReference> | ||
+ | </def:orderRequestLine> | ||
+ | |||
+ | <def:orderRequestLine> | ||
+ | <def:ean13>9791093983004</def:ean13> | ||
+ | <def:glnDistributor>3012410001000</def:glnDistributor> | ||
+ | <def:unitPrice>99</def:unitPrice> | ||
+ | <def:quantity>1</def:quantity> | ||
+ | <def:lineReference>testRefLine1</def:lineReference> | ||
+ | <def:specialCode>testSpecialCode</def:specialCode> | ||
+ | </def:orderRequestLine> | ||
+ | |||
+ | </def:SendOrderRequest> | ||
+ | </soapenv:Body> | ||
+ | </soapenv:Envelope> | ||
+ | </code> | ||
+ | |||
+ | ==== Réponse du web service ==== | ||
+ | <code xml> | ||
+ | <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> | ||
+ | <SOAP-ENV:Header/> | ||
+ | <SOAP-ENV:Body> | ||
+ | <SendOrderResponse xmlns="http://hub.dilicom.net/definitions/"> | ||
+ | <orderId>ORDER0001</orderId> | ||
+ | <orderLine> | ||
+ | <ean13>9791093594712</ean13> | ||
+ | <glnDistributor>3012410002007</glnDistributor> | ||
+ | <orderLineId>26094</orderLineId> | ||
+ | <lineReference>testRefLine1</lineReference> | ||
+ | <currency>EUR</currency> | ||
+ | <link> | ||
+ | <url>https://hub-dilicom.centprod.com/v3//link/3026900001000/ORDER0001/9791093594712-3012410002007/26094-20742-N94Q2N95PRKKWF8Y95DT04IIA9TSEZKG.do</url> | ||
+ | <format>E101</format> | ||
+ | <formatDescription>EPUB</formatDescription> | ||
+ | <ean13>9791093594712</ean13> | ||
+ | <mimetype>application/epub+zip</mimetype> | ||
+ | </link> | ||
+ | <returnStatus>OK</returnStatus> | ||
+ | </orderLine> | ||
+ | <orderLine> | ||
+ | <ean13>9791093983004</ean13> | ||
+ | <glnDistributor>3012410001000</glnDistributor> | ||
+ | <orderLineId>26095</orderLineId> | ||
+ | <lineReference>testRefLine1</lineReference> | ||
+ | <link> | ||
+ | <url>https://hub-dilicom.centprod.com/v3//link/3026900001000/ORDER0001/9791093983004-3012410001000/26095-17393-5D5SXBND79ZRSWVQNM13LRPMX9L6KEW4.do</url> | ||
+ | <format>E105</format> | ||
+ | <formatDescription>HTML</formatDescription> | ||
+ | <ean13>3612220747466</ean13> | ||
+ | <mimetype>text/html</mimetype> | ||
+ | </link> | ||
+ | <link> | ||
+ | <url>https://hub-dilicom.centprod.com/v3//link/3026900001000/ORDER0001/9791093983004-3012410001000/26095-17394-5D5SXBND79ZRSWVQNM13LRPMX9L6KEW4.do</url> | ||
+ | <format>E127</format> | ||
+ | <formatDescription>Mobipocket</formatDescription> | ||
+ | <ean13>3612220747442</ean13> | ||
+ | <mimetype>application/x-mobipocket-ebook</mimetype> | ||
+ | </link> | ||
+ | <link> | ||
+ | <url>https://hub-dilicom.centprod.com/v3//link/3026900001000/ORDER0001/9791093983004-3012410001000/26095-17395-5D5SXBND79ZRSWVQNM13LRPMX9L6KEW4.do</url> | ||
+ | <format>E101</format> | ||
+ | <formatDescription>EPUB</formatDescription> | ||
+ | <ean13>3612220747459</ean13> | ||
+ | <mimetype>application/epub+zip</mimetype> | ||
+ | </link> | ||
+ | <returnStatus>OK</returnStatus> | ||
+ | </orderLine> | ||
+ | |||
+ | <returnStatus>OK</returnStatus> | ||
+ | </SendOrderResponse> | ||
+ | </SOAP-ENV:Body> | ||
+ | </SOAP-ENV:Envelope> | ||
+ | </code> | ||
+ | |||
+ | ===== Annulation d'une commande : cancelOrder() ===== | ||
+ | ==== Interrogation du web service ==== | ||
+ | <code xml> | ||
+ | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:def="http://hub.dilicom.net/definitions/"> | ||
+ | <soapenv:Header/> | ||
+ | <soapenv:Body> | ||
+ | <def:CancelOrderRequest> | ||
+ | |||
+ | <def:glnReseller>3026900001000</def:glnReseller> | ||
+ | <def:passwordReseller>3x59ftmdmpc85sdEds</def:passwordReseller> | ||
+ | <def:glnContractor>0000000000000</def:glnContractor> | ||
+ | <def:orderId>ORDER0001</def:orderId> | ||
+ | <def:reason>test</def:reason> | ||
+ | <def:cancelOrderLine> | ||
+ | <def:ean13>9791093983004</def:ean13> | ||
+ | <def:glnDistributor>3012410001000</def:glnDistributor> | ||
+ | </def:cancelOrderLine> | ||
+ | </def:CancelOrderRequest> | ||
+ | </soapenv:Body> | ||
+ | </soapenv:Envelope> | ||
+ | </code> | ||
+ | |||
+ | ==== Réponse du web service ==== | ||
+ | <code xml> | ||
+ | <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> | ||
+ | <SOAP-ENV:Header/> | ||
+ | <SOAP-ENV:Body> | ||
+ | <CancelOrderResponse xmlns="http://hub.dilicom.net/definitions/"> | ||
+ | <orderId>ORDER0001</orderId> | ||
+ | <cancelOrderResponseLine> | ||
+ | <ean13>9791093983004</ean13> | ||
+ | <glnDistributor>3012410001000</glnDistributor> | ||
+ | <returnStatus>CANCELLED</returnStatus> | ||
+ | </cancelOrderResponseLine> | ||
+ | <returnStatus>OK</returnStatus> | ||
+ | </CancelOrderResponse> | ||
+ | </SOAP-ENV:Body> | ||
+ | </SOAP-ENV:Envelope> | ||
+ | </code> | ||
+ | |||
+ | ===== Récupération des détails d'une commande : getOrderDetails() ===== | ||
+ | |||
+ | ==== Interrogation du web service ==== | ||
+ | <code xml> | ||
+ | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:def="http://hub.dilicom.net/definitions/"> | ||
+ | <soapenv:Header/> | ||
+ | <soapenv:Body> | ||
+ | <def:GetOrderDetailRequest> | ||
+ | <def:glnReseller>3026900001000</def:glnReseller> | ||
+ | <def:passwordReseller>3x59ftmdmpc85sdEds</def:passwordReseller> | ||
+ | <def:glnContractor>0000000000000</def:glnContractor> | ||
+ | </def:GetOrderDetailRequest> | ||
+ | </soapenv:Body> | ||
+ | </soapenv:Envelope> | ||
+ | </code> | ||
+ | |||
+ | ==== Réponse du web service ==== | ||
+ | <code xml> | ||
+ | <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> | ||
+ | <SOAP-ENV:Header/> | ||
+ | <SOAP-ENV:Body> | ||
+ | <GetOrderDetailResponse xmlns="http://hub.dilicom.net/definitions/"> | ||
+ | <orderId>ORDER0001</orderId> | ||
+ | <orderLine> | ||
+ | <ean13>9791093594712</ean13> | ||
+ | <glnDistributor>3012410002007</glnDistributor> | ||
+ | <orderLineId>26094</orderLineId> | ||
+ | <lineReference>testRefLine1</lineReference> | ||
+ | <currency>EUR</currency> | ||
+ | <link> | ||
+ | <url>https://hub-dilicom.centprod.com/v3//link/3026900001000/ORDER0001/9791093594712-3012410002007/26094-20742-N94Q2N95PRKKWF8Y95DT04IIA9TSEZKG.do</url> | ||
+ | <format>E101</format> | ||
+ | <formatDescription>EPUB</formatDescription> | ||
+ | <ean13>9791093594712</ean13> | ||
+ | <mimetype>application/epub+zip</mimetype> | ||
+ | </link> | ||
+ | <returnStatus>OK</returnStatus> | ||
+ | </orderLine> | ||
+ | <orderLine> | ||
+ | <ean13>9791093983004</ean13> | ||
+ | <glnDistributor>3012410001000</glnDistributor> | ||
+ | <orderLineId>26095</orderLineId> | ||
+ | <lineReference>testRefLine1</lineReference> | ||
+ | <link> | ||
+ | <url>https://hub-dilicom.centprod.com/v3//link/3026900001000/ORDER0001/9791093983004-3012410001000/26095-17393-5D5SXBND79ZRSWVQNM13LRPMX9L6KEW4.do</url> | ||
+ | <format>E105</format> | ||
+ | <formatDescription>HTML</formatDescription> | ||
+ | <ean13>3612220747466</ean13> | ||
+ | <mimetype>text/html</mimetype> | ||
+ | </link> | ||
+ | <link> | ||
+ | <url>https://hub-dilicom.centprod.com/v3//link/3026900001000/ORDER0001/9791093983004-3012410001000/26095-17394-5D5SXBND79ZRSWVQNM13LRPMX9L6KEW4.do</url> | ||
+ | <format>E127</format> | ||
+ | <formatDescription>Mobipocket</formatDescription> | ||
+ | <ean13>3612220747442</ean13> | ||
+ | <mimetype>application/x-mobipocket-ebook</mimetype> | ||
+ | </link> | ||
+ | <link> | ||
+ | <url>https://hub-dilicom.centprod.com/v3//link/3026900001000/ORDER0001/9791093983004-3012410001000/26095-17395-5D5SXBND79ZRSWVQNM13LRPMX9L6KEW4.do</url> | ||
+ | <format>E101</format> | ||
+ | <formatDescription>EPUB</formatDescription> | ||
+ | <ean13>3612220747459</ean13> | ||
+ | <mimetype>application/epub+zip</mimetype> | ||
+ | </link> | ||
+ | <returnStatus>OK</returnStatus> | ||
+ | </orderLine> | ||
+ | |||
+ | <returnStatus>OK</returnStatus> | ||
+ | </GetOrderDetailResponse> | ||
+ | </SOAP-ENV:Body> | ||
+ | </SOAP-ENV:Envelope> | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ===== Obtention des version numériques associé à des ean physiques : getDigitalVersions() ===== | ||
+ | |||
+ | ==== Interrogation du web service ==== | ||
+ | <code xml> | ||
+ | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:def="http://hub.dilicom.net/definitions/"> | ||
+ | <soapenv:Header/> | ||
+ | <soapenv:Body> | ||
+ | <def:GetDigitalVersionsRequest> | ||
+ | <def:glnReseller>3026900001000</def:glnReseller> | ||
+ | <def:passwordReseller>3x59ftmdmdEds</def:passwordReseller> | ||
+ | <def:glnContractor>0000000000000</def:glnContractor> | ||
+ | <def:physicalEan>9782092524374</def:physicalEan> | ||
+ | <def:physicalEan>9782212120035</def:physicalEan> | ||
+ | </def:GetDigitalVersionsRequest> | ||
+ | </soapenv:Body> | ||
+ | </soapenv:Envelope> | ||
+ | </code> | ||
+ | |||
+ | ==== Réponse du web service ==== | ||
+ | <code xml> | ||
+ | <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> | ||
+ | <SOAP-ENV:Header/> | ||
+ | <SOAP-ENV:Body> | ||
+ | <GetDigitalVersionsResponse xmlns="http://hub.dilicom.net/definitions/"> | ||
+ | <physicalVersion> | ||
+ | <physicalEan>9782092524374</physicalEan> | ||
+ | <digitalVersion> | ||
+ | <ean13>9782092528068</ean13> | ||
+ | <glnDistributor>3012410003004</glnDistributor> | ||
+ | </digitalVersion> | ||
+ | </physicalVersion> | ||
+ | <physicalVersion> | ||
+ | <physicalEan>9782212120035</physicalEan> | ||
+ | <noDigitalVersion/> | ||
+ | </physicalVersion> | ||
+ | <returnStatus>OK</returnStatus> | ||
+ | </GetDigitalVersionsResponse> | ||
+ | </SOAP-ENV:Body> | ||
+ | </SOAP-ENV:Envelope> | ||
+ | </code> | ||
===== Récupération des notices : getNotices() ===== | ===== Récupération des notices : getNotices() ===== | ||
Ligne 38: | Ligne 355: | ||
<def:glnReseller>3026900001000</def:glnReseller> | <def:glnReseller>3026900001000</def:glnReseller> | ||
<def:passwordReseller>3x59ftmdmdEds</def:passwordReseller> | <def:passwordReseller>3x59ftmdmdEds</def:passwordReseller> | ||
+ | <def:glnGroup>0000000000000</def:glnGroup> | ||
+ | <def:glnContractor>30269000010012</def:glnContractor> | ||
<def:initialization /> | <def:initialization /> | ||
</def:GetNoticesRequest> | </def:GetNoticesRequest> | ||
Ligne 52: | Ligne 371: | ||
<def:glnReseller>3026900001000</def:glnReseller> | <def:glnReseller>3026900001000</def:glnReseller> | ||
<def:passwordReseller>3x59ftmdmdEds</def:passwordReseller> | <def:passwordReseller>3x59ftmdmdEds</def:passwordReseller> | ||
+ | <def:glnGroup>0000000000000</def:glnGroup> | ||
+ | <def:glnContractor>30269000010012</def:glnContractor> | ||
<def:sinceDate>2010-05-21T08:00:00</def:sinceDate> | <def:sinceDate>2010-05-21T08:00:00</def:sinceDate> | ||
</def:GetNoticesRequest> | </def:GetNoticesRequest> | ||
Ligne 66: | Ligne 387: | ||
<def:glnReseller>3026900001000</def:glnReseller> | <def:glnReseller>3026900001000</def:glnReseller> | ||
<def:passwordReseller>3x59ftmdmdEds</def:passwordReseller> | <def:passwordReseller>3x59ftmdmdEds</def:passwordReseller> | ||
+ | <def:glnGroup>0000000000000</def:glnGroup> | ||
+ | <def:glnContractor>30269000010012</def:glnContractor> | ||
<def:lastConnection /> | <def:lastConnection /> | ||
</def:GetNoticesRequest> | </def:GetNoticesRequest> | ||
Ligne 128: | Ligne 451: | ||
<def:passwordReseller>3x59ftmdmdEds</def:passwordReseller> | <def:passwordReseller>3x59ftmdmdEds</def:passwordReseller> | ||
<def:glnDistributor>3012410001008</def:glnDistributor> | <def:glnDistributor>3012410001008</def:glnDistributor> | ||
+ | <def:glnGroup>0000000000000</def:glnGroup> | ||
+ | <def:glnContractor>30269000010012</def:glnContractor> | ||
<def:initialization /> | <def:initialization /> | ||
</def:GetNoticesForDistributorRequest> | </def:GetNoticesForDistributorRequest> | ||
Ligne 143: | Ligne 468: | ||
<def:passwordReseller>3x59ftmdmdEds</def:passwordReseller> | <def:passwordReseller>3x59ftmdmdEds</def:passwordReseller> | ||
<def:glnDistributor>3012410001008</def:glnDistributor> | <def:glnDistributor>3012410001008</def:glnDistributor> | ||
+ | <def:glnGroup>0000000000000</def:glnGroup> | ||
+ | <def:glnContractor>30269000010012</def:glnContractor> | ||
<def:sinceDate>2010-05-21T08:00:00</def:sinceDate> | <def:sinceDate>2010-05-21T08:00:00</def:sinceDate> | ||
</def:GetNoticesForDistributorRequest> | </def:GetNoticesForDistributorRequest> | ||
Ligne 187: | Ligne 514: | ||
</SOAP-ENV:Envelope> | </SOAP-ENV:Envelope> | ||
</code> | </code> | ||
- | |||
- | ===== Vérification des disponibilités : checkAvailability() ===== | ||
- | ==== Interrogation du web service ==== | ||
- | <code xml> | ||
- | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:def="http://hub.dilicom.net/definitions/"> | ||
- | <soapenv:Header/> | ||
- | <soapenv:Body> | ||
- | <def:CheckAvailabilityRequest> | ||
- | <def:glnReseller>3026900001000</def:glnReseller> | ||
- | <def:passwordReseller>3x59ftmdmpc85sdEds</def:passwordReseller> | ||
- | <def:checkAvailabilityLine> | ||
- | <def:ean13>9784526542500</def:ean13> | ||
- | <def:glnDistributor>3012564257416</def:glnDistributor> | ||
- | <def:unitPrice>000012500</def:unitPrice> | ||
- | </def:checkAvailabilityLine> | ||
- | <def:checkAvailabilityLine> | ||
- | <def:ean13>9790025658416</def:ean13> | ||
- | <def:glnDistributor>3012564257416</def:glnDistributor> | ||
- | </def:checkAvailabilityLine> | ||
- | </def:CheckAvailabilityRequest> | ||
- | </soapenv:Body> | ||
- | </soapenv:Envelope> | ||
- | </code> | ||
- | |||
- | ==== Réponse du web service ==== | ||
- | <code xml> | ||
- | <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> | ||
- | <SOAP-ENV:Header/> | ||
- | <SOAP-ENV:Body> | ||
- | <CheckAvailabilityResponse xmlns="http://hub.dilicom.net/definitions/"> | ||
- | <checkAvailabilityResponseLine> | ||
- | <ean13>9784526542500</ean13> | ||
- | <glnDistributor>3012564257416</glnDistributor> | ||
- | <checkAvailabilityReturnValue>AVAILABLE</checkAvailabilityReturnValue> | ||
- | <returnStatus>OK</returnStatus> | ||
- | <checkAvailabilityResponseLine > | ||
- | <ean13>9790025658416</ean13> | ||
- | <glnDistributor>3012564257416</glnDistributor> | ||
- | <checkAvailabilityReturnValue>UNAVAILABLE</checkAvailabilityReturnValue> | ||
- | <returnStatus>OK</returnStatus> | ||
- | </checkAvailabilityResponseLine > | ||
- | </CheckAvailabilityResponse> | ||
- | </SOAP-ENV:Body> | ||
- | </SOAP-ENV:Envelope> | ||
- | </code> | ||
- | |||
- | ===== Passage de commandes : sendOrder() ===== | ||
- | ==== Interrogation du web service ==== | ||
- | <code xml> | ||
- | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:def="http://hub.dilicom.net/definitions/"> | ||
- | <soapenv:Header/> | ||
- | <soapenv:Body> | ||
- | <def:SendOrderRequest> | ||
- | <def:glnReseller>3026900001000</def:glnReseller> | ||
- | <def:passwordReseller>3x59ftmdmdEds</def:passwordReseller> | ||
- | <def:orderId>ORDER0001</def:orderId> | ||
- | <def:glnGroup>0000000000000</def:glnGroup> | ||
- | <def:customerId>15986549</def:customerId> | ||
- | <def:finalBookOwner> | ||
- | <def:identifier>test</def:identifier> | ||
- | <def:civility>M</def:civility> | ||
- | <def:firstName>John</def:firstName> | ||
- | <def:lastName>Doe</def:lastName> | ||
- | <def:email>john.doe@dilicom.net</def:email> | ||
- | <def:country>FR</def:country> | ||
- | </def:finalBookOwner> | ||
- | <def:orderRequestLine> | ||
- | <def:ean13>9782814500136</def:ean13> | ||
- | <def:glnDistributor>3012410001000</def:glnDistributor> | ||
- | <def:unitPrice>1250</def:unitPrice> | ||
- | <def:quantity>1</def:quantity> | ||
- | <def:lineReference>01</def:lineReference> | ||
- | </def:orderRequestLine> | ||
- | </def:SendOrderRequest> | ||
- | </soapenv:Body> | ||
- | </soapenv:Envelope> | ||
- | </code> | ||
- | |||
- | ==== Réponse du web service ==== | ||
- | <code xml> | ||
- | <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> | ||
- | <SOAP-ENV:Header/> | ||
- | <SOAP-ENV:Body> | ||
- | <SendOrderResponse xmlns="http://hub.dilicom.net/definitions/"> | ||
- | <orderId>ORDER0001</orderId> | ||
- | <orderLine> | ||
- | <ean13>9782814500136</ean13> | ||
- | <glnDistributor>3012410001000</glnDistributor> | ||
- | <link> | ||
- | <url>http://hub.dilicom.net/link/3025594195700/TEST1FD000201/9782814500136-3012410001000/92-16-BHMHCPXAKZ3LQDWBYGU591Q2I7MEZTI7.do</url> | ||
- | <format>E127</format> | ||
- | <formatDescription>Mobipocket</formatDescription> | ||
- | <mimetype>application/x-mobipocket</mimetype> | ||
- | </link> | ||
- | <link> | ||
- | <url>http://hub.dilicom.net/link/3025594195700/TEST1FD000201/9782814500136-3012410001000/92-17-BHMHCPXAKZ3LQDWBYGU591Q2I7MEZTI7.do</url> | ||
- | <format>E107</format> | ||
- | <formatDescription>PDF</formatDescription> | ||
- | <mimetype>application/pdf</mimetype> | ||
- | </link> | ||
- | <link> | ||
- | <url>http://hub.dilicom.net/link/3025594195700/TEST1FD000201/9782814500136-3012410001000/92-18-BHMHCPXAKZ3LQDWBYGU591Q2I7MEZTI7.do</url> | ||
- | <format>E107</format> | ||
- | <formatDescription>PDF</formatDescription> | ||
- | <mimetype>application/pdf</mimetype> | ||
- | </link> | ||
- | <link> | ||
- | <url>http://hub.dilicom.net/link/3025594195700/TEST1FD000201/9782814500136-3012410001000/92-19-BHMHCPXAKZ3LQDWBYGU591Q2I7MEZTI7.do</url> | ||
- | <format>E105</format> | ||
- | <formatDescription>HTML</formatDescription> | ||
- | <mimetype>text/html</mimetype> | ||
- | </link> | ||
- | <orderLineId>92</orderLineId> | ||
- | <lineReference>01</lineReference> | ||
- | <returnStatus>OK</returnStatus> | ||
- | <returnMessage/> | ||
- | </orderLine> | ||
- | <returnStatus>OK</returnStatus> | ||
- | </SendOrderResponse> | ||
- | </SOAP-ENV:Body> | ||
- | </SOAP-ENV:Envelope> | ||
- | </code> | ||
- | |||
- | |||
- | ===== Récupération des détails d'une commande : getOrderDetails() ===== | ||
- | |||
- | ==== Interrogation du web service ==== | ||
- | <code xml> | ||
- | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:def="http://hub.dilicom.net/definitions/"> | ||
- | <soapenv:Header/> | ||
- | <soapenv:Body> | ||
- | <def:GetOrderDetailRequest> | ||
- | <def:glnReseller>3026900001000</def:glnReseller> | ||
- | <def:passwordReseller>3x59ftmdmpc85sdEds</def:passwordReseller> | ||
- | <def:orderId>ORDER0001</def:orderId> | ||
- | </def:GetOrderDetailRequest> | ||
- | </soapenv:Body> | ||
- | </soapenv:Envelope> | ||
- | </code> | ||
- | |||
- | ==== Réponse du web service ==== | ||
- | <code xml> | ||
- | <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> | ||
- | <SOAP-ENV:Header/> | ||
- | <SOAP-ENV:Body> | ||
- | <GetOrderDetailResponse xmlns="http://hub.dilicom.net/definitions/"> | ||
- | <orderId>ORDER0001</orderId> | ||
- | <orderLine> | ||
- | <ean13>9782814500136</ean13> | ||
- | <glnDistributor>3012410001000</glnDistributor> | ||
- | <link> | ||
- | <url>http://hub.dilicom.net/link/3025594195700/TEST1FD000201/9782814500136-3012410001000/92-16-BHMHCPXAKZ3LQDWBYGU591Q2I7MEZTI7.do</url> | ||
- | <format>E127</format> | ||
- | <formatDescription>Mobipocket</formatDescription> | ||
- | <mimetype>application/x-mobipocket</mimetype> | ||
- | </link> | ||
- | <link> | ||
- | <url>http://hub.dilicom.net/link/3025594195700/TEST1FD000201/9782814500136-3012410001000/92-17-BHMHCPXAKZ3LQDWBYGU591Q2I7MEZTI7.do</url> | ||
- | <format>E107</format> | ||
- | <formatDescription>PDF</formatDescription> | ||
- | <mimetype>application/pdf</mimetype> | ||
- | </link> | ||
- | <link> | ||
- | <url>http://hub.dilicom.net/link/3025594195700/TEST1FD000201/9782814500136-3012410001000/92-18-BHMHCPXAKZ3LQDWBYGU591Q2I7MEZTI7.do</url> | ||
- | <format>E107</format> | ||
- | <formatDescription>PDF</formatDescription> | ||
- | <mimetype>application/pdf</mimetype> | ||
- | </link> | ||
- | <link> | ||
- | <url>http://hub.dilicom.net/link/3025594195700/TEST1FD000201/9782814500136-3012410001000/92-19-BHMHCPXAKZ3LQDWBYGU591Q2I7MEZTI7.do</url> | ||
- | <format>E105</format> | ||
- | <formatDescription>HTML</formatDescription> | ||
- | <mimetype>text/html</mimetype> | ||
- | </link> | ||
- | <orderLineId>92</orderLineId> | ||
- | <lineReference>01</lineReference> | ||
- | <returnStatus>OK</returnStatus> | ||
- | <returnMessage/> | ||
- | </orderLine> | ||
- | <returnStatus>OK</returnStatus> | ||
- | </GetOrderDetailResponse> | ||
- | </SOAP-ENV:Body> | ||
- | </SOAP-ENV:Envelope> | ||
- | </code> | ||
- | |||
- | |||
- | ===== Obtention des version numériques associé à des ean physiques : getDigitalVersions() ===== | ||
- | |||
- | ==== Interrogation du web service ==== | ||
- | <code xml> | ||
- | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:def="http://hub.dilicom.net/definitions/"> | ||
- | <soapenv:Header/> | ||
- | <soapenv:Body> | ||
- | <def:GetDigitalVersionsRequest> | ||
- | <def:glnReseller>3026900001000</def:glnReseller> | ||
- | <def:passwordReseller>3x59ftmdmdEds</def:passwordReseller> | ||
- | <def:physicalEan>9782092524374</def:physicalEan> | ||
- | <def:physicalEan>9782212120035</def:physicalEan> | ||
- | </def:GetDigitalVersionsRequest> | ||
- | </soapenv:Body> | ||
- | </soapenv:Envelope> | ||
- | </code> | ||
- | |||
- | ==== Réponse du web service ==== | ||
- | <code xml> | ||
- | <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> | ||
- | <SOAP-ENV:Header/> | ||
- | <SOAP-ENV:Body> | ||
- | <GetDigitalVersionsResponse xmlns="http://hub.dilicom.net/definitions/"> | ||
- | <physicalVersion> | ||
- | <physicalEan>9782092524374</physicalEan> | ||
- | <digitalVersion> | ||
- | <ean13>9782092528068</ean13> | ||
- | <glnDistributor>3012410003004</glnDistributor> | ||
- | </digitalVersion> | ||
- | </physicalVersion> | ||
- | <physicalVersion> | ||
- | <physicalEan>9782212120035</physicalEan> | ||
- | <noDigitalVersion/> | ||
- | </physicalVersion> | ||
- | <returnStatus>OK</returnStatus> | ||
- | </GetDigitalVersionsResponse> | ||
- | </SOAP-ENV:Body> | ||
- | </SOAP-ENV:Envelope> | ||
- | </code> | ||
- | |||
Ligne 425: | Ligne 526: | ||
<def:glnReseller>3026900001000</def:glnReseller> | <def:glnReseller>3026900001000</def:glnReseller> | ||
<def:passwordReseller>3x59ftmdmpc85sdEds</def:passwordReseller> | <def:passwordReseller>3x59ftmdmpc85sdEds</def:passwordReseller> | ||
+ | <def:glnContractor>0000000000000</def:glnContractor> | ||
<def:notice> | <def:notice> | ||
<def:ean13>9782092528068</def:ean13> | <def:ean13>9782092528068</def:ean13> | ||
Ligne 459: | Ligne 561: | ||
</SOAP-ENV:Envelope> | </SOAP-ENV:Envelope> | ||
</code> | </code> | ||
+ | |||
+ | ===== Chargement de la notices d'un produit directement au format ONIX : getNotice() ===== | ||
+ | <note important> Service non implémenté en SOAP. </note> | ||