title | description | services | documentationcenter | author | manager | editor | ms.assetid | ms.service | ms.workload | ms.tgt_pltfrm | ms.devlang | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Overview of XML validation in the Enterprise Integration Pack | Microsoft Docs |
Learn how validation works in the Enterprise Integration Pack and Logic apps |
logic-apps |
.net,nodejs,java |
msftman |
erikre |
cgronlun |
d700588f-2d8a-4c92-93eb-e1e6e250e760 |
logic-apps |
integration |
na |
na |
article |
07/08/2016 |
deonhe |
Often, in B2B scenarios, the partners to an agreement need to validate that messages they exchange among each other are valid before processing of the data can begin. In the Enterprise Integration Pack, you can use the XML Validation connector to validate documents against a predefined schema.
- Create a Logic app and link it to your integration account that contains the schema you will use to validate the XML data.
- Add a Request - When an HTTP request is received trigger to your Logic app
- Add the XML Validation action by first selecting Add an action
- Enter xml in the search box in order to filter all the actions to the one that you want to use
- Select XML Validation
- Select the CONTENT text box
- Select the body tag as the content that will be validated.
- Select the SCHEMA NAME list box and chose the schema you want to use to validate the input content above
- Save your work
At this point, you are finished setting up your validation connector. In a real world application, you may want to store the validated data in an LOB application such as SalesForce. You can easily add an action to send the output of the validation to Salesforce.
You can now test your validation action by making a request to the HTTP endpoint.