Re: web service on alternate port - HHTP 'Host' field incorrect

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Cowboy (NoSpamMgbworld_at_comcast.netNoSpamM)
Date: 05/28/04


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.


Relevant Pages

  • RE: Consuming Web Service without Web Reference
    ... Eventhough I extracted schema from WSDL iam not able to call the web service. ... Generally, when you add a web reference, the orchestration web port contains ... You've said you've created a proxy class that is added as a reference to the ...
    (microsoft.public.biztalk.general)
  • Re: web service
    ... Can you send a screenshot of the "Add Web Reference" dialog box after you ... I have just tried that web service you specified, and got the WSDL displayed ... ok and was able to generate a proxy class in C# just fine. ...
    (microsoft.public.cert.exam.mcad)
  • RE: Consuming Web Service without Web Reference
    ... calling a web service than creating an xml and pushing it to the SOAP adapter. ... Generally, when you add a web reference, the orchestration web port contains ... You've said you've created a proxy class that is added as a reference to the ...
    (microsoft.public.biztalk.general)
  • Query on typing SoapService methods : Prev: Confused WS, SOA
    ... SoapReceiver, does now allow me to query Myservice.ashx?wsdl to return ... on another machine to create some proxy code classes. ... my wsdl on my initial attempts so far seems to have generated ... Which in the (VS Add Web Reference) proxy generated becomes ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • RE: Unable to add Web Reference in Visual Studio 2008 on Win 2003
    ... Well, from the webbrowser behavior, that means the wsdl page doesn't ... Microsoft MSDN Online Support Lead ... That means I am trying to add a web reference and Visual Studio itself is ... Microsoft Web Services Description Language Utility ...
    (microsoft.public.vsnet.general)