Options

Receiving XML

arnaroarnaro Member Posts: 29
edited 2002-03-18 in Navision Financials
Here is a code snippet.... Im using XML4 from Microsoft.

//GET
XMLHTTPServer.open('GET', URL_t, FALSE, User_t, Pass_t);
XMLHTTPServer.send;

//LOAD response into document
XMLDocument.loadXML(XMLHTTPServer_laut.responseText); //<--fails

fails because the response is more than 250 chrs.
How can I do this???

- Arol

Comments

  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    If you want to share this OCX, please upload it to this site and it will be included in the download section.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Options
    arnaroarnaro Member Posts: 29
    Seems like Navision has no solution for this either, my service request to them turned upp nothing....

    The solution I will use is to make an OCX in VB that takes the XML response and saves it to a file... from where Navision can handle it...

    - Arol
  • Options
    John_TegelaarJohn_Tegelaar Member Posts: 159
    Don't have the XMLHTTPServer docs nearby, but you should be able to direct the output into a OutStream, then use this as InStream for the Load (not LoadXML, that's for UTF-16 coded docs) method of the DOMdocument.

    Streams can be of any length, and are a supported variable type in Attain.

    John
  • Options
    arnaroarnaro Member Posts: 29
    Hello... once again Attain... hehe...

    I know Attain supports streams, but as is none of our customers has Attain so ....

    Anyways the ocx works fine, im going to add some features to it, but regretfully its not owned by me so I wont be able to post it, but Ill be happy to give instructions on how to do it should anyone be intersted.

    - Arol
Sign In or Register to comment.