Solved webservice proxy classs generation using wsdl for a webservice residing in an application protected by forms authentication

Posted on 2004-10-23
Last Modified: 2008-02-26
I have an webservice that resides on my webserver within a virtual directory that has a web.config file forcing forms authentication.  If I move my webservice to a nonprotected directory, then I can generate my proxy class with wsdl without a worry.  But when trying to execute wsdl when the webservice resides in the protected directory/application, then I get the following error :

Error: There was an error processing ''.
  - The HTML document does not contain Web service discovery information.

I have tried specifying the username and passsword on the command line, but I get the same result.

What should I be doing here, changing my authentication method, or changing the way I generate and access my proxy class ?

Thanks in Advance.

Question by:MrMain
    LVL 22

    Accepted Solution

    When creating a webservice, a single virtual directory is created. This should also be so on the production server. Personally I think that a webservice should NOT ever reside at the same location of a website. Problems like yours could arise if you do so.

    If you create a seperate virtual directory you can also set other settings. For exam,ple you could make use of windows authentication or even create a new application pool (so it has it's own memory management and cannot interfere with the actual website).


    Author Comment


    I have taken your suggestion on-board and have moved onto authenticating via the SoapHeader in a separate virtual directory.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    This video Micro Tutorial is the first in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 ( But the ability to create custom scanning profiles al…

    913 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

    17 Experts available now in Live!

    Get 1:1 Help Now