473,408 Members | 2,888 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,408 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 1432
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.