cancel
Showing results for 
Search instead for 
Did you mean: 

XML Validation

Former Member
0 Kudos

I'm running SAP PI 7.0 SP12.

I have an iDoc to Flat file scenario and I would like to validate the outbound XML against the XML schema but I'm not sure if that is possible. I want to make sure that the data contained within the file meets the requirements of the XML schema - e.g. data types, field lengths etc. I don't think this is possible with this version of XI but would like to confirm my assumption.

Regards

Accepted Solutions (0)

Answers (6)

Answers (6)

0 Kudos

Hi,

 

XML Validation allows you to check the structure of a PI messagepayload. This was a major new feature introduced with SAP PI 7.1.

This you cannot use for version 7.0.

Please check the following link for your reference .... http://pdpsappireference.blogspot.in/2011/04/xml-validation-in-sap-pi.html

Former Member
0 Kudos

Hi - I now understand that PI 7.0 doesn't support schema validation (which is a HUGE hole) and that feature will be available in 7.1. The only other suggestion I received was to develop some java code to validate the XML. Thats not something I can do. Has anyone on here actually developed their own schema validation routine or come up with a work around to do the same thing. There must be some third party applications that can be used with XI. Any suggestions are more than welcome.

prateek
Active Contributor
0 Kudos

This will help u

Regards,

Prateek

Former Member
0 Kudos

Hi,

Refer this blog:

Validations using Java for those not having PI7.1

Regards,

Balaji

Former Member
0 Kudos

Hi

XML validation is one of the feature in PI7.1.

If you go through this you get more clarrification on validation xml in XI.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d06dff94-9913-2b10-6f82-9717d9f8...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5002ac06-aff3-2a10-6798-cbe11ca3...

Regards

Sridhar Goli

dharamveer_gaur2
Active Contributor
0 Kudos

This possible in PI 7.1, u can Validate XML message either Adapter Engine or Intergration Engine whatever mode(check box selection) selcted.

use this :https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5002ac06-aff3-2a10-6798-cbe11ca35535

Former Member
0 Kudos

Hi,

Validation of XML payload to an XSD is only available in PI 7.1

I don't think that there's any validation possible in 7.0