473,397 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

How to set proxy while using savon?

Hi,
While using http we can set the proxy like this
Expand|Select|Wrap|Line Numbers
  1. Net::HTTP::Proxy('10.199.99.99',3333,'username','password').start(url.host,url.port)
  2.  
When I'm trying to use Savon how to set the proxy?

My code is
Expand|Select|Wrap|Line Numbers
  1.  require 'savon'
  2.     client = Savon::Client.new do |wsdl,http|
  3.       wsdl.document = "http://www.webservicex.com/CurrencyConvertor.asmx?wsdl"
  4.     end
  5.     client.wsse.credentials "username", "password"
  6.     response = client.request :conversion_rate do
  7.       soap.body = {
  8.         :from_currency => 'USD',
  9.         :to_currency => 'EUR'
  10.       }
  11.     end
  12.     puts response.to_hash;
  13.     render :text => response.to_hash.to_s
  14.  
Please help me to set the proxy while using Savon in Ruby on Rails...

Thanks in Advance!
Jul 8 '11 #1
0 2645

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ganesh | last post by:
Hi, i need to see if a user enters the correct username/password to authenticate to a proxy. My problem is... through the following code, i am able to connect to a proxy with even invalid...
4
by: bmiras | last post by:
I've got a problem using urllib2 to get a web page. I'm going through a proxy using user/password authentification and i'm trying to get a page asking for a HTTP authentification. And I'm using...
16
by: Paul Sweeney | last post by:
Does anyone know of a working (python) https proxy which allows viewing of unencrypted data being sent from my browser to an https site? I've worked my way through most on the list at...
4
by: Fuzzyman | last post by:
In a nutshell - the question I'm asking is, how do I make a socket conenction go via a proxy server ? All our internet traffic has to go through a proxy-server at location 'dav-serv:8080' and I...
0
by: Robert | last post by:
did you solve this problem? It seems to be still present here with py2.3.5. Robert -- From: Manish Jethani <manish.j@gmx.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;...
4
by: WATYF1 | last post by:
Hello. I'm writing a VB.NET app to check email message counts for both POP3 and IMAP4. I'm using TCPClient to connect, and a NetworkStream to send simple commands. It's a very simple bit of code,...
6
by: dolittle | last post by:
Hi, I`m using Apache as a proxy using ProxyPass (I didn`t set ProxyTimeout), I have two test clients sending and receiving xml messages using xmlhttprequest to a jeti server through the Apache...
2
by: =?Utf-8?B?RWQgU2huZWtlbmRvcmY=?= | last post by:
I am trying to create a WCF host/client combination using mixed security with UserName authentication. Everything looks good on the host side, but when I go to generate the client proxy using...
6
by: Bob Weiner | last post by:
I have a few dll's that return their own version of Account objects. In the asp code I am writing now I would like to define an interface, called IAccount, and convert each of these objects (...
0
by: freshj | last post by:
I am attempting to create a C# proxy using WseWsdl3 against a WSDL file created by out Java development staff. I am having the hardest time figuring out what the issue is. Any help would be greatly...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.