<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/enabling-http-proxy-for-net-webservice-client-9in7qjjfa" -->

---
title: Enabling HTTP proxy for .NET webservice client | daily.dev
description: A short code snippet shows how to make a .NET-generated SOAP webservice client automatically use the system's default HTTP proxy and credentials, by overriding...
canonical: https://daily.dev/posts/enabling-http-proxy-for-net-webservice-client-9in7qjjfa
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Enabling HTTP proxy for .NET webservice client | daily.dev
og:description: A short code snippet shows how to make a .NET-generated SOAP webservice client automatically use the system's default HTTP proxy and credentials, by overriding...
og:url: https://daily.dev/posts/enabling-http-proxy-for-net-webservice-client-9in7qjjfa
og:image: https://api.daily.dev/og/posts/9IN7qJjfa.png
og:image:alt: Enabling HTTP proxy for .NET webservice client
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Enabling HTTP proxy for .NET webservice client

**[Maarten Balliauw](https://daily.dev/sources/maartenballiauw)** · 1 min read · 0 upvotes · 0 comments

## Summary

A short code snippet shows how to make a .NET-generated SOAP webservice client automatically use the system's default HTTP proxy and credentials, by overriding GetWebRequest in a subclass of the generated proxy client instead of fiddling with Web.config settings.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.maartenballiauw.be/posts/2007-10-10-enabling-http-proxy-for-net-webservice-client>

## Questions this post answers

### How do I make my .NET SOAP webservice client use the default proxy and credentials automatically?

Override the GetWebRequest method in a subclass of the generated webservice client class, set request.Proxy to WebRequest.DefaultWebProxy, and set request.Proxy.Credentials to CredentialCache.DefaultNetworkCredentials. Then use this new subclass instead of the original generated service class in your code, avoiding manual Web.config proxy configuration.

_daily.dev surfaces practical fixes like this proxy workaround for developers stuck behind corporate networks._

## Similar posts on daily.dev

- [Using Proxies to Hide Secrets from Claude Code](https://daily.dev/posts/using-proxies-to-hide-secrets-from-claude-code-lji9p9dap) · Hacker News · 0 upvotes · 0 comments
- [.NET 10 Networking Improvements](https://daily.dev/posts/net-10-networking-improvements-t8q7f41ir) · .NET Blog · 29 upvotes · 0 comments
- [Microsoft’s Dev Proxy puts APIs to the test](https://daily.dev/posts/microsoft-s-dev-proxy-puts-apis-to-the-test-9vcp53b60) · InfoWorld · 0 upvotes · 0 comments

---

Tags: [#.net](https://daily.dev/tags/.net)

[View this post on daily.dev](https://daily.dev/posts/enabling-http-proxy-for-net-webservice-client-9in7qjjfa)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Enabling HTTP proxy for .NET webservice client","url":"https://daily.dev/posts/enabling-http-proxy-for-net-webservice-client-9in7qjjfa","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/enabling-http-proxy-for-net-webservice-client-9in7qjjfa"},"datePublished":"2026-10-04T13:06:12.808Z","dateModified":"2026-10-04T13:14:23.561Z","description":"A short code snippet shows how to make a .NET-generated SOAP webservice client automatically use the system's default HTTP proxy and credentials, by overriding...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/869607a7401f2a2cbd4c7ff508e44ea2?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/869607a7401f2a2cbd4c7ff508e44ea2?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Maarten Balliauw","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Maarten Balliauw","logo":"https://media.daily.dev/image/upload/s--rOTg3VYO--/f_auto,q_auto/v1791119043/logos/maartenballiauw?_a=BAMAMicg0","url":"https://daily.dev/sources/maartenballiauw"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/enabling-http-proxy-for-net-webservice-client-9in7qjjfa","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":".net","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Maarten Balliauw","item":"https://daily.dev/sources/maartenballiauw"},{"@type":"ListItem","position":3,"name":"Enabling HTTP proxy for .NET webservice client"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/enabling-http-proxy-for-net-webservice-client-9in7qjjfa#faq","mainEntity":[{"@type":"Question","name":"How do I make my .NET SOAP webservice client use the default proxy and credentials automatically?","acceptedAnswer":{"@type":"Answer","text":"Override the GetWebRequest method in a subclass of the generated webservice client class, set request.Proxy to WebRequest.DefaultWebProxy, and set request.Proxy.Credentials to CredentialCache.DefaultNetworkCredentials. Then use this new subclass instead of the original generated service class in your code, avoiding manual Web.config proxy configuration. daily.dev surfaces practical fixes like this proxy workaround for developers stuck behind corporate networks."}}]}
```

