19303

How do you add a web reference through a proxy/firewall?

Question:

I'm behind a firewall at work at the moment and I was testing something that I had deployed to my website, and the work proxy seems to be blocking it somewhat.

Basically I am getting a message of:

<blockquote>

Operation is not valid due to the current state of the object

</blockquote>

I've got it down to my proxy interferring, but I can't see any advanced settings or anything I can set up to go through my proxy to get to my service.

I did a quick google for it, but no joy.

Anyone found a quick way to get around it?

Answer1:

Edit, I forgot to write this part in the answer: You may need to add the web reference url to the safe list for your proxy. I am not sure what proxy you are using or if you have control of it, but this should solve your problem. If you don't have access to change the proxy, then I put a quick work around right below.

Here's a quick work around, just use the browser to navigate to the WSDL. Grab the xml and save it as a .wsdl file on your computer you would like to generate the client on. Then use the <a href="http://shrinkster.com/11sv" rel="nofollow">wsdl.exe</a> to generate the client pointing it to the path you saved the wsdl file.

Answer2:

Another option is to go to your application's web config or app config and add the following under the element:

<system.net> <defaultProxy useDefaultCredentials="false"> <proxy usesystemdefault="true" proxyaddress="10.0.0.1" port="80" bypassonlocal="true" /> </defaultProxy> </system.net>

You can then add the web reference in the normal way.

Recommend

  • Get all URLs for resources in sub-directory in Swift
  • How can I get the GUID from a PDB file?
  • SWT/Swing -> Threads n' Hell
  • Is it possible to resolve my ClaimsAuthorizationManager using a DI container
  • UITableView without still works!
  • purpose of if (true)
  • Xcode 4 - Is there something in Interface Builder like “reveal in canvas”?
  • Angularjs: [$injector:modulerr] Failed to instantiate module ui-router
  • Per Machine App Registration
  • Quickly or concisely determine the longest string per column in a row-based data collection
  • GitHub default README markup
  • How to autopopulate a field in SugarCRM form
  • I18n locale disregarding fallbacks
  • converting text file into xml using php?
  • Specifying Castle WCF Integration Facility Endpoint Behavior per Endpoint
  • Seeking advice on Jetty HttpClient Hang
  • Email format validation in mvc3 view
  • C# - Is there a limit to the size of an httpWebRequest stream?
  • What is Eclipse's Declaration View used for?
  • Fetching methods from BroadcastReceiver to update UI
  • Is there a amazon webstore API for customers?
  • How to add date and time under each post in guestbook in google app engine
  • Symfony2: How to get request parameter
  • Jquery - Jquery Wysiwyg return html as a string
  • Google cloud sdk not working when python points python3
  • GridView Sorting works once only
  • SVN: Merging two branches together
  • Circular dependency while pushing http interceptor
  • Arrays break string types in Julia
  • WPF Applying a trigger on binding failure
  • using HTMLImports.whenReady not working in chrome
  • How to set the response of a form post action to a iframe source?
  • Angular 2 constructor injection vs direct access
  • coudnt use logback because of log4j
  • Java static initializers and reflection
  • Change div Background jquery
  • Qt: Run a script BEFORE make
  • Append folder name and increment by 1 using batch script
  • reshape alternating columns in less time and using less memory
  • Android Heatmap on canvas or ImageView