Solved

what is asp.net web servce ?

Posted on 2011-09-29
6
343 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now