Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Accessing Web Service through HTTP Proxy

Accessing Web Service through HTTP Proxy

Scheduled Pinned Locked Moved C#
csharpvisual-studiosysadminhelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Atul Kale
    wrote on last edited by
    #1

    Hi guys,
    I have created a Web Service called BugReporterService and hosted on a machine let's say MAC1 with a Live IP address 203.124.147.42
    I have a windows client created in C# which accesses this Web Service and calls its method through a Proxy class which is generated via the Visual Studio.NET IDE.
    Now, my problem is that, when this client application runs on a machine that can access Internet via Proxy Server only, It cannot access the Web Service class. If the access is without the HTTP Proxy Server to the internet, then it works fine.
    How can I specify programmatically the IP Address/Name of the HTTP Proxy server (say 192.168.0.11) and its username and password. I initially thought that the application would take these settings from the Internet Explorer as lots of other applications do. But it's not wkg that way.
    plz get back to me whoever finds out the Answer! I'll be grateful!
    Thanx!
    Atul Kale MCSD, MCT Sr. Software Engineer XcelVision Technologies Ltd.

    N 1 Reply Last reply
    0
    • A Atul Kale

      Hi guys,
      I have created a Web Service called BugReporterService and hosted on a machine let's say MAC1 with a Live IP address 203.124.147.42
      I have a windows client created in C# which accesses this Web Service and calls its method through a Proxy class which is generated via the Visual Studio.NET IDE.
      Now, my problem is that, when this client application runs on a machine that can access Internet via Proxy Server only, It cannot access the Web Service class. If the access is without the HTTP Proxy Server to the internet, then it works fine.
      How can I specify programmatically the IP Address/Name of the HTTP Proxy server (say 192.168.0.11) and its username and password. I initially thought that the application would take these settings from the Internet Explorer as lots of other applications do. But it's not wkg that way.
      plz get back to me whoever finds out the Answer! I'll be grateful!
      Thanx!
      Atul Kale MCSD, MCT Sr. Software Engineer XcelVision Technologies Ltd.

      N Offline
      N Offline
      Natty Gur
      wrote on last edited by
      #2

      If you use the HttpWebRequest class under the Proxy property you can find Credentials.GetCredential(..params..).Password or .UserName

      A 1 Reply Last reply
      0
      • N Natty Gur

        If you use the HttpWebRequest class under the Proxy property you can find Credentials.GetCredential(..params..).Password or .UserName

        A Offline
        A Offline
        Atul Kale
        wrote on last edited by
        #3

        Hi there,
        In fact I was asking abt the Web Proxy Implementation in the Proxy class generated for WebService. HttpWebRequest is not coing into picture!
        Still, I got a hint from ur mail and I checked out a property called Proxy directly for the SoapHttpClientProtocol class.
        Thanx a lot anyways!
        Atul Kale MCSD, MCT Sr. Software Engineer XcelVision Technologies Ltd.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups