Posted: Thu Nov 30, 2006 6:39 pm Post subject: Validating XML in SOAP Envelope
Knight
Joined: 15 May 2001 Posts: 540 Location: New Zealand
We have a number of XML request/response messages that we need to validate. The messages are defined in enterprise schemas and we have created message definition files for them. Validation works fine.
However the messages may arrive either via MQInput or HTTPInput nodes and the HTTP requests and responses are enclosed in SOAP envelopes.
I don't want to include the SOAP elements in the message definitions that we use for validation. The HTTPInput therefore has Message Domain 'XMLNS' set, and I am then removing the SOAP envelope from the messages before passing them through a ResetContentDescriptor node to redefine the properties in order to validate the message.
I can then takes several approaches to parsing the structure to force validation, such as passing the message to a Trace node or an MQOuput node, but am wondering what would be the best way; these don't seem to be particularly tidy!
I would be interested to know if anyone else has had to deal with this requirement and the approach that they took.
Setting Validation properties on the Compute node that extracts the body message... _________________ I am *not* the model of the modern major general.
Setting Validation properties on the Compute node that extracts the body message...
and using the MRM domain! You can as well request validation on the content redescriptor node... setting the parse property to immediate... _________________ MQ & Broker admin
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum