Can I combine a web service and several programs which use it in one project?

Posted on 2007-08-05
Medium Priority
Last Modified: 2013-12-17
I would like to create a web service, a Windows Form program which uses it, and an ASP web page which also uses the web service. Can I put these into one project?  Ifsohow do I getthem to interract?

I presume I will need to addd a web referece to the Windows Form program, like normal.  Is there as trick to adding a reference to the webservice in the same prioject?

How do I so this for an ASP application?

Question by:newbieweb
  • 2
  • 2

Expert Comment

ID: 19636175
asp or asp.net application?

Author Comment

ID: 19636196
I don't know the difference.  Just a program that will have a few windows and dialogs, running on the website, and will communicate with the database and maybe the web service.

Assisted Solution

sabeesh earned 400 total points
ID: 19636227
you can call web service from your asp.net application also, in your solution explorer you can see a webreference forler there you can add web reference like as  adding webreferences in windows applicaation

Author Comment

ID: 19636257
so what's the difference between ASP and ASP.NET?

I think I know the answer. I am working on Visual Studio 2005, so I am obviously on ASP.NET, right?
LVL 11

Accepted Solution

anyoneis earned 1600 total points
ID: 19636505
You can put them all in one solution. In fact, that makes it easier to debug and modify. You would have 3 projects: 1 for the WS, one for the forms application, and one for the ASP.NET application.

It sounds like you are a little fuzzy on the last one. When you create a web page - web application - you are creating something that requires IIS - a web ser, and your web page is deployed to the web server. In this regard, a web page is a lot like a web service. Both need to be deployed to IIS. (I'm using Microsoft terminology here)


Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month15 days, 13 hours left to enroll

850 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