Re: web service on alternate port - HHTP 'Host' field incorrect
From: Cowboy (NoSpamMgbworld_at_comcast.netNoSpamM)
Date: 05/28/04
- Next message: Musravus: "HtmlInputHidden elements inside a UserControl to maintain page state"
- Previous message: Cowboy: "Re: OracleParameter C# ORA-24338: statement handle not executed"
- In reply to: robert: "web service on alternate port - HHTP 'Host' field incorrect"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 28 May 2004 07:56:49 -0500
You can manually edit the web reference once captured to "correct" the URL
called. I have not tried this with a port, but I have used it numerous times
to change URLs from development to test and production.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA ************************************************ Think Outside the Box! ************************************************ "robert" <anonymous@discussions.microsoft.com> wrote in message news:159817DB-6875-4505-BEAF-81FE3C0661D5@microsoft.com... > The 'add web reference' in Visual Studio 2002 seems to be broken a bit. > > If I have the wsdl available at > > http://myserver:8080/services/MyService.wsdl > > The Project -> Add Web Reference shows the correct WSDL. But after using 'Add Reference' the WSDL file is incorrect. It seems that the request for the WSDL from within VS sets the HTTP 'Host' field incorrectly, in that, it does not append the port, even thogh the request is being sent to the non-default port. According to the HTTP spec this is incorrect. > > When requesting the WSDL via the browser (IE, or the Project -> Add Web Reference) the 'host' field is set correctly. > > Is this a know bug? > > The work around is to manually edit the wsdl/generated class after retrieval to add the required port.
- Next message: Musravus: "HtmlInputHidden elements inside a UserControl to maintain page state"
- Previous message: Cowboy: "Re: OracleParameter C# ORA-24338: statement handle not executed"
- In reply to: robert: "web service on alternate port - HHTP 'Host' field incorrect"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|