It sounds like you may be checking to see if business rules, rather than just X12 rules, are being followed. For example, if /ST/N1/N101 = “ST” then it should be followed by N2, N3 and N4 segments containing address information, otherwise not. One way to do this within, say, a service to map an X12 850 to an XML purchase order, would be to write the service as if the necessary data exists and validate the resulting XML. If you end up with all the data you need, then it doesn’t matter exactly how it was presented in the 850. If the exact structure of the 850, beyond the X12 requirements, really is an issue, I’d be interested to know why that is. There might be an easier way to accomplish what you need than inserting a lot of extra validation logic to your service.
Tim
#webMethods#edi#Integration-Server-and-ESB