Siebel Unleashed
March 11, 2010, 10:32:40 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Forum Rules
;
Using Notify Flag
Home
Help
Members
Login
Register
Siebel Unleashed
>
Siebel
>
How To
>
How to read multiple xmls files in a directory
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to read multiple xmls files in a directory (Read 349 times)
jothiprasads
Newbie
Reputation 3
Offline
Siebel Area: Siebel CRM
Siebel Version: 7.8.2
Posts: 2
How to read multiple xmls files in a directory
«
on:
December 04, 2009, 09:32:42 AM »
Hi All,
I have a requirement in my Interface, an external system which creates XML files in a specific directory. But the names of the XML files are not standard saying the file names will be like ExternalSystemName+"_"+TimestampoffileCreated.xml, for example ABC_120420091000.xml,ABC_120420090800.xml..
Is there any way in siebel to search the directory for *.xml files and then process each xml files one by one.. I know we can use EAI XML Read From file or some other business service to read a file... but all these Business service needs file names as input.
Appreciate your inputs and direction on this issue.
Thanks
Prasad
Logged
jothiprasads
Newbie
Reputation 3
Offline
Siebel Area: Siebel CRM
Siebel Version: 7.8.2
Posts: 2
Re: How to read multiple xmls files in a directory
«
Reply #1 on:
December 04, 2009, 10:30:55 AM »
Hi Friends,
I got an input from oracle support on this issue. we can use Clib.System to write the names of directory in a text file and the read te file to get the names one by one and process the xmls. Here is a code to write txt file.
On the first part of the resolution the engineer recommends the usage of Clib.system to create a file. The example there refer to a DOS command, but I would suggest you try “ls –t” and send it to the mentioned file.
function WebApplet_PreInvokeMethod (MethodName)
{
if (MethodName == "Clib")
{
Clib.system("ls -t > order.txt");
return (CancelOperation);
}
else
{
return (ContinueOperation);
}
}
Thanks
Prasad
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Beginner Section
-----------------------------
=> Workflow Examples
=> Assignments
=> Scripting Examples
=> Configuration Examples
-----------------------------
Siebel
-----------------------------
=> How To
=> Problems & Solutions
=> Siebel Administration
=> Siebel EIM
=> Siebel EAI
=> Siebel Requirements
=> Siebel Workflows
=> Siebel Scripting
=> Siebel Configuration
=> Installation
=> Actuate Reports
-----------------------------
Siebel Analytics
-----------------------------
=> Analytics
=> ETL
-----------------------------
Testing
-----------------------------
=> Testing Queries
=> Quick Test Professional (QTP)
-----------------------------
Miscellaneous
-----------------------------
=> Siebel Tip of the Day
=> Siebel News
=> Suggestions
=> Chit Chat
-----------------------------
Introduction
-----------------------------
=> Introduce Yourself