XML Tags removed from Bigtext param for webservice

rbnbwnsrbnbwns Member Posts: 1
edited 2020-03-24 in NAV Three Tier
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!

Answers

  • krikikriki Member, Moderator Posts: 9,115
    [Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.