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

Posted on 2007-08-05
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
    LVL 8

    Expert Comment

    asp or application?

    Author Comment

    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.
    LVL 8

    Assisted Solution

    you can call web service from your 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

    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

    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)


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    759 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

    10 Experts available now in Live!

    Get 1:1 Help Now