on 07-29-2011 12:57 PM
Hi,
We are implementing a HTTP sender channel on PI 7.11 and requires XML validation to be performed upon receiving. The validation is required to check if all the tags are closed and ended properly. Failing to do so, an error XML will be generated and subsequently send back to the sender.
There is a blog /people/william.li/blog/2009/03/19/adapter-user-module-for-http-adapter detailing the development of user module for HTTP channel but we remain clueless on how can we change it to suit our needs. The XML messages can be of different format (different XSD) thus we need to make this as generic as possible.
Ultimately the intention is to prevent XML to fail at later stage within PI and stopped the communication. Hope any experts out there can point us to the right direction.
Thanks in advance!
Regards,
Wai Xin
Hi Wai Xin,
If you want to perform XML validation, use the standard functionality of XML validation in PI 7.11.
Using this you would not need any custom modules.
http://help.sap.com/saphelp_nwpi71/helpdata/en/44/0bf1b3ec732d2fe10000000a11466f/content.htm
Hope this is helpful.
Regards,
Sanjeev.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Another option can be to use SOAP sender channel and option "validation by adapter engine" in the sender Agreement to validate the xml in the adapter itself.
Please refer the foll link for this
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As for the sender agreement solution, that will stop us from detecting the XML message as incorrect in early stage. Failing which, the error message will be highlighted in PI but nothing seems to take place thereafter. One of our requirements is the message must be send back to the Sender, which we intend to achieve by generating an error message type.
Our receiver determination checks for this error message type and will route it back to the Sender.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.