Ruby SOAP Client Question

G

gregarican

I am attempting to write a small SOAP client script using Ruby 1.8.2
for Windows. The SOAP server will be located on the other side of an
authenticating proxy server. I see there's a #setHttpProxy method
available that I can use to specify the host and the port. Is there a
quick and easy way to set the username and password? I tried using
http://username:[email protected] as the URL but no luck.

Any suggestions?
 
C

Chris McMahon

gregarican said:
I am attempting to write a small SOAP client script using Ruby 1.8.2
for Windows. The SOAP server will be located on the other side of an
authenticating proxy server. I see there's a #setHttpProxy method
available that I can use to specify the host and the port. Is there a
quick and easy way to set the username and password? I tried using
http://username:[email protected] as the URL but no luck.

Any suggestions?

See
http://chrismcmahonsblog.blogspot.com/2006/03/soap-basic-authentication-in-ruby.html
for instructions on basic authentication.

-Chris
 
G

gregarican

Thanks for submitting this. What you have posted appears to deal with a
WSDL service that requires client authentication. I am talking about a
proxy server that sits between the client and the WSDL service. Right
now I am noodling around with SOAP::Env.getenv('http_proxy') to see if
I can get the username:password portion of the URI to parse out so I
can use the #setHttpProxy method. We'll see...
 
K

Kenosis

gregarican said:
Thanks for submitting this. What you have posted appears to deal with a
WSDL service that requires client authentication. I am talking about a
proxy server that sits between the client and the WSDL service. Right
now I am noodling around with SOAP::Env.getenv('http_proxy') to see if
I can get the username:password portion of the URI to parse out so I
can use the #setHttpProxy method. We'll see...

Would SOAP::HTTPConfigLoader::set_basic_auth(...) be of any help with
this? (Just a shot in the dark - I've only done a little w/soap and it
was a while back.)

Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top