Hi all,
I created and published a codeunit as a webservice. I have a function with Bigtext as a param.
The other party sends an xml to Navision. However, when I read the bigtext, all the xml-formatting like the tags are gone.
I just see the elements which were between the tags.
I need the tags as well because I need to search for the correct tag. I just wanted to write the content down to a file, so I can check the actual message. Am I doing something wrong in the following code?;
[External] ReturnMessage(VAR RequestContentPar : BigText) : Text
fileExportGbl.CREATE('C:\temp\test.xml',TEXTENCODING::UTF8);
fileExportGbl.CREATEOUTSTREAM(OutstreamLcl);
RequestContentPar.WRITE(OutstreamLcl);
fileExportGbl.CLOSE;
I'm using bigtext because the xml can vary from time to time.
Thanks in advance!
0
Answers
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!