WS Client Protocol port problem?

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default WS Client Protocol port problem?

    The 'add web reference' in Visual Studio 2002, along with WSDL.exe is broken. It seems that it is a problem with th

    MS Web Services Client Protocol 1.0.3705.288, as both VS .Net and WSDL.exe use this to access the wsdl

    If I have the wsdl available a

    [url]http://myserver:8080/services/MyService.wsd[/url]

    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, as the protocol is

    Is this a know bug? Has it been corrected in a later release

    The work around is to manually edit the wsdl/generated class after retrieval to add the required port

    robert Guest

  2. Similar Questions and Discussions

    1. What is the format of 'binary' data in the postgresql client/server protocol version 3
      Guys, I am in the middle of implementing postgresql's client server protocol and I have run into a little issue. The spec says that in general...
    2. Form Problem after Publish with http protocol
      Any help would be greatly appreciated. I have published my web site using http protocol but the form still does not work. I set the form...
    3. client port number
      Is there a way Informix can return the port number of the client it uses to talk to for a connection. We need this to identify some connections...
    4. TNS-12560:Protocol adapter error from client side only...
      I am getting a strange symptom: tnsping and sqlplus work fine on my LINUX server (neo) so the listener and DB are OK. However, from my remote XP...
    5. Client does not support authentication protocol MYSQL
      Just thought I would post a solution (temporary at best, but a solution at least.) for all those using PostNuke who have upgraded MySql to 4.1. I...
  3. #2

    Default Re: WS Client Protocol port problem?

    > Is this a know bug?
    Yes.
    > Has it been corrected in a later release?
    Yes.

    In .NET Framework v1.1, the problem no longer occurs.
    >
    > The work around is to manually edit the wsdl/generated class after
    retrieval to add the required port.
    >
    Alternatively, you could manually specify the Url on the proxy class at
    runtime.

    eg

    service = new MyProxy();
    service.Url= "http://myhost:8080/whatever.asmx";
    result= service.Method(...);


    Dino Chiesa [Microsoft] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139