NAKAMURA, Hiroshi
7/16/2005 10:11:00 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Sorry for late reply.
Waterstraat, Joern wrote:
> Try to convert following perl script to ruby but
> get errors as listest in section "RESULT RUBY".
>
> SOAP connection to external Server without SSL
> is working. All scripts are running on same machine.
> Error Messages:
> ###################################### RESULT RUBY ########
> rubysprdb.rb
> at depth 1 - 19: self signed certificate in certificate chain
> /shared/ruby/1.8.2/lib/ruby/1.8/soap/streamHandler.rb:270:in
> `send_post': 301: Moved Permanently (SOAP::HTTPStreamError)
Hmm. The https endpoint you are using tries to redirect a connection to
a different URL. Soap4r http client does not follow http redirection
for now. (from your example, SOAP::Lite seems to follow it silently)
Can you set a redirected URL as an endpoint URL of a client? For a
temporal fix, with the following patch, soap4r should follow a URL
redirection silently.
Regards,
// NaHi
Index: streamHandler.rb
===================================================================
- --- streamHandler.rb (revision 1552)
+++ streamHandler.rb (working copy)
@@ -161,7 +161,7 @@
send_string = conn_data.send_string
@wiredump_dev << "Wire dump:\n\n" if @wiredump_dev
begin
- - res = @client.post(endpoint_url, send_string, extra)
+ res = @client.post_content(endpoint_url, send_string, extra)
rescue
@client.reset(endpoint_url)
raise
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
iD8DBQFC2N0Af6b33ts2dPkRAlN8AKCJPGRjr1ZackG+RTD6pWqnE0YBFwCdEaj3
EnJKO66scIExSpFVciqVlzo=
=lIOj
-----END PGP SIGNATURE-----