473,378 Members | 1,377 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,378 software developers and data experts.

sending array data to web service-setting instance of array

I am sending data to a web service thru asp.net vb
Connection to web service is good and the header data goes over but the
subdata which is an arra is not going. I can not set the instance correctly.
MHSA says
The SubUnitData element in the XML should be instantiated the following way:
TheForm.SubUnitData = New Form70002SubUnit(3)
You need to instantiate the SubUnitData with an array of Form70002SubUnit
objects.
but my code
TheForm.SubUnitData = New Form70002SubUnit(3)
'Dim subunitdata(3) As Form70002SubUnit
TheForm.SubUnitData(0) = NewSubUnit1
TheForm.SubUnitData(1) = NewSubUnit2
TheForm.SubUnitData(2) = NewSubUnit3
TheForm.SubUnitData(3) = NewSubUnit4
Gives me an (too many arguments for sub new) on the form70002Subunit(3)
I set the newsubunits up earlier in the code as follows:
Dim NewSubUnit4 As Form70002SubUnit = New
gov.msha.lakegovprod1.Form70002SubUnit
'Select Case fourth
' Case "06"
NewSubUnit4.Mode = "A"
NewSubUnit4.SubUnitCode = "06"
NewSubUnit4.NumberOfPersons = dr.Item(15).ToString
NewSubUnit4.NumberOfHours = dr.Item(16).ToString
NewSubUnit4.ShortTonCoalProduction = "0"

I have tried every combination of setting this mostly getting an object not
set to reference
Please help

Apr 10 '06 #1
0 1110

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

Similar topics

5
by: PerryG | last post by:
We have a .NET 1.1 client which is sending a gzipped soap request using HttpWebRequest to an Apache server. The Apache server is using a the 'mod_deflate' server to decompress the incoming...
2
by: anonymous | last post by:
Hi, I'am sending an xml string to a web service(which is written in c#) using the microsoft web services behavior. When I check this string from the web service I observed that some of the...
1
by: Henk | last post by:
Hi, I have a problem with sending a file. I have a client application that connects to a server and sends the string "data". Then it sends a file. If the server receives "data", the method...
4
by: OpticTygre | last post by:
I have a windows service, and a separate desktop application used to configure settings for the service. I'd also like to use the windows application as a sort of debug, or notification window, to...
0
by: Navin Mishra | last post by:
Hi, I've a service that connects to the clients via TCP and sends data on client's opened TCP port. The data is in XML and I use ASCII encoding. There is 8 byte of header containing length of...
7
by: John Bailo | last post by:
I wrote a c# web service that sends an XmlDocument as a return type. When I run it on a w2k iis machine, it takes 35s to 45s to send the data to a client (I wrote a smart client c# app to consume...
2
by: Jonathan Woods | last post by:
Hi there, I have encountered problem of losing data sending over internet using web service. I consume web service that connected Oracle Database. I submit 687 SOAP Messages to 1 Web Method...
7
by: D. Patrick | last post by:
I need to duplicate the functionality of a java applet, and how it connects to a remote server. But, I don't have the protocol information or the java source code which was written years ago. ...
1
by: nileshm | last post by:
I am working on PDA application which calls web service that fetches 40 customer details in one call. The call from PDA over GPRS takes between 4-6 minutes to fetch the data. 4 out of 5 calls fail....
3
by: Rotsey | last post by:
Hi, I am trying to send a object to a webservice and I get an serialisation error on the object saying "object not expected" add "XmlInclude or SoapInclude attribute" I have done this but...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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
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...

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.