Using schematron in oracle soa suite 11g for validating xml speed dating in torquay devon
Note that deep XQuery knowledge is not in the scope of this article, for more in-depth knowledge about XQuery you need to google (a good start can be found at
I will predict that the reader has basic XPath concepts to find some nodes in a XML instance (more at
With these xsd's I made a simple WSDL which I can use in the proxy service.
First part of this blog entry is to make the happy flow when this works we can add the xsd validation. The next step is to make a simple business service with file transport In my case I put the request xml in the c drive temp folder.
The request xsd When everything goes well I will only return the runid element else we get the full message with the errorcode.We now concentrate the fault treatment in a single error handler associated to the entire flow, adding a “IF-ELSE” action to act as a switch, verifying which of the code is present in the “fault” variable and manually throwing the typed faults declared in our service contract (Order Business Fault and Order Technical Fault).Obs.: the code “BEA-382505” refers to the internal OSB code that is used for “Validate” action errors.Go back to your proxy service where we create a new message flow.Add a route-node to the flow with inside a new routing. Add an assign component to request action flow so I can retrieve the runid from the request and add this to the runid variable. To make a return message I add an assign to the response action.