473,397 Members | 2,099 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,397 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 1589

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.