473,473 Members | 2,286 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

A little confused...

I am trying to discern the difference between creating a web service or
using IIS Virtual Directory Management for SQL Server Utitly if I want
to provide xml data from a database.

I have created some xml templates that will allow a user to access the
data in xml format when entering the http:// address. Its pretty quick
and easy to do once the virtual directory is configured through sql.

Is creating a web service to provide xml data from a database as
straighforward?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
4 1192
If you load your data into a DataSet, it is extremely simple. You just
create a WebMethod that queries the database and returns a DataSet loaded
with the results.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Amy Snyder" <am**@yahoo.com> wrote in message
news:ug**************@TK2MSFTNGP12.phx.gbl...
I am trying to discern the difference between creating a web service or
using IIS Virtual Directory Management for SQL Server Utitly if I want
to provide xml data from a database.

I have created some xml templates that will allow a user to access the
data in xml format when entering the http:// address. Its pretty quick
and easy to do once the virtual directory is configured through sql.

Is creating a web service to provide xml data from a database as
straighforward?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2
It seems there is more work involved with the web service. I guess I
am trying to understand why (if at all) you would use the webmethod
versus the xml template. Are there certain instances that would
determine which is better to use?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
Well, your original question was if using Web Services was "Is creating a
web service to provide xml data from a database as straightforward?" I
believe my answer was intentended to brielfy indicate "yes." If the question
is "Is creating a web service to provide data from a SQL Server database as
straightforward" I would have to say "no." In other words, if you''re
talking about databases in general, it is quite simple to transform a result
set (or any other kind of data) into XML using Web Services. However, as SQL
Server can do this without Web Services, it is not necessarily necessary
(depending upon your requirements) to use the extra step.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Amy Snyder" <am**@yahoo.com> wrote in message
news:O2**************@TK2MSFTNGP12.phx.gbl...
It seems there is more work involved with the web service. I guess I
am trying to understand why (if at all) you would use the webmethod
versus the xml template. Are there certain instances that would
determine which is better to use?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4
Just a bit more, if it will help. For example, if you want to expose data
via HTTP over Port 80, you would have to use Web Services. This might be
necessary for any number of reasons, such as firewall issues.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Amy Snyder" <am**@yahoo.com> wrote in message
news:O2**************@TK2MSFTNGP12.phx.gbl...
It seems there is more work involved with the web service. I guess I
am trying to understand why (if at all) you would use the webmethod
versus the xml template. Are there certain instances that would
determine which is better to use?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #5

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

Similar topics

23
by: stewart.midwinter | last post by:
No doubt I've overlooked something obvious, but here goes: Let's say I assign a value to a var, e.g.: myPlace = 'right here' myTime = 'right now' Now let's say I want to print out the two...
2
by: Charlie T | last post by:
Hello, I am a little confused... please help: ----------------------------------- <DIV id="01"> <DIV id="aNum"></DIV> <DIV id="bNum"></DIV> <DIV id="cNum"></DIV> </DIV>
1
by: Jeff Uchtman | last post by:
I have read 10000 opinions on returning random records and I am more confused now that before I started. I have a small access db that will contain 20 or so rows with 3 or 4 columns. I like to...
3
by: Laszlo Szijarto | last post by:
In using the BitArray class to parse a single byte, I noticed that the bits show up in Little Endian order. Aren't bits always arranged in Big Endian order? I'm a bit confused and would...
2
by: Daniel | last post by:
I'm new to .Net and all of its abilities so I hope this makes sense. Basically I'm confused on when is the appropriate time to use web forms controls vs. regular HTML. For example in ASP...
14
by: CMM | last post by:
Do the developers of Visual 2005 actuall use it??? There's lots of great things in VS2005 (mostly related to the outstanding work done on the CLR)... but in general the LITTLE THINGS totally drag...
6
by: manochavishal | last post by:
Hi , Ihave this code to show binary of an integer. #include<stdio.h> #include<stdlib.h> typedef struct binary* binaryptr; typedef struct binary { int data;
16
by: mdh | last post by:
Can someone look at this little program and tell me why the last line is not compiling. #include <stdio.h> int main (){ int i, j, k; i=0;
1
by: shapper | last post by:
Hello, I need to create a data object to hold a number of records with 3 columns. A datatable would do. My problem is this: 1. I will use this as a GridView datasource. 2. I will need to...
4
by: mattmao | last post by:
I am moving onto the tough part in learning C:( First, about the declaration of a user defined structure: I found this syntax in my lecture notes: struct userinfo { char username; ...
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
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...
1
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.