473,320 Members | 2,029 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,320 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.
Jul 19 '05 #1
1 1428
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.

Jul 19 '05 #2

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

Similar topics

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: 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...
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
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.