Last modified by Nico Lemaire on 2025/05/06 15:49
From version 23.2
edited by Robin Huisman
on 2024/10/10 10:15
on 2024/10/10 10:15
Change comment:
There is no comment for this version
To version 26.5
edited by Nico Lemaire
on 2025/05/06 15:49
on 2025/05/06 15:49
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -Setting up Labcommunication by REST services with TerraIndex1 +Setting up API communication by REST services with TerraIndex for laboratories - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. RobinHuisman1 +XWiki.NicoLemaire - Content
-
... ... @@ -34,37 +34,41 @@ 34 34 Our IP-addresses: 35 35 36 36 (% element-id="1881" %) 37 -inbound [[Web.terraindex.com>>url:http://Web.terraindex.com||element-id="1880"]] 37 +__**inbound [[Web.terraindex.com>>url:http://Web.terraindex.com||element-id="1880"]]**__ 38 38 137.116.199.164 39 39 40 40 (% element-id="1878" %) 41 -outbound [[Test.terraindex.com>>url:http://Test.terraindex.com||element-id="1877"]] 41 +__**outbound [[Test.terraindex.com>>url:http://Test.terraindex.com||element-id="1877"]]**__ 42 42 104.45.9.128 43 43 44 44 (% element-id="1875" %) 45 -Production outbound 45 +__**Production outbound (http)**__ 46 46 40.115.34.64 47 47 48 -Production outbound (ftp): 48 +__**Production outbound (ftp):**__ 49 49 50 - 20.54.163.29, 20.54.163.30, 20.54.163.34,20.54.163.36,20.54.163.43, 20.50.134.53, 20.54.163.47, 20.54.163.57, 20.54.163.61, 20.54.163.68, 20.54.163.76, 20.54.163.79, 51.105.111.203, 20.50.147.106, 20.50.148.51, 20.50.148.60, 20.50.146.193, 20.50.148.123, 20.50.148.128, 20.50.148.159, 51.138.21.31, 20.50.148.164, 20.50.148.172, 51.105.105.244, 20.54.163.90, 20.54.163.94, 20.54.163.100, 20.73.28.18, 20.73.28.145, 20.73.29.144, 20.50.2.950 +13.93.123.234 51 51 52 52 (% element-id="1873" %) 53 -Test outbound 53 +__**Test outbound (http, ftp)**__ 54 54 13.73.138.173 55 55 56 -Test outbound (ftp): 56 +__**Test outbound (ftp: eurofins, eurofins spain):**__ 57 57 58 -51.1 38.62.216, 51.138.62.232, 51.138.62.241,51.138.63.1, 51.138.63.19, 51.138.63.30, 51.138.63.43, 51.137.2.110, 51.138.63.49, 51.138.63.70, 51.138.63.82, 51.138.63.94, 51.138.63.102, 51.105.249.46, 51.137.7.98, 51.138.63.17, 51.137.6.51, 51.138.63.159, 51.138.63.175, 51.138.63.189, 51.138.63.234, 20.61.224.11, 20.61.224.20, 20.61.224.37, 20.61.224.50, 52.236.158.189, 52.236.159.215, 52.157.223.174, 52.157.223.203, 40.74.33.17, 20.50.2.4458 +51.145.244.12 59 59 60 60 (% element-id="1871" %) 61 -CD/CI outbound 61 +__**CD/CI outbound**__ 62 62 40.114.238.16 63 63 64 64 (% element-id="1869" %) 65 -Office outbound 65 +__**Office outbound**__ 66 66 213.124.115.132 67 67 68 +(% element-id="1869" %) 69 +__**Deliveryservice**__ 70 +Production: 13.93.123.234 71 +Test: 51.145.244.12 68 68 69 69 (% element-id="1864" %) 70 70 = (% element-id="1863" %)Labdelivery (menu-card) files Exchange(%%) = ... ... @@ -1593,7 +1593,43 @@ 1593 1593 </Response> 1594 1594 1595 1595 1600 +== Request example Order PDF File == 1596 1596 1602 + 1603 + 1604 + bool useZipstream = true; ~/~/ Always Supported, Keep it true!! 1605 + var content = new FormUrlEncodedContent(new[] 1606 + { 1607 + new KeyValuePair<string, string>("userName", WebserviceUsername), 1608 + new KeyValuePair<string, string>("password", WebservicePassword), 1609 + new KeyValuePair<string, string>("customerUsername", CustomerUsername), 1610 + new KeyValuePair<string, string>("clientId", customerid), 1611 + new KeyValuePair<string, string>("orderId", orderid), 1612 + new KeyValuePair<string, string>("useZip", useZipstream.ToString()), ~/~/ Always Supported, Keep it true!!. 1613 + new KeyValuePair<string, string>("languageCode", languageCode) 1614 + }); 1615 + 1616 + HttpResponseMessage response = _HttpClient.PostAsync("GetOrderPdf", content).GetAwaiter().GetResult(); 1617 + responseMessage = response.Content.ReadAsStringAsync().GetAwaiter().GetResult(); 1618 + response.EnsureSuccessStatusCode(); 1619 + 1620 + 1621 +== Response Order PDF Example == 1622 + 1623 + <Response> 1624 + <OrderId>7113737</OrderId> 1625 + <FileContent> 1626 + BASE64 encoded file 1627 + </FileContent> 1628 + <Status> 1629 + <StatusCode>1</StatusCode> 1630 + <StatusCodeDescription>OK</StatusCodeDescription> 1631 + <ErrorMessage></ErrorMessage> 1632 + </Status> 1633 + </Response> 1634 + 1635 + 1636 + 1597 1597 (% element-id="357" %) 1598 1598 = (% element-id="356" %)Customer wants to see real time information about the status in the interface(%%) = 1599 1599