Wiki source code of Validate Incoming Messages

Version 46.1 by Erik Bakker on 2022/12/30 12:22

Show last authors
1 {{container}}{{container layoutStyle="columns"}}(((
2 When setting up a point at which your customers can talk to you, eMagiz offers various methods of creating such a point. One of those options is to host a SOAP Webservice in eMagiz that handles XML messages asynchronously or synchronously. In this microlearning, we will zoom in on the part that validation of the messages plays when offering such a SOAP web service.
3
4 If you have any questions, don't hesitate to contact academy@emagiz.com.
5
6 == 1. Prerequisites ==
7 * Basic knowledge of the eMagiz platform
8
9 == 2. Key concepts ==
10 This microlearning centers around configuring your SOAP web service.
11
12 By configuring, we mean: Designing and determining the characteristics of the SOAP web service.
13
14 Crucial parts in the configuration are:
15 * Operation Name
16 * SOAP Webservice Namespace
17 * Validation
18 * Authentication
19
20 Of these four points, we will zoom in on the validation part of our SOAP Webservice in this microlearning.
21
22 == 3. Validate Incoming Messages ==
23
24 When setting up a point at which your customers can talk to you, eMagiz offers various methods of creating such a point. One of those options is to host a SOAP Webservice in eMagiz that handles XML messages asynchronously or synchronously. In this microlearning, we will zoom in on the part that validation of the messages plays when offering such a SOAP web service.
25
26 Crucial parts in the configuration are:
27 * Operation Name
28 * SOAP Webservice Namespace
29 * Validation
30 * Authentication
31
32 Of these four points, we will zoom in on the validation part of our SOAP Webservice in this microlearning. The SOAP Webservice serves as a point of entry where people with the proper credentials (security) and the correct answers (validation) can enter and perform their actions. In the previous microlearning, we talked about the security part. In this microlearning, we talk about the validation part.
33
34 === 3.1 Configuration on system message level in Design ===
35
36 As you have learned from the crash course, you can validate an XML message with the help of an XSD. This XSD describes data types, order, associations, and length of attributes. You can use such an XSD to validate what your clients send you. eMagiz will automatically define a WSDL based on the combination of system messages you provide for each operation you want to host. To ensure that the WSDL is created correctly, don't forget to add an entity called "Send{givenname}Request" to the (request) system message and an entity called "Send{givenname}Response" in case you have a response system message. An example of how this needs to be configured in Design is shown below.
37
38 [[image:Main.Images.Microlearning.WebHome@novice-soap-webservice-connectivity-validate-incoming-messages-gen3--root-entity-for-wsdl.png]]
39
40 === 3.2 Effect in Create ===
41
42 In the infra flow, eMagiz automatically adds a support object of the "Dynamic WSDL" type. In this support object, the link is made between the system message definitions and the WSDL that will be created based on this.
43
44 [[image:Main.Images.Microlearning.WebHome@novice-soap-webservice-connectivity-validate-incoming-messages-gen3--dynamic-wsdl-support-object-infra.png]]
45
46 {{warning}}Note that when you make changes to the system message after the integration is already in Create, or when you add a new integration to Create, you need to create a new version of your infra flow to be able to deploy the changes to your WSDL.{{/warning}}
47
48 With this done, you have successfully added validation to your SOAP web service.
49
50 == 4. Assignment ==
51
52 Add validation to the SOAP Webservice we have been configuring.
53 This assignment can be completed with the help of the (Academy) project you created/used in the previous assignment.
54
55 == 5. Key takeaways ==
56
57 * Crucial parts in the configuration are:
58 ** Operation Name
59 ** SOAP Webservice Namespace
60 ** validationvalidation
61 ** Authentication
62 * Validation is done with the help of an XSD
63 * The WSDL is used for external documentation
64 * eMagiz will automatically generate the WSDL for you based on your system messages
65 ** Do not forget to add the correct root entity to your system message to make the WSDL work
66
67 == 6. Suggested Additional Readings ==
68
69 If you are interested in this topic and want more information, please read the help text provided by eMagiz.
70
71 == 7. Silent demonstration video ==
72
73 {{video attachment="novice-soap-webservice-connectivity-validate-incoming-messages-gen3.mp4" reference="Main.Videos.Microlearning.WebHome"/}}
74
75 )))((({{toc/}}))){{/container}}{{/container}}