Validating variables

Sometimes, particularly after assignments (if we did not use the validation in the assignments), it makes sense to validate the variables against their associated XML Schemas and WSDL definitions. By validation, we mean verifying whether the XML stored in a variable corresponds to the XML schema definition (for element type variables) or XML type (for type variables) or WSDL message (for message type variables). Typical scenarios for validation include the following:

  • To validate the input into the process, that is, to check for valid input before the process starts working on them
  • To validate the input to a service invocation or, even most often, the response from a service, that is, to check for XML conformance before using ...

Get WS-BPEL 2.0 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.