Changes for page Validation
Last modified by Danniar Firdausy on 2024/09/19 08:56
From version 24.1
edited by Erik Bakker
on 2022/09/01 08:28
on 2022/09/01 08:28
Change comment:
There is no comment for this version
To version 26.1
edited by Eva Torken
on 2023/09/20 13:12
on 2023/09/20 13:12
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.e bakker1 +XWiki.etorken - Content
-
... ... @@ -1,6 +1,4 @@ 1 1 {{container}}{{container layoutStyle="columns"}}((( 2 -= Validation = 3 - 4 4 In the previous microlearning, we learned how to configure a REST service. In this microlearning, we will discuss how you can validate whether the party calling your REST endpoint is sending the correct information in terms of the structure of the message. We will also learn how you can subsequently report back to the client that a validation error occurred. 5 5 6 6 Should you have any questions, please get in touch with [[academy@emagiz.com>>mailto:academy@emagiz.com]]. ... ... @@ -39,14 +39,8 @@ 39 39 40 40 if (exists(//err:xml-validation-exception)) then 'validation' else if (exists(//err:exception[@class='org.springframework.integration.MessageTimeoutException'])) then 'timeout' else '' 41 41 42 -== 4. Assignment ==40 +== 4. Key takeaways == 43 43 44 -Navigate to a flow within your (Academy) project in which you host a REST Webservice. 45 -Ensure that when a validation error is thrown, eMagiz will return a proper response to the client. 46 -This assignment can be completed with the help of the (Academy) project that you have created/used in the previous assignment. 47 - 48 -== 5. Key takeaways == 49 - 50 50 * The external application pushes data to a REST web service (or API) hosted by eMagiz 51 51 * When doing so, the external application should adhere to the defined data structure 52 52 * If not, we need to refuse the call and respond with an error message ... ... @@ -53,12 +53,8 @@ 53 53 * eMagiz auto generates a lot when using the API Gateway 54 54 * You need to recreate this when using the same functionality in a messaging flow 55 55 56 -== 6. Suggested Additional Readings ==48 +== 5. Suggested Additional Readings == 57 57 58 58 If you are interested in this topic and want more information, please read the help text provided by eMagiz. 59 59 60 -== 7. Silent demonstration video == 61 - 62 -Please check out the store for a working example for a messaging solution. 63 - 64 64 )))((({{toc/}}))){{/container}}{{/container}}