Wiki source code of Validate Incoming Messages

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

Hide last authors
Erik Bakker 36.1 1 {{container}}{{container layoutStyle="columns"}}(((
Erik Bakker 44.1 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.
eMagiz 1.1 3
Erik Bakker 44.1 4 If you have any questions, don't hesitate to contact academy@emagiz.com.
eMagiz 1.1 5
6 == 1. Prerequisites ==
7 * Basic knowledge of the eMagiz platform
8
9 == 2. Key concepts ==
Erik Bakker 36.1 10 This microlearning centers around configuring your SOAP web service.
eMagiz 1.1 11
Erik Bakker 44.1 12 By configuring, we mean: Designing and determining the characteristics of the SOAP web service.
eMagiz 1.1 13
Erik Bakker 36.1 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.
Erik Bakker 38.1 21
Erik Bakker 36.1 22 == 3. Validate Incoming Messages ==
eMagiz 1.1 23
Erik Bakker 44.1 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.
eMagiz 1.1 25
Erik Bakker 36.1 26 Crucial parts in the configuration are:
27 * Operation Name
28 * SOAP Webservice Namespace
29 * Validation
Erik Bakker 34.1 30 * Authentication
eMagiz 1.1 31
Erik Bakker 44.1 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.
eMagiz 1.1 33
Erik Bakker 43.1 34 === 3.1 Configuration on system message level in Design ===
eMagiz 1.1 35
Erik Bakker 44.1 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.
eMagiz 1.1 37
Erik Bakker 43.1 38 [[image:Main.Images.Microlearning.WebHome@novice-soap-webservice-connectivity-validate-incoming-messages-gen3--root-entity-for-wsdl.png]]
eMagiz 1.1 39
Erik Bakker 43.1 40 === 3.2 Effect in Create ===
eMagiz 1.1 41
Erik Bakker 44.1 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.
eMagiz 1.1 43
Erik Bakker 43.1 44 [[image:Main.Images.Microlearning.WebHome@novice-soap-webservice-connectivity-validate-incoming-messages-gen3--dynamic-wsdl-support-object-infra.png]]
Erik Bakker 34.1 45
Erik Bakker 44.1 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}}
Erik Bakker 34.1 47
Erik Bakker 44.1 48 With this done, you have successfully added validation to your SOAP web service.
Erik Bakker 34.1 49
eMagiz 1.1 50 == 4. Assignment ==
51
Erik Bakker 36.1 52 Add validation to the SOAP Webservice we have been configuring.
Erik Bakker 44.1 53 This assignment can be completed with the help of the (Academy) project you created/used in the previous assignment.
eMagiz 1.1 54
55 == 5. Key takeaways ==
56
Erik Bakker 36.1 57 * Crucial parts in the configuration are:
58 ** Operation Name
59 ** SOAP Webservice Namespace
Erik Bakker 44.1 60 ** validationvalidation
Erik Bakker 34.1 61 ** Authentication
Erik Bakker 36.1 62 * Validation is done with the help of an XSD
63 * The WSDL is used for external documentation
Erik Bakker 43.1 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
eMagiz 1.1 66
67 == 6. Suggested Additional Readings ==
68
Erik Bakker 44.1 69 If you are interested in this topic and want more information, please read the help text provided by eMagiz.
eMagiz 1.1 70
71 == 7. Silent demonstration video ==
72
Erik Bakker 45.1 73 {{video attachment="novice-soap-webservice-connectivity-validate-incoming-messages-gen3.mp4" reference="Main.Videos.Microlearning.WebHome"/}}
eMagiz 1.1 74
Erik Bakker 21.1 75 )))((({{toc/}}))){{/container}}{{/container}}