on 10-14-2013 6:43 PM
Hi All,
We have a requirement to read a HTML table from static webpage in PI 7.31. Can you please let me know how to achieve this?
Regards,
Ashish
Hi,
you can also do that in more standard way as shown in my blog:
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashish,
Not a good method - but you can keep a dummy file and a sender file communication channel in Test mode for polling - sender interface being kept dummy can trigger your scenario periodically.
On the target side call the HTML page over receiver HTTP channel get the response and parse it using async sync without bpm (request response oneway bean) approach.
Regards
Subhro
hi Ashish,
As per my understanding you can write a java mapping to fetch the data from the webpage and convert the table content in xml format and then process it.
Standard API to parse an HTML page:
http://docs.oracle.com/javase/7/docs/api/javax/swing/text/html/parser/ParserDelegator.html
Eg: how to parse:
http://www.java2s.com/Tutorial/Java/0320__Network/HTMLparserbasedonHTMLEditorKitParserCallback.htm
http://stackoverflow.com/questions/6559139/html-parserdelegator-and-parsercallback-not-working
And secondly I noticed another way to handle this scenario:
http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/08/12/http-test-tool-for-sap-pi-73
Hope this is helpful.
thanks and regards,
Praveen T
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.