• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

vb.net and web services

I would like to know what web services are used for in vb.net.
I know that we can develop a web application, but don't know what webservices are used for?

any simple explanation?

thanks
0
jskfan
Asked:
jskfan
  • 2
1 Solution
 
arif_eqbalCommented:
Web Services are used when you have a distributed architecture, earlier days we used to have DCOM etc.
They have been replaced by this industry standard way of exchanging data between two hetrogenious systems.

Imagine a scenario where you are developing an end to end solution for a chain of Store, they have shops in many cities in the country. You would develop the application in VB.NET and install it at each location, Now assume there's a bargain section for the store where they give some discount which is decided every day morning. How do you handle that, one way is the person from the main office calls up every store and each store does an entry in their system for the current discount.

The same app with a Web Service would have a web Service running at the main store, the person enters the daily discount at one place and the app running at each store queries this web service to get the latest discount.

Its just a trivial eg. But imagine scenarios for companies dealing in Foreign Exchange, Stock Market, their system can connect to the Main stock Market web service and keep getting latest quotes say every minute. The Stock Market might be running Main Frames still our VB.NET app would be able to query the Stock Quotes.

So basically Web Service is a way of communicating or data excahnge between two entirely different applications (one Jave one VB.NET) and located miles apart. So you can think of thousands of uses for it, a company running VB.NET app placing order to its Vendor's application which is in Java and so on

0
 
jskfanAuthor Commented:
1- If I understand, even if we develop a web application with vb.net it will be usefull only for clients that have the vb.net application deployed.

2- if we develop a web service application with vb.net , how are we going to deploy it so that  other systems can access it?

3- if we have a web application developped by vb.net , can we convert it to a web service application and deploy it to different systems, or do we have to develop a new web service application from scratch?


thanks

0
 
arif_eqbalCommented:
>>   If I understand, even if we develop a web application with vb.net it will be usefull only for clients that have the vb.net application deployed.

NO, Web Services are a standard way of data interchange between aplications, your web service written in vb.net can be called from an app/web site written in Java/JSP or for that matter any or most of the languages. Also the vice versa, a Java web service can be called by vb/c# etc.

>> if we develop a web service application with vb.net , how are we going to deploy it so that  other systems can access it?
You deploy it on a Web Server just like you do a normal web site, then the clients who want to call your web service use UDDI to look for your web service and use a proxy to call your web service, look for these terms on the net for more info, just for deploying issues refer
     http://www.startvbdotnet.com/web/deploywebservice.aspx

>>  if we have a web application developped by vb.net , can we convert it to a web service application and deploy it to different systems, or do we have to develop a new web service application from scratch?

Web Services are a type of App in VS.NET so you need to first create Web Services application, this of course you need to do manually (from scratch, i.e. you do not have a wizard as far as I know) But then once you have an empty Web Services app you can use existing Classes etc. i.e. you can add reference to the DLL and use the classes/functions from another assembly.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now