on 12-02-2009 11:16 AM
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
Hi Sudharsan,
In the XML validation it will display the erros one by one only.
Regards
Ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Sudharshan,
We tried this and it use to throw error one by one.. That is only first errors are thrown
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.