Solved

what is asp.net web servce ?

Posted on 2011-09-29
6
354 Views
Last Modified: 2012-08-13
what is asp.net web servce ?
what purpose it can use at ?
how to clear understand without difficulty ?

0
Comment
Question by:tamilsoft
6 Comments
 
LVL 25

Assisted Solution

by:Luis Pérez
Luis Pérez earned 150 total points
ID: 36815906
I'll try to give you the more simple information.

You use Visual Studio (or WebMatrix or something else) and ASP.net to create web sites. Your web site contains .aspx pages; those .aspx pages are called by browsers and render as HTML code to the browser that calls them. Normally, the .aspx pages provides an user interface.

Web services are a different type of component in your ASP.net web site. As well as you can provide pages in your site, you can also provide web services. Think in web services as they were "functions" that you can call (event passing parameters) from outside your web (you can call it from another web site, or from a Windows application... or from somewhere else) and they return XML.

So imagine that you work in a big weather company. Your company has a great website (made in ASP.net) providing weather information. But the web site can also contain a web service that, when called -for example passing a postal code as a parameter- returns (in XML) information about the weather in that postal code. You can sell this information to another companies that want to show weather information in their web sites.

A web site can contain many web services (many "functions"), the same way it contains many pages. Even you can create a web site without pages, only web services.

Your web service will provide a public URL (for example, "www.weathercompany.com/weatherInfo.asmx") for calling it. Of course, you can deal with complex classes for parameters as well as for output results, because .Net built-in serialization capabilities can transform those complex classes in XML.

I hope now it's clear to you.
0
 
LVL 1

Assisted Solution

by:THBA
THBA earned 200 total points
ID: 36815999
http://msdn.microsoft.com/en-us/library/t745kdsh.aspx

It is just a web service written in ASP.NET (like c#, Visual Basic .NET, etc...)
Web Service can also be written in Java, php, and other languages.
0
 
LVL 1

Assisted Solution

by:dannocracker
dannocracker earned 50 total points
ID: 36816195
A web service provides functionality without a UI. It provides data or behavior that other apps request. The web server provide http protocol access to it but the payload is usually a xml message standard format such as SOAP.
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 12

Assisted Solution

by:Kaushal Arora
Kaushal Arora earned 50 total points
ID: 36816224
0
 
LVL 1

Accepted Solution

by:
THBA earned 200 total points
ID: 36857297
Just think of a web service like a public library of functions accessible from a web server.  Normally, if you have a console application,  You can use someone else's functions (from their library) to query a database. So, another team member can write a function called GetTotalSales(companyID). They put the function in a dll. You include the dll as part of your reference in Visual Studio. You can now call the function GetTotalSales.

Let's say, you are writing a page on your company website.  The other team member can put that function on a webserver and make it a web service. That way, they do not have to distribute the dll. If they need to make a change to the function, they change it on the web server. Your application (using Visual Studio, you have a web service as a reference) calls the function the web service.  The main advantage of a web service is that  there is no need to re-distribute the library to everyonewho's using your functions -- especially after a change to the function.  
0
 

Assisted Solution

by:anandblitz
anandblitz earned 50 total points
ID: 36890180
Web services are components on a Web server that a client application can call by making HTTP requests across the Web. ASP.NET enables you to create custom Web services or to use built-in application services, and to call these services from any client application.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question