[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2004-10-23
2
Medium Priority
?
356 Views
Last Modified: 2008-02-26
I have an asp.net 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 'http://www.xxxx.com/asp.net/WebService.asmx?wsdl'.
  - 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.

0
Comment
Question by:MrMain
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Accepted Solution

by:
CJ_S earned 750 total points
ID: 12387759
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).

CJ.
0
 

Author Comment

by:MrMain
ID: 12443561
Thanks,

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

Thanks
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

656 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