Click here to Skip to main content
15,610,517 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can any one plz tell me difference between those two
and how to consume live web services like weather,Scores etc ..

Thank you in Advance.

Web services and assemblies cannot really be compared together.

Assemblies are .Net compiled code -[^].

Web Services are means to make your application interoperable and accessible to consumer. -[^].
Share this answer
Abhinav S 9-Feb-14 23:33pm    
Thanks Tadit.
Refer - WCF/WF - Web Services Vs Class Libraries[^].
Web Service
A web service is a collection of protocols and standards used for exchanging data between applications or systems. Software applications written in various programming languages and running on various platforms can use web services to exchange data over computer networks like the Internet in a manner similar to inter-process communication on a single computer. This interoperability (e.g., between Java and Python, or Windows and Linux applications) is due to the use of open standards
More details:
Class Library
A set of reusable objects which may be used within the context of a framework but may also be used as stand-alone objects.
In .NET terms
The .NET Framework class library is a library of classes, interfaces, and value types that are included in the .NET Framework SDK. This library provides access to system functionality and is designed to be the foundation on which .NET Framework applications, components, and controls are built.
More details
Share this answer
Abhinav S 9-Feb-14 23:27pm    
Thanks a lot Abhinav... :)
A.Girish 9-Feb-14 23:33pm    
Ok then.. i had seen some webservices which are offline not using any Internet facility for Doing CRUD operations.
They just open WCF project adn fill it with code build it and used the link as a reference for application .Is there offline and online webservices .It seems we are using that wcf as a class library .Can you plz explain tell me the exact classs library usage in

Thank You
If the WebSerive/WCF Service is not online and it included in the same project or solution as the client, then it is an offline service. It would still work as it is hosted locally.

But when you host your app online, you also need to host the service as you need to give the reference link in client. You can also add the relative path as a endpoint.

so, whatever may be the scenario, the Web Service are meant for communication between systems through some protocols. I would suggest you to go through the Basics that is "ABC" (Address, Binding and Contracts). Then only you will come to know that there are many differences.

You can access Web Service from Browser and consume it in a html page also, while a Class Library can't. Web Service can be secure with help of https binding and so on....

So, search, learn and explore.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900