Transform xml to a text

gonzy1981gonzy1981 Member Posts: 156
edited 2015-07-23 in NAV Three Tier
Hi there,

It turns out that I want to export some data from nav 2015 to a webservice. So, I've created a xmlport and I am trying to send that xml to a webservice. (It seems easy but ](*,) ](*,) ](*,) ](*,) )

Here is my problem:
- I don't know how transform the xml, from the xmlport, to a text or bigtext or... (string), because I have send the xml to the webservice as a string. Do you know how to solve this issue??

PS: I don't want to save the file xml.

Thanks

Comments

  • gonzy1981gonzy1981 Member Posts: 156
    Hi,
    Eventually, I did this and it works, I don't know if this is the best solution.

    TempBlob.Blob.CREATEOUTSTREAM(OutStream);
    XMLPORT.EXPORT(50000,OutStream,Cust);

    TempBlob.Blob.CREATEINSTREAM(InStream);
    InStream.READ(VarText,1000000000);


    \:D/ \:D/ \:D/ \:D/
Sign In or Register to comment.