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

XML WebService ASP.NET

Hello - I am very new to the .NET environment, so please be paitent - Can
anyone point me to a very basic example of a project that takes an XML
stream from a web page and sends it to a ASP.NET Web Service that can then
be used to pull records from a SQL Server DB. Like I said I am green at
this, so the more basic it is the better. I am reading about having to
serialize, etc... but not sure about it all yet.

Thanks in advance.
Nov 12 '05 #1
2 1439
I don't know off the top off my head, and you're trying to do quite a few
diverse things for a beginner but let me try to give you some pointers:

you can read POSTed XML data from the request's InputStream:

using System.IO;
....
String postData = new StreamReader( Request.InputStream ).ReadToEnd();

how to write and consume a web service is explained in [0] and you can find
very basic examples on ADO.NET at [1].

You're biting off a big piece if you're totally new to the environment. You
may at least want to take a look at the .NET Framework SDK documentation
that's conveniently located on your local hard drive, or maybe you want to
pick up a book and get familiar with the basics.
--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

[0] http://samples.gotdotnet.com/quickst...gservices.aspx
[1] http://samples.gotdotnet.com/quickstart/howto/

"Scott" <sm*****@siuins.com> wrote in message
news:eg*************@tk2msftngp13.phx.gbl...
Hello - I am very new to the .NET environment, so please be paitent - Can
anyone point me to a very basic example of a project that takes an XML
stream from a web page and sends it to a ASP.NET Web Service that can then
be used to pull records from a SQL Server DB. Like I said I am green at
this, so the more basic it is the better. I am reading about having to
serialize, etc... but not sure about it all yet.

Thanks in advance.

Nov 12 '05 #2
Hi Scott,

Christoph provided a valuable response. If you're new to .NET Xml Web
Service, there's some basic knowlege you have to know. Here's an article
about how to build a simple web service application in VS .net. Hope it
helps.

http://msdn.microsoft.com/library/de...us/vsent7/html
/vbwlkwalkthroughbuildingwebservicewithmanagedcode. asp

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 12 '05 #3

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

Similar topics

8
by: DraguVaso | last post by:
Hi, I'm new to WebServices, and I'm doing some tests (with a small VB.NET-application) to know the performance-difference between a WebService and the 'normal'-way of getting data (just...
6
by: Davie | last post by:
I want to authorise a user of a web service by using the AuthHeaderValue for some reason I keep getting a null reference exception when I try to run the following code: It seems to work fine on a...
1
by: Nalaka | last post by:
Hi, I am testing with Visual studio 2005, web projects. Situation: I have one solution with two web projects, created as file system projects. (I am tesing using the built in server, not IIS)...
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
7
by: Alessandro Benedetti | last post by:
Hi. I'm calling two methods of a .NET Webservice (A) from another Webservice (B). The A Webservice is made like this: public class WSA: System.Web.Services.WebService { private int X = 0;
7
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...
5
by: AliR | last post by:
Hi Everyone, I have a Visual C++ MFC program, and I am trying to use a webservice written in C#. When I add the webservice to my project using Add Web Reference the sproxy compiler complains...
5
by: | last post by:
Hi, How long do webservice objects live for? In particular, if i have static variables filled with data from a static constructor in a webservice, how long will that data persist? thxs
0
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi All, Problem in deploying my WebService developed using Asp.net WebServices 2005. I have designed simple WebService using Asp.net Webservices 2.0 , The webservice look this , using System;...
4
by: =?Utf-8?B?QmlsbEF0V29yaw==?= | last post by:
Hi, We recently converted a 1.1 project to 2.0 and this included a webservice which accepted XML for one of the parameters. Since converting to 2.0 I am getting the following message: --- A...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.