Hi All,
In a orchestration for handling message validation errors, I use a Receive port with Direct binding, and it recieves a message of type XmlDocument. Since it is Direct binding the well formed ness of the document is not checked and whatever there is comes into the orchestration. In the orchestration I want to check if the document is well formed or not, if it is I return the message body with the response message to the client, so that he can check where the message went wrong. Other wise if the document is not well formed, I just tell him that your xml was not valid.
The problem is I cant use try catch in Expression shape to check for the well formedness of the xmldocument. Please tell me a way using which I can check its well formedness in the orchestration.
Regards,
Sajid.