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

Web services and bulk data

SB
I am implementing a web services and one of its methods can potentially
return Gb of data. I would like this to be implemented in an 'iterator' kind
of style. With this the client can get the count first and then use a method
to get certain number of records at a time.

My initial idea was to have one web method to return the count of records.
Another web method to return a user spcified number of records and have a
boolean flag to let the client know the last set of records or no more
records. I am thinking of maintaining the state and make this a stateful web
service. I am not sure whether this is the correct way of doing it.

I also heard somewhere about the 'conversational web services'. Is that
something really exist and with .NET?

--
Kind regards,
SB
Nov 21 '05 #1
2 2813

"SB" <SB@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
I am implementing a web services and one of its methods can potentially
return Gb of data. I would like this to be implemented in an 'iterator' kind of style. With this the client can get the count first and then use a method to get certain number of records at a time.

My initial idea was to have one web method to return the count of records.
Another web method to return a user spcified number of records and have a
boolean flag to let the client know the last set of records or no more
records. I am thinking of maintaining the state and make this a stateful web service. I am not sure whether this is the correct way of doing it.
This is certainly one way of doing it. The Google web service does it this
way too: you pass the index of the first desired search result and the web
service returns you 10 subsequent search hits. To get the next 10, you
increment the index by 10 and call the web service again. Note that the web
service does not need to maintain state for this to work since all the
necessary information is provided by the client in the call.

Another idea that comes to mind would be to simply return an Url (e.g.,
http://myserver/mybigdata.file) from the web service. The consumer could
then download the data using e.g., HTTP (with the WebRequest et al classes).

I also heard somewhere about the 'conversational web services'. Is that
something really exist and with .NET?


'Conversational web services' might refer to the WS-SecureConversation stuff
in WSE which is about securing multiple calls (i.e., a conversation) between
a consumer and a web service, rather than transferring a GB of data.

Regards,
Sami
Nov 21 '05 #2
SB
Hi Sami,

Thanks for your reply. Useful points in your reply. I think for transferring
data probably I will start with record count and data caching stuff. Your
auggesstion of sending the url and the cosumer fetching it also being looked
at to use in a different scenario.

I will have a look at the WS-SecureConversation and better understand it.

Regards,
SB
"Sami Vaaraniemi" wrote:

"SB" <SB@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
I am implementing a web services and one of its methods can potentially
return Gb of data. I would like this to be implemented in an 'iterator'

kind
of style. With this the client can get the count first and then use a

method
to get certain number of records at a time.

My initial idea was to have one web method to return the count of records.
Another web method to return a user spcified number of records and have a
boolean flag to let the client know the last set of records or no more
records. I am thinking of maintaining the state and make this a stateful

web
service. I am not sure whether this is the correct way of doing it.


This is certainly one way of doing it. The Google web service does it this
way too: you pass the index of the first desired search result and the web
service returns you 10 subsequent search hits. To get the next 10, you
increment the index by 10 and call the web service again. Note that the web
service does not need to maintain state for this to work since all the
necessary information is provided by the client in the call.

Another idea that comes to mind would be to simply return an Url (e.g.,
http://myserver/mybigdata.file) from the web service. The consumer could
then download the data using e.g., HTTP (with the WebRequest et al classes).

I also heard somewhere about the 'conversational web services'. Is that
something really exist and with .NET?


'Conversational web services' might refer to the WS-SecureConversation stuff
in WSE which is about securing multiple calls (i.e., a conversation) between
a consumer and a web service, rather than transferring a GB of data.

Regards,
Sami

Nov 21 '05 #3

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

Similar topics

2
by: Chris | last post by:
Any help would be appreciated. I am running a script that does the following in succession. 1-Drop existing database and create new database 2-Defines tables, stored procedures and functions...
2
by: php newbie | last post by:
Hello, I am trying to load a simple tab-delimited data file to SQL Server. I created a format file to go with it, since the data file differs from the destination table in number of columns. ...
5
by: me | last post by:
I'm also having problems getting the bulk insert to work. I don't know anything about it except what I've gleened from BOL but I'm not seeming to get anywhere...Hopefully there is some little (or...
7
by: iqbal | last post by:
Hi all, We have an application through which we are bulk inserting rows into a view. The definition of the view is such that it selects columns from a table on a remote server. I have added the...
6
by: pk | last post by:
Sorry for the piece-by-piece nature of this post, I moved it from a dormant group to this one and it was 3 separate posts in the other group. Anyway... I'm trying to bulk insert a text file of...
16
by: Philip Boonzaaier | last post by:
I want to be able to generate SQL statements that will go through a list of data, effectively row by row, enquire on the database if this exists in the selected table- If it exists, then the colums...
0
by: Kiran | last post by:
Hi, Does some one here know how to trigger export(bulk/non bulk) and use bulk import without having to manually edit the Xsd file before import. BTW I am assuming that XML is the correct choice...
11
by: Ted | last post by:
OK, I tried this: USE Alert_db; BULK INSERT funds FROM 'C:\\data\\myData.dat' WITH (FIELDTERMINATOR='\t', KEEPNULLS, ROWTERMINATOR='\r\n');
2
by: Ted | last post by:
I have BULK INSERT T-SQL statements that work for all of my basic data tables except for one. Here is the problem statement (with obvious replacement of irrelevant path info): BULK INSERT...
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: 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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.