on 10-24-2006 8:06 AM
Hi ,
I am doing file to idoc scenario. I am getting the file in zip format. File adaptor poll the file in zip format, Now my requirement is to extract the file in text format before content conversion .... can we use the OS command option in sender file adaptor configuration if yes then how????
Thanks in advanve
Regards
Swatantra
Wouldnt recommend direct OS calls as that will completely screw up any portability.
Try writing an AE module wrapping the following:
<a href="http://java.sun.com/j2se/1.4.2/docs/api/java/util/zip/package-summary.html">http://java.sun.com/j2se/1.4.2/docs/api/java/util/zip/package-summary.html</a>
Regards
James.
p.s. please mark helpful answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay,
In Sender file configuration ( In communication channel ) it allows to call the OS system commands and process them before calling mapping program .
In your Communication channel in "Run operating System Command Before Message Processing " set a system command which extracts the zip file located in the path specified
The command format is:
winzip32 -e [options] filename[.zip] folder
Sample :::
C:\Program Files\WinZip>WINZIP32 -e Example.zip Example
After extracting you will get a folder get created by the name specified in command if it doesnot exist. Set polling on that folder with the filename like *.txt and process it with file content conversion.
Let me know if you have queries.
Nanda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Nanda for the reply
I am still not clear ,could you please clear my doubts below
1. Where this OS command will get execute at FTP server or at XI
2. There is only one place to specify the path where polling happens , How we can change after the file extraction ...
Thanks in advance
Regards
Swatantra
Hey,
I'm also interested this topic... Please help me on this command part??!!
The command format is:
winzip32 -e [options] filename[.zip] folder
can you please provide the specified example for the same
what would be the options, filename and folder
Can you explain each part in it...
Thanks n Advance.,
S
Thanks Nanda for the reply
I am still not clear ,could you please clear my doubts below
1. Where this OS command will get execute at FTP server or at XI
2. There is only one place to specify the path where polling happens , How we can change after the file extraction ...
Thanks in advance
Regards
Swatantra
Hi,
I don't think it can be done without
programming as if you use OS command
you will still have the zip file
you can go two ways:
try to unzip in the adapter module
and then do the content conversion
try to unzip (from another folder for example)
via java proxy and put the result txt
in destination folder - from which it will be picked
by the file adapter with content conversion
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
An example of adapter module:
Java proxies;
Regards
Vijaya
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.