With the addition of Web Services, exchanging data and processing code with Microsoft Dynamics NAV from an external source became a relatively simple task. By exposing an XMLPort, working with class object and binding to the underlying data allows for an easy way to exchange data with Microsoft Dynamics NAV. If the requirement is to pass the text (string) output of the XMLPort as text you can pass it through as a BigText variable.
// Get Recordset
//Set the view for the XMLPort
// Use the TempBlob record to get a blob stream
// export the contents of the XMLPort to a blob
// Read the blob contents to the big text
The variables are declared as follows: