473,382 Members | 1,766 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.

Problem with WebService when setting rows with error

Hi,

I upgraded my application from dotNetFramework 1.0 to dotNetFramework 1.1

When calling a WebService method which returns a dataset, I get the
following error,
"There is an error in XML doument (1,xxxxxxx)"

This error will be displayed if I use the following method for any datarow
contained in the dataset,
RowError
SetColumnError

May I know what went wrong.

Thanks.
Nov 19 '05 #1
1 893
Hi,

I've written a sample code for the WebService. Can anyone try it out?

<WebMethod()> Public Function GetTest() As DataSet

Dim ds As New DataSet

Dim dt As New DataTable

Dim row As DataRow

Dim i As Integer

dt.TableName = "TestTable"

dt.Columns.Add("TestColumn1", GetType(String))

dt.Columns.Add("TestColumn2", GetType(Integer))

ds.DataSetName = "TestDataSet"

ds.Tables.Add(dt)

For i = 0 To 10

row = dt.NewRow

row("TestColumn1") = "This is row " & i

row("TestColumn2") = i

dt.Rows.Add(row)

' The following code trigger the error after the DataSet

' is returned to the calling Window Form application

row.SetColumnError("TestColumn1", "Error message here")

Next

Return ds

End Function

The following the is code that should be located in the Window Form
application
Dim ws As SSM.WebServices.BookServiceSoap

Dim ds As DataSet

Try

ws = New SSM.WebServices.BookServiceSoap ' This should be the WebService
reference

ws.Credentials = System.Net.CredentialCache.DefaultCredentials

' Exception will be thrown when ws.GetTest returns

ds = ws.GetTest

Catch ex As Exception

MsgBox(ex.Message)

Finally

ws.Dispose()

End Try

Please help me out.

Thanks.

"Programatix" <pr*********@nospam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

I upgraded my application from dotNetFramework 1.0 to dotNetFramework 1.1

When calling a WebService method which returns a dataset, I get the
following error,
"There is an error in XML doument (1,xxxxxxx)"

This error will be displayed if I use the following method for any datarow
contained in the dataset,
RowError
SetColumnError

May I know what went wrong.

Thanks.

Nov 19 '05 #2

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

Similar topics

1
by: Programatix | last post by:
Hi, I upgraded my application from dotNetFramework 1.0 to dotNetFramework 1.1 When calling a WebService method which returns a dataset, I get the following error, "There is an error in XML...
6
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
2
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
1
by: Phill | last post by:
I have an PPC app that calls a web service which returns a dataset. I am trying to load this dataset into a SQL CE table called "Route_Sheets". It goes through the motions, but no data is...
2
by: Bruce Wiebe | last post by:
hi all im having a problem accessing a text file on my hard disk after ive created it and added some text to it it would appear that the file is still locked. What happens is this i have...
2
by: rakesh kumawat | last post by:
I am facing a problem while reading the result which is loaded in DOMDocument. In which I am sending a request to web service and getting a record of Single Order. This is my VB Code which is i am...
4
by: David | last post by:
Hi, (Sorry for duplicate post, finger trouble before I finished...) using C# 1.1 I am writing a winform app that collects a dataset from a webservice. At the same time I collect the data,...
5
by: jbenner | last post by:
I have opened a PMR for this with IBM, and am not asking for advice from the DB2 DBA community. I am posting this as an FYI that DB2 Health Monitor, even at the latest version of DB2, still can cause...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.