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

web service returns dataTable

hello
I have a web service method named "gettable" that returns DataTable from my
database using table adapter.getData(), but when I call it from my winform
client it says that method returns 'gettableResponseGettableResult' type,
so I can't show it in datagrid on my form.

can anyone help? thanks


--
If a "7–11" is open 24 hours a day, 365 days a year, why are there locks on
the door?

—Nick Featherman
Mar 3 '07 #1
5 2656
Bllich <bl********@DELETEyahoo.comwrote in
news:Xn**********************@195.29.150.88:
hello
I have a web service method named "gettable" that returns DataTable
from my database using table adapter.getData(), but when I call it
from my winform client it says that method returns
'gettableResponseGettableResult' type, so I can't show it in datagrid
on my form.

can anyone help? thanks
solved

--
If a "7–11" is open 24 hours a day, 365 days a year, why are there locks on
the door?

—Nick Featherman
Mar 3 '07 #2
Bllich wrote:
Bllich <bl********@DELETEyahoo.comwrote in
news:Xn**********************@195.29.150.88:
>I have a web service method named "gettable" that returns DataTable
from my database using table adapter.getData(), but when I call it
from my winform client it says that method returns
'gettableResponseGettableResult' type, so I can't show it in datagrid
on my form.

solved
As a side note: I find it rather pointless to spend
a lot of CPU cycles converting a .NET specific data
structure to a technology independent format and
back again.

Arne
Mar 4 '07 #3
Arne Vajhøj <ar**@vajhoej.dkwrote in news:45ea384e$0$90271$14726298
@news.sunsite.dk:
As a side note: I find it rather pointless to spend
a lot of CPU cycles converting a .NET specific data
structure to a technology independent format and
back again.

Arne
hy
i have a 3-layer aplication with web service syncronising the changes
while many client's update the database..

can you explain a bit more..

just querying the database with sql commands doesn't solve my issue
...at one point I have to draw semantic net from database to my client app
and make it drag-n-drop editable
Ivan

--
If a "7–11" is open 24 hours a day, 365 days a year, why are there locks on
the door?

—Nick Featherman
Mar 4 '07 #4
Bllich wrote:
Arne Vajhøj <ar**@vajhoej.dkwrote in news:45***********************@news.sunsite.dk:
>As a side note: I find it rather pointless to spend
a lot of CPU cycles converting a .NET specific data
structure to a technology independent format and
back again.
i have a 3-layer aplication with web service syncronising the changes
while many client's update the database..

can you explain a bit more..

just querying the database with sql commands doesn't solve my issue
..at one point I have to draw semantic net from database to my client app
and make it drag-n-drop editable
No matter what you are doing then you can do the same
moving the data as binary data. And Java/PHP etc. can
not use a DataTable so the service is already tied to
..NET !

Arne
Mar 5 '07 #5
Arne Vajhøj <ar**@vajhoej.dkwrote in news:45eb7ef2$0$90264$14726298
@news.sunsite.dk:
No matter what you are doing then you can do the same
moving the data as binary data. And Java/PHP etc. can
not use a DataTable so the service is already tied to
.NET !

Arne
true

--
If a "7–11" is open 24 hours a day, 365 days a year, why are there locks on
the door?

—Nick Featherman
Mar 5 '07 #6

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

Similar topics

4
by: Tim | last post by:
I need to create a C# service that will run a stored procedure which returns a result set. From there I need to create a file using the result set in a specific format. The format could be fixed...
12
by: Noel | last post by:
Hello, I'm currently developing a web service that retrieves data from an employee table. I would like to send and retrieve a custom employee class to/from the webservice. I have currently coded...
4
by: Tedmond | last post by:
Dear all, How to code a Web Service function that returns either a DataTable or DataReader to the clients? Or I should use other alternative? Thanks for any help! Tedmond
5
by: Jim Murphy | last post by:
In creating a C# web service, I am having trouble returning a DataTable object as the result of a web method. I have no problem returning native types like string or int, but cannot return a .NET...
9
by: jsoques | last post by:
Hello, I created a Web Service using .Net 2.0 that has a function that returns a DataTable. I can test the function from the web page when I access the .asmx from a browser on localhost and it...
4
by: Joseph Geretz | last post by:
I don't get it. A DataTable can't be returned, but a DataSet can. Yet a DataSet contains one or more DataTables. So obviously a DataTable must be serializable. So why not just let me return a...
15
by: Joseph Geretz | last post by:
I'm a bit puzzled by the current recommendation not to send Datasets or Datatables between application tiers. http://support.microsoft.com/kb/306134 ...
5
by: Frank Hauptlorenz | last post by:
Hello, I recognized some days ago, that returning a DataTable blocks my WCF-Service. Is this a known bug? If I add this table to a new DataSet() and return this, it works. Thank you, Frank
8
by: Lemune | last post by:
Hi, I'm developing window service application on C# 2005. The service is to read a new excel file on certain directory, and process it to database. The service work find on XP. But when I...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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...
0
jinu1996
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...

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.