Last modified by Eva Torken on 2024/02/21 21:34

From version 43.2
edited by Eva Torken
on 2024/02/21 21:34
Change comment: Update document after refactoring.
To version 40.1
edited by Erik Bakker
on 2022/08/22 15:38
Change comment: There is no comment for this version

Summary

Details

Page properties
Parent
... ... @@ -1,1 +1,1 @@
1 -Main.eMagiz Academy.Microlearnings.Legacy Functionality.WebHome
1 +WebHome
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.etorken
1 +XWiki.ebakker
Content
... ... @@ -35,17 +35,14 @@
35 35  
36 36  What eMagiz does need from you is the correct XSD for validation. As a starting point you should download the XSD that eMagiz has generated based on the system message(s) you have defined in the Design phase. Once you have that you can structure the XSD correctly. A valid XSD start with a schema segment. In this segment you need to define your SOAP WS namespace:
37 37  
38 -{{code language="xml"}}
39 39  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
40 40  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
41 41   xmlns="http://www.academy.emagiz.com/ns/mlacade-bus/spwbsrv-connector/1.0/"
42 42   attributeFormDefault="unqualified" elementFormDefault="unqualified"
43 43   targetNamespace="http://www.academy.emagiz.com/ns/mlacade-bus/spwbsrv-connector/1.0/">
44 -{{/code}}
45 45  
46 46  Once you have that you need to copy all complex and simple types from the XSD that you downloaded and paste them below the lines you have created:
47 47  
48 -{{code language="xml"}}
49 49  <xs:complexType name="Input">
50 50   <xs:sequence>
51 51   <xs:element name="String" type="nonEmptyString"/>
... ... @@ -70,11 +70,9 @@
70 70   <xs:enumeration value="PLANNING"/>
71 71   </xs:restriction>
72 72   </xs:simpleType>
73 -{{/code}}
74 74  
75 75  To wrap things up you need to define your Request and Response element and close the schema:
76 76  
77 -{{code language="xml"}}
78 78  <xs:element name="SendNptRequest">
79 79   <xs:complexType>
80 80   <xs:sequence>
... ... @@ -86,7 +86,6 @@
86 86   <xs:complexType/>
87 87   </xs:element>
88 88   </xs:schema>
89 -{{/code}}
90 90  
91 91  Combining this will result in a valid XSD for my example. In your case, you will need to enter other values. When you are done with the creation of the XSD save it with a name such as spwbsrv-connector.xsd and upload it to the flow. After you have uploaded the XSD link it to the connector-xsd support object in your entry.
92 92  
... ... @@ -96,8 +96,13 @@
96 96  
97 97  With this done you have successfully added validation to your SOAP web service.
98 98  
99 -== 4. Key takeaways ==
93 +== 4. Assignment ==
100 100  
95 +Add validation to the SOAP Webservice we have been configuring.
96 +This assignment can be completed with the help of the (Academy) project that you have created/used in the previous assignment.
97 +
98 +== 5. Key takeaways ==
99 +
101 101  * Crucial parts in the configuration are:
102 102   ** Operation Name
103 103   ** SOAP Webservice Namespace
... ... @@ -107,8 +107,12 @@
107 107  * The WSDL is used for external documentation
108 108  * Use the XSD generated by eMagiz based on the system message as a starting point
109 109  
110 -== 5. Suggested Additional Readings ==
109 +== 6. Suggested Additional Readings ==
111 111  
112 112  If you are interested in this topic and want more information on it please read the help text provided by eMagiz.
113 113  
113 +== 7. Silent demonstration video ==
114 +
115 +{{video attachment="novice-soap-webservice-connectivity-validate-incoming-messages.mp4" reference="Main.Videos.Microlearning.WebHome"/}}
116 +
114 114  )))((({{toc/}}))){{/container}}{{/container}}