Hi all,
I have a codeunit that run an XMLPort to export a table. When I run the code unit directly from Navision every thing is ok
but when I expose the code unit as a web service and I call it there is no result: no file was exported!!
the following is the code unit:
TestFile.CREATE('C:\\XXXX.xml') ;
TestFile.CREATEOUTSTREAM(TestStream);
XMLPORT.EXPORT(50099,TestStream);
TestFile.CLOSE;
Thanks for help
0
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I had change the code unit as the following:
TestFile.CREATE('C:\\XXXX.xml') ;
TestFile.CREATEOUTSTREAM(TestStream);
XMLPORT.EXPORT(50099,TestStream);
TestFile.CLOSE;
exit(true);
from the web service the code unit return the bolean value correctly!! so the is no exeption here!
but no file was created!!!!
[{Ok} :=] XMLPORT.EXPORT(Number, OutStream [, Record])
What is the return from the export ?
Regards,
egnaz
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n