G
Guest
The 'add web reference' in Visual Studio 2002 seems to be broken a bit
If I have the wsdl available a
http://myserver:8080/services/MyService.wsd
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.
If I have the wsdl available a
http://myserver:8080/services/MyService.wsd
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.