VARIANT and InStream

JTPro
Member Posts: 169
Hello all,
I need to get a content of the http site. I'm using client version 3.7.
I tried to make something like that:
ResponseStreamVariant := XmlHttp.responseStream;
ResponseInStream := ResponseStreamVariant;
, but I receive following error:
"This data is not supported by C/SIDE. You can access data from any of the following data types:..."
Do you know different way of retrieving a data from the http site. This is a 3.7 version, so BigText cannot be used.
Looking forward to your response
Best regards,
JTPro
I need to get a content of the http site. I'm using client version 3.7.
I tried to make something like that:
ResponseStreamVariant := XmlHttp.responseStream;
ResponseInStream := ResponseStreamVariant;
, but I receive following error:
"This data is not supported by C/SIDE. You can access data from any of the following data types:..."
Do you know different way of retrieving a data from the http site. This is a 3.7 version, so BigText cannot be used.
Looking forward to your response
Best regards,
JTPro
Navision Application Version: 4.0SP1
Navision Database Version: 4.0
Navision Database Version: 4.0
0
Comments
-
Hello,
I've had the same problem. It's to bad you can't use BigText in 3.7..
I solved it with some C# code..public string GetUrlContent(string url, string user, string pass, string saveto) { try { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Credentials = new NetworkCredential(user, pass); request.PreAuthenticate = true; HttpWebResponse response = (HttpWebResponse)request.GetResponse(); FileStream writeStream = new FileStream(saveto, FileMode.Create, FileAccess.Write); ReadWriteStream(response.GetResponseStream(), writeStream); } catch (WebException ex) { return ex.Message; } catch (Exception ex) { return ex.Message; } return ""; }
..combined with How to create a Navision dll/ocx in Visual Studio 2005 .NET and it worked
Let me know if this is what you mean..Met vriendelijke groet, best regards,
Rvduuren0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions