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:password@server.com as the URL but no luck.
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:password@server.com as the URL but no luck.
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
Unfortunately current soap4r (including development version) does not
support Proxy (basic) Authentication. If I remember correctly, net/http
support Proxy (basic) Authentication so I should be able to implement
this feature easily.
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...
Chris McMahon wrote:
···
gregarican wrote:
> 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:password@server.com as the URL but no luck.
>
> Any suggestions?
I haven't done this personally, but I think that would be very nice
addition. I've needed it a couple of times for sure.
+1.
···
On 7/18/06, NAKAMURA, Hiroshi <nakahiro@sarion.co.jp> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
gregarican wrote:
> 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
Unfortunately current soap4r (including development version) does not
support Proxy (basic) Authentication. If I remember correctly, net/http
support Proxy (basic) Authentication so I should be able to implement
this feature easily.
Is there anyone who have done this fix?
Regards,
// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
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...
Chris McMahon wrote:
> gregarican wrote:
> > 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:password@server.com as the URL but no luck.
> >
> > Any suggestions?
>
> See
> SOAP + Basic Authentication in Ruby
> for instructions on basic authentication.
>
> -Chris
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.)