Creating SAX output for Java mapping


SAP PI Interview Questions and SAP PI Tutorials

SAP PI Interview Questions and SAP PI Tutorials

Creating SAX output for Java mapping

I have created a SAX parser for parsing my document, which is fairly easy.

I would like to create a document in may mapping using the SAX document creation. I’m just unable to find any documentation on how the SAX document can be created.

Can you help with how I can construct the SAX document in Java.

This is a very good blog where u can have an idea of how Java Mapping is done using SAX parser.

http://www.riyaz.net/blog/xipi-java-mapping-demystified/

Some more stuff for Java Mapping-DOM and SAX:
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4143

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1945
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1946
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1947
http://www.javacommerce.com/displaypage.jsp?name=index.sql&id=18232
http://www.javacommerce.com/displaypage.jsp?name=saxparser1.sql&id=18232

You need to create a java mapping for this. Check the blog of Stefan on how to write the code for fetching the complete payload.
https://weblogs.sdn.sap.com/pub/wlg/4774

Then you can use your SAX parser(which you have developed). Make sure you have com.sap.xpi.ib.mapping.lib.jar added to the project folder when you create the java mapping

SAP PI Interview Questions and SAP PI Tutorials

SAP PI Interview Questions and SAP PI Tutorials

What do you mean by constructing SAX Dcoument??SAX Parcer parse the document ,if you want define output required format you need write a java mapping such a way.

I found Thorstens blog very helpful, it containe the information needed to create a document using SAX

SAP PI Interview Questions and SAP PI Tutorials

SAP PI Interview Questions and SAP PI Tutorials

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter
www.pdf24.org    Send article as PDF   
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *