Re: Webservice package over https with authorization



Jens Haines wrote:
Hi everyone,

I'm having problems with the "Webservice"-package by Gerald Lester. I try to access a sample webservice provided for me via https. For this service I need to authorize with username and password. When I try to invoke

::WS::Client::GetAndParseWsdl $urlToWSDL

I get the error message:

"Unknown URL type 'https...'"

Is there any way to use the Webservice package over https?

My System is:
WinXP SP2
Tcl 8.5
WebService 1.0.8
tDom 0.8.1
tls 1.6

My guess would be, that I need to establish a connection over https to the server, and authorize myself before I invoke the GetAndParseWsdl command.

Thanks in advance for any answers.

That's very strange, because I routinely use it to connect to https.

Could you please check in Clients.tcl that on or around line 52 you have:

catch {
package require tls
http::register https 443 ::tls::socket
}


And no, you do not have to do any pre-connection.

BTW, is this a publicly viewable WSDL -- i.e. could I try to get it to see what is going on?

Also, have you verified that tls does actually load via package require?

--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.


Quantcast