read a file

hello
please tell me how we can read a file and insert the data in the database…please help me out

Hello,
Can you specify file type?

FF, XML??

FF and Xml both

For FF your code should look something like this;

pub.file: getFile
pub.flatFile:convertToValues
Batch Insert Adapter Service

For XML almost similar but use the built in XML services in WmPublic XML services instead of flatFile services.

Have a look at this:

http://www.idnxchange.com/blog/webmethods-step-by-step-flat-file-to-database.html

-HTH

Let me know if you have questions.