Professional Web Applications Themes

Soap connect and dynamic proxy setting - ASP.NET Web Services

My customer uses automatic proxy settings, from a configuration script, as defined in Internet Explorer / Internet options / LAN settings. My program, in C++, can not connect to my web services server using a HttpConnector30object, even though I have stated: soapConnector->Property["ProxyServer"] = _T("<CURRENT_USER>"); soapConnector->Property["EnableAutoProxy"] = _T("TRUE"); However, if the user defines proxy server settings as adress:port my program succeeds to connect. Connect through IE works with automatic setting. Question: Is there a way to make my SOAP connect to use automatic proxy setting in the configuration file, the same way as IE does? -- Kenneth Jonsson Signifikant Svenska AB ...

  1. #1

    Default Soap connect and dynamic proxy setting

    My customer uses automatic proxy settings, from a configuration script, as
    defined in Internet Explorer / Internet options / LAN settings. My program,
    in C++, can not connect to my web services server using a
    HttpConnector30object, even though I have stated:
    soapConnector->Property["ProxyServer"] = _T("<CURRENT_USER>");
    soapConnector->Property["EnableAutoProxy"] = _T("TRUE");
    However, if the user defines proxy server settings as adress:port my program
    succeeds to connect. Connect through IE works with automatic setting.

    Question: Is there a way to make my SOAP connect to use automatic proxy
    setting in the configuration file, the same way as IE does?

    --

    Kenneth Jonsson
    Signifikant Svenska AB
    Industrivägen 19
    SE-171 48 Solna
    Sweden
    Tel: +46 76 858 00 15


    Kenneth Jonsson Guest

  2. #2

    Default RE: Soap connect and dynamic proxy setting

    Hi Kenneth,

    Try something like this:

    myproxy.v1 erviceProxy = new myproxy.v1();
    serviceProxy.Proxy = new System.Net.WebProxy("proxyURL", true);

    The first line is creating an instance of a web service proxy that I
    created with add web reference. The second line sets up the HTTP proxy
    server settings for that class to use by adding a WebProxy to the web
    service proxy. The overload I chose here assumes current user, and
    bypassing the proxy server for local addresses.

    I hope this helps

    Dan Rogers
    Microsoft Corporation

    --------------------
    >From: "Kenneth Jonsson" <kenneth.jonssonsignifikant.se>
    >Subject: Soap connect and dynamic proxy setting
    >Date: Fri, 12 Nov 2004 13:20:07 +0100
    >Lines: 22
    >X-Priority: 3
    >X-MSMail-Priority: Normal
    >X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
    >X-RFC2646: Format=Flowed; Original
    >Message-ID: <e4J#0HLyEHA.2876TK2MSFTNGP12.phx.gbl>
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
    >NNTP-Posting-Host: bh124.internetborder.se 81.170.208.124
    >Path:
    cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP12
    .phx.gbl
    >Xref: cpmsftngxa10.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webservic es:26498
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
    >
    >My customer uses automatic proxy settings, from a configuration script, as
    >defined in Internet Explorer / Internet options / LAN settings. My
    program,
    >in C++, can not connect to my web services server using a
    >HttpConnector30object, even though I have stated:
    > soapConnector->Property["ProxyServer"] = _T("<CURRENT_USER>");
    > soapConnector->Property["EnableAutoProxy"] = _T("TRUE");
    >However, if the user defines proxy server settings as adress:port my
    program
    >succeeds to connect. Connect through IE works with automatic setting.
    >
    >Question: Is there a way to make my SOAP connect to use automatic proxy
    >setting in the configuration file, the same way as IE does?
    >
    >--
    >
    >Kenneth Jonsson
    >Signifikant Svenska AB
    >Industrivägen 19
    >SE-171 48 Solna
    >Sweden
    >Tel: +46 76 858 00 15
    >
    >
    >
    Dan Rogers Guest

Similar Threads

  1. SOAP over SSL? NotSupportedException in generated client proxy code
    By NewsGroups in forum ASP.NET Web Services
    Replies: 1
    Last Post: June 21st, 10:30 AM
  2. Proxy class not reading data returned in SOAP response
    By Jared in forum ASP.NET Web Services
    Replies: 5
    Last Post: April 12th, 08:59 AM
  3. extract the soap message from the proxy class
    By RA in forum ASP.NET Web Services
    Replies: 1
    Last Post: May 1st, 09:02 AM
  4. apt-get and proxy setting
    By Sridhar M.A. in forum Debian
    Replies: 4
    Last Post: July 16th, 02:40 PM
  5. proxy account setting.. pls help
    By bharath in forum Microsoft SQL / MS SQL Server
    Replies: 0
    Last Post: July 6th, 09:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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