From: "NAKAMURA, Hiroshi" Date: 2005-07-16T19:10:58+09:00 Subject: Re: Newbe: soap ssl error send_post 301 Moved Permanently --------------enig5522BE0E267A991877741D74 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----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----- --------------enig5522BE0E267A991877741D74 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Cygwin) iD8DBQFC2N0Hf6b33ts2dPkRAsELAKDLz7VJ4CRKa8AdQAnCugR6FC+3yQCgqsJ7 D+noUKaHQbwGITdvZtuLOLw= =NgdB -----END PGP SIGNATURE----- --------------enig5522BE0E267A991877741D74--