Required field in webservice, but message still accepted
Hi, We use a lot of webservices to receive our data from an external system. Included are timestamps to monitor arrival and process times. Naturally these fields are required, since we always want and expect this data. However, when we test a testmessage via soapUI and remove the required Timestamp tag, the message is still accepted. So you can set fields to required, but when sending the actual message, you can remove required fields and still get your message proccessed. Anyone else noticed this, or has a 'workaround'?
Paul, I just reproduced this in Mendix 4.6.1 in a test project. It seems that the request is not validated. I 'forgot' to provide an attribute which is required, but my microflow is handled by Mendix without a warning or something else. You need to file a support ticket for this.
If you're using a XML-to-Domain mapping make sure to set the validate against schema option to yes, else the messages are accepted if they do not comply with the definition.