Wiki source code of Validate Incoming Messages

Last modified by Erik Bakker on 2024/08/26 12:39

Hide last authors
Erik Bakker 36.1 1 {{container}}{{container layoutStyle="columns"}}(((
Carlijn Kokkeler 52.1 2 In this microlearning, we'll dive into configuring validation for your SOAP web service. We'll focus on how to ensure that incoming XML messages meet your specified criteria using XSD for validation. Proper validation helps guarantee that the messages your service handles are both accurate and well-formed. By the end of this session, you'll understand how to set up and manage validation effectively within your SOAP web service configuration.
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
Eva Torken 48.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 validation part. In this microlearning, we talk about the security 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
Eva Torken 49.1 50 == 4. Key takeaways ==
eMagiz 1.1 51
Erik Bakker 36.1 52 * Crucial parts in the configuration are:
53 ** Operation Name
54 ** SOAP Webservice Namespace
Eva Torken 48.1 55 ** Validation
Erik Bakker 34.1 56 ** Authentication
Erik Bakker 36.1 57 * Validation is done with the help of an XSD
58 * The WSDL is used for external documentation
Erik Bakker 43.1 59 * eMagiz will automatically generate the WSDL for you based on your system messages
60 ** Do not forget to add the correct root entity to your system message to make the WSDL work
eMagiz 1.1 61
Eva Torken 49.1 62 == 5. Suggested Additional Readings ==
eMagiz 1.1 63
Carlijn Kokkeler 50.1 64 * [[Novice (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Novice.WebHome||target="blank"]]
65 ** [[SOAP Web service Connectivity (Navigation)>>doc:Main.eMagiz Academy.Microlearnings.Novice.SOAP Web service Connectivity.WebHome||target="blank"]]
66 *** [[Configure your SOAP web service (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Novice.SOAP Web service Connectivity.novice-soap-webservice-connectivity-configure-your-soap-webservice-gen3.WebHome||target="blank"]]
Carlijn Kokkeler 51.1 67 *** [[Securing your SOAP Webservice (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Novice.SOAP Web service Connectivity.novice-soap-webservice-connectivity-securing-your-soap-webservice||target="blank"]]
Carlijn Kokkeler 50.1 68 *** [[Endpoint Check (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Novice.SOAP Web service Connectivity.novice-soap-webservice-connectivity-endpoint-check-gen3.WebHome||target="blank"]]
69 *** [[SOAP Headers (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Novice.SOAP Web service Connectivity.novice-soap-webservice-connectivity-soap-headers||target="blank"]]
70 *** [[Calling a SOAP Web service (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Novice.SOAP Web service Connectivity.novice-soap-webservice-connectivity-calling-a-soap-webservice||target="blank"]]
71 *** [[Authorization - Calling a SOAP Webservice (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Novice.SOAP Web service Connectivity.novice-soap-webservice-connectivity-authorization-calling-a-soap-webservice||target="blank"]]
72 * [[Intermediate (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.WebHome||target="blank"]]
73 ** [[SOAP Web service Connectivity (Navigation)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.SOAP Web service Connectivity.WebHome||target="blank"]]
74 * [[Expert (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.WebHome||target="blank"]]
75 ** [[Webservice Security (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.Webservice Security.WebHome||target="blank"]]
Erik Bakker 53.1 76 * [[Validate (Search Result)>>url:https://docs.emagiz.com/bin/view/Main/Search?sort=score&sortOrder=desc&highlight=true&facet=true&r=1&f_space_facet=0%2FMain.&f_type=DOCUMENT&f_locale=en&f_locale=&f_locale=en&text=%22validate%22||target="blank"]]
eMagiz 1.1 77
Erik Bakker 21.1 78 )))((({{toc/}}))){{/container}}{{/container}}