I create a Webservice that has only 2 methods.
One of then return a string "Hello Word" that works ok.
The other one returns a Dataset that doesn't work. When I calls this method
the error "There is an error in XML document (1, 220)." is thrown. I don't
know what's is wrong.
Could someone help me? 2 1976
Hello,
Is quite strange. Are you using minus, dot, or forbidden characters like
<, >, & ?
Try to create a simple DataSet, with one dummy column row and see what
happens.
As a workaround, there is a function from the DataSet that let's you
store the XML of the dataset in one string (was it GetXml?), try to do it so
and if it works just send the string in the web service (the caller will
build it up when he gets the response).
Good Luck
--
/// ------------------------------
/// Braulio DÃ*ez Colaborador DNM
///
/// http://www.dotnetmania.com
/// My Site (.net Tips): http://www.bdiez.com
/// ------------------------------
"Mauricio Pires" wrote: I create a Webservice that has only 2 methods. One of then return a string "Hello Word" that works ok. The other one returns a Dataset that doesn't work. When I calls this method the error "There is an error in XML document (1, 220)." is thrown. I don't know what's is wrong. Could someone help me?
Hi Btraulio,
I noticed that the issue occurs when I run the control with UserControl
TestContainer only. If I put the control in a Windows Form, it works ok.
"Braulio Diez" wrote: Hello,
Is quite strange. Are you using minus, dot, or forbidden characters like <, >, & ?
Try to create a simple DataSet, with one dummy column row and see what happens.
As a workaround, there is a function from the DataSet that let's you store the XML of the dataset in one string (was it GetXml?), try to do it so and if it works just send the string in the web service (the caller will build it up when he gets the response).
Good Luck -- /// ------------------------------ /// Braulio DÃ*ez Colaborador DNM /// /// http://www.dotnetmania.com /// My Site (.net Tips): http://www.bdiez.com /// ------------------------------
"Mauricio Pires" wrote:
I create a Webservice that has only 2 methods. One of then return a string "Hello Word" that works ok. The other one returns a Dataset that doesn't work. When I calls this method the error "There is an error in XML document (1, 220)." is thrown. I don't know what's is wrong. Could someone help me? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 returned as DataSet.
Now, here's the problem. On .NET Framework 1.1, if any rows in the dataset
returned contain errors (marked by calling the SetColumnError() method or
|
by: Programatix |
last post by:
Hi,
I'm working on a project which includes XML WebServices and Windows Form
application.
The Windows Form application will call the XML WebServices to retrieve data
from database. The data will be returned as DataSet.
Now, here's the problem. On .NET Framework 1.1, if any rows in the dataset
returned contain errors (marked by calling the SetColumnError() method or
|
by: Tim Gallivan |
last post by:
Hello group,
I'm trying to develop a proof of concept webservice which asynchronously
calls a function in a DLL. The function raises an event when it is finished,
and works when used as part of a windows form. When I try to hook up the
webservice to the event and call the WS, the CPU goes to 100% and I have to
restart the WWW service.
Does anyone have an idea as to how this can be done ... and if not,
directions to a tall bridge would...
|
by: mtv |
last post by:
Hi all,
I have the following code:
================================
Webservice side:
public class MyWS: WebService
{
private myLib.DataObject curDataObject;
|
by: Nalaka |
last post by:
Hi,
I created a sinple web service that returns a dataSet.
Then I created a client program that uses this web service (that returns the
Dataset).
My question is, how did the client figure out to create a "DataSet" as the
return type from the webservice?
| |
by: Steve |
last post by:
I have a windows CE application, talking to a C# WebService. In the
WebService project I have created a dataset (dsJobList), and there is a web
method in there which returns a fully loaded dsJobList dataset to the client,
which in this case is a windows CE device.
In the code for my application on the WinCE device, I have added a Web
Reference to this WebService. Once I have added it I can see the .disco, the
..wsdl and a dsJobList.xsd...
|
by: Asaf |
last post by:
Hi,
I have a MSSQL 2005 test DB with two tables:
Table "T1Customers":
T1CustomersRowEnum (PK, int, Not Null)
T1CustomersFullName (nvarchar(50) null)
Table "T2Details":
|
by: Mike |
last post by:
Hi,
I'm delevloping a webservice that returns typed datasets with visual
studio 2005. The problem is, that the typed data set in the client app
is not the same as in the webservice. If I change the property
'NullValue' of the row to (empty) the dataset on the client does still
throw an exception. I added a column to see if the project updates the
reference.cs - and it does!
This is the generated code from the original dataset:
|
by: Rob C |
last post by:
I have several methods implemented in a webservice written in C#. The
methods execute SQL against a SQL Server 2005 db and returns a Dataset (as
XML). I am utilizing the webservice from a VC++ app by adding the web ref to
the project which creates the header file for making the calls. I traced
through the method call in my app and found the problem in the
CAtlHttpClientT<TSocketClasstemplate implementation. The problem is
happening in...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |