Can a web service offer ASP pages?

Posted on 2007-08-05
Last Modified: 2013-12-17
I have never architected my own web service, and wonder if it's possible for one to offer up an ASP page?  Can a web service have a GUI?, is the question.

If so, how would that work both codewise and program logic wise.  What's an example of this kind of functionality?

Question by:newbieweb

    Author Comment


    and if it's possible to offer ASP pages, can it then have links to HTML pages on the same machine?
    LVL 11

    Expert Comment

    I think of web services as remote propcedure calls. So, I could develop a web service call that returned whatever data I wanted - including a bunch of HTML. But, why would you do this? Who is going to consume (display) the page?)

    A web service can't have a gui, since it is just a remote procedure call. But, you certainly can use it to feed a gui.


    Author Comment

    Can I have an ASP application and a web service running on the same website?  Is that what you mean by feeding a gui?

    LVL 11

    Accepted Solution

    Yes, they can run on the same site. Typically on your IIS server, you might have one site, say, "Default Web Site" and on that site have several ASP and/or applications - which I tend to call (perhaps inaccurately) "virtual directories."

    So you would have a virtual directory for your web service. And you would have a virtual directory for your web pages, and, for that matter, you might very well have a virtual directory dedicated to publishing your windows forms applications (if they are to be deployed and maintained as clickonce applications).


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    734 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

    23 Experts available now in Live!

    Get 1:1 Help Now