I need to read excel spread sheet files(*.xls), validate some fields (say mandatory fields and date validation) and then insert data in to DB table.
if any field is not satisfying the rule( say having invalid date), entire row should be listed in separate bad record.
please suggest me how to parse and work on excel sheet. I have gone through Apache POI (http://poi.apache.org/), but no idea how can I make this useful?
Please post your queries in appropriate threads. Processing excel is not related to B2B.
As for your question, it is all about using the poi jars and writing java services to do your job. Please check the javadoc of poi for the available methods.
Sorry for the inconvenience. Can you please guide me about where to post my queries related to excel sheet processing in webMethods, if B2B Integration is not the correct place?
Also, I need to know the suitable approach to implement the requirement to read the excel sheet, validate and then insert data to DB table or report error with any invalid row.
Are you trying to read xls or .csv file and for csv it can be parsed/handled via FlatFile Adapter services via FFSchema definition. Did you ever check and tried this csv route if the interface requestor agreed?