473,382 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How do I import a large XML stream using VB6 or VB.NET

I built a webservice and it needs to pass large amounts of
data (50MB+). I built a VB6 test app that uses soap to
call the webservice. When the stream of data getting
passed back gets larger than 16MB then the VB app fails
("Run-time error '91': Object variable or With block
variable not set" - break occurs on line "Print #hFile,
Reader.RPCResult.Text- see code below.)

I think it's a limitation of RAM on the client machine but
cannot be sure. I can import a 16MB file on a 800Mhz
128MB system. I was able to import 22MB on a 2.1Ghz 256MB
system before getting this error. The soap code looks
like:
Set Connector = New HttpConnector

Connector.Property("EndPointURL")
= "http://172.31.1.1/SagittaWS/Transporter.asmx"
Connector.Property("SoapAction")
= "http://172.31.1.1/SagittaWS/PassThroughReq"

Connector.Property("Timeout") = 400000000 '@ 111 hours
Connector.BeginMessage

Set Serializer = New SoapSerializer
Serializer.Init Connector.InputStream

Serializer.startEnvelope
Serializer.startBody

'custom3

xmlMsg = "<PassThroughReq
xmlns=""http://172.31.1.1/SagittaWS"">"

xmlMsg = xmlMsg & "<XMLinput>"
xmlEncoded = "<INPUT>" & Contents & "</INPUT>"
xmlMsg = xmlMsg & xmlEncoded
xmlMsg = xmlMsg & "</XMLinput>"
xmlMsg = xmlMsg & "</PassThroughReq>"

Serializer.writeXML xmlMsg
Serializer.endBody
Serializer.endEnvelope
Connector.EndMessage

Set Reader = New SoapReader
Reader.Load Connector.OutputStream

If Not Reader.Fault Is Nothing Then
MsgBox Reader.faultstring.Text, vbExclamation
Else
Dim hFile
hFile = FreeFile()
Open App.Path & "\response.xml" For Output Access
Write As hFile
Print #hFile, Reader.RPCResult.Text

Close hFile
End If

Am I doing this correctly?
Thanks
Eric
Jul 21 '05 #1
0 1587

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jason Murry | last post by:
I have a camera system (Axis) which stores JPG via FTP 1-10fps. There is also a motion jpg live stream. I am trying to store these images either in JPG or in video format so they can be...
0
by: CannonFodder | last post by:
Hi all, I am new to .NET but have a problem and see two possible directions i could go, but i do not know which one to take. Let me explain my problem, i have a webservice which recieves...
0
by: zhimin | last post by:
Hi, I'm writing a program to send large file(100m) through dotnet using TCPListener & TCPClient, I'm sending the file with a ask and response loop: 1. Client send a flag 1 to server indicate it...
1
by: lwickland | last post by:
Summary: System.Net.ScatterGatherBuffers.MemoryChuck allocates inordinately large bytes when sending large post data. The following application consumes inordinate quantities of memory. My code...
3
by: A.M-SG | last post by:
Hi, I have a ASP.NET aspx file that needs to pass large images from a network storage to client browser. The requirement is that users cannot have access to the network share. The aspx file...
0
by: Eric | last post by:
I built a webservice and it needs to pass large amounts of data (50MB+). I built a VB6 test app that uses soap to call the webservice. When the stream of data getting passed back gets larger...
2
by: gauravkhanna | last post by:
Hi All I need some help for the below problem: Scenario We need to send large binary files (audio file of about 10 MB or so) from the client machine (.Net Windows based application, located...
10
by: Avi | last post by:
Hi I need to read in a large set of text files (9GB+ each) into a database table based on fixed width lengths. There are several ways to complete this, but I am wondering if anyone has...
7
by: iporter | last post by:
I use the code below to authorise the download of certain files. Thus, instead of linking to the file in a wwwroot directory, I link to this code with the filename as a parameter, and the script...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.