AnsweredAssumed Answered

GelScript is unable to read WINSCP XML Log file

Question asked by raydi02 Employee on Mar 21, 2012
Latest reply on Mar 26, 2012 by raydi02
Hello,

We are transferring a file via WINSCP protocol; on completion of the request it generates an XML file as out, which contains the result. The structure of the output file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<session name="ftpxxxx@***.***.***.***" start="2012-03-01T09:03:53.390Z" xmlns="http://winscp.net/schema/session/1.0">
<upload>
<filename value="d:\test_ray.txt"/>
<result success="false">
<message>Cannot create remote file '/usr/sap/datawork/ftp/1129/IN/QA2-IN/test_ray.txt'.</message>
<message>No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 3</message>
</result>
</upload>
</session>

when I am trying to read the whole content after parsing in <gel:parse> tag, it is returning the whole xml; however, when I am trying to read the content of session tag or any tag lower than, it is not returning any result.

I have further researched, when I am removing xmlns="http://winscp.net/schema/session/1.0" from the session tag of the output file, it returns data, but when xmlns attribute is present in the tag, it is not returning anything.

I need some suggestions on the issue.

Thanks a lot.

Regards,
Ray.

Outcomes