cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: XML Validation

Former Member
0 Kudos

Hi All,

Does the Standard XML validation feature provided in PI 7.1 lists all the validation errors at once.

Meaning if we have a structure as below

<Orders>

<Header>H</Header>

<Items>

<AA/>

<BB/>

</items>

<Items>

<AA/>

<BB/>

</items>

....

..

</Orders>

If there are many items which donot conform to the XSD, does XML validation lists all the errors or just the first occurence of the items in error.

Thanks.

Best Regards,

Sudharshan N A

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sudharsan,

In the XML validation it will display the erros one by one only.

Regards

Ramesh

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks Everyone for the replies.

Then, It is no good in a real world scenario. It will be very difficult to correct the errors one by one and reprocess them.

Regards,

Sudharshan N A

former_member187339
Active Contributor
0 Kudos

Hi Sudharshan,

>>Then, It is no good in a real world scenario. It will be very difficult to correct the errors one by one and reprocess them.

Agreed, but this also acts as a check point for message mapping.. If you have sent an invalid payload to Message mapping it will result in mappign failure of PI..

So this validation acts as a checkpoint

Regards

Suraj

Former Member
0 Kudos

Hi Sudharsan,

Yes it is difficult to correct the errors. Like out normal mapping it will displays the errors one by one.

But by using this validation the mapping cannot fail, so for this purpose mainly we use the adapter engine and integration server validations.

Take the xml payload of messahr type and put in the specified directories, based on that structure the Integration server /adapter engine validate the data.

Adapter engine path: /validation/schema/<GUID of software component version to which Service Interface is

assigned>/<Repository Namespace of Service Interface>

under the directory <sap installation directory>/<system id>/<instance

number>/j2ee/cluster/server0 for a non clustered installation of JEE Engine.

Integration server path: /validation/schema/<GUID of software component version to which Service Interface is

assigned>/<Repository Namespace of Service Interface>

under the directory <sysdir>/xi/runtime_server

Regards

Ramesh

former_member200962
Active Contributor
0 Kudos
If there are many items which donot conform to the XSD, does XML validation lists all the errors or just the first occurence 
of the items in error.

XML validation will be done from the start of the file....the first element absent will throw the error and the rest of the file wont be validated......XML validation does not validate the remaining file and hence you get error only for first one.....validation does not happen for the entire file

Regards,

Abhishek.

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

the XML Validation in PI7.1 is nothing but validation of XML structure against an XSD Definition,Just checking before that its well formed or not and Intergartion Engine level or before picking up the message.

Regards,

Raj

former_member187339
Active Contributor
0 Kudos

HI Sudharshan,

We tried this and it use to throw error one by one.. That is only first errors are thrown

Regards

Suraj