Re: Webservice package over https with authorization
- From: Jens Haines <bubblegumtrash@xxxxxxxx>
- Date: Thu, 31 Jul 2008 16:36:04 +0200
Gerald W. Lester schrieb:
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?
Hi,
Thanks for the quick answer.
I traced the problem down and could solve it by first connecting via https and basic-authentication (using the http core package) and then fetching the WSDL-file from the server. The call of ::WS::Client::GetAndParseWsdl didn't work because of the switch in line 200 (ClientSide.tcl). There only 'file' and 'http' are recognized and not 'https'.
Unfortunately now I get a new error while parsing the WSDL-file with ::WS::Client::ParseWsdl. The error I get is:
invalid command name "domNode00E2E6E0 domNode00E2E764 domNode00E2E7E8 domNode00E2E86C domNode00E2E8F0"
while executing
"$childNode setAttribute name $typeName"
(procedure "parseElementalType" line 78)
invoked from within
"parseElementalType $mode serviceInfo $serviceName $element $tns"
(procedure "parseScheme" line 29)
invoked from within
"parseScheme $mode $baseUrl $schema $serviceName serviceInfo tnsCount"
(procedure "ProcessImportXml" line 17)
invoked from within
"ProcessImportXml $mode $baseUrl $xml $serviceName $serviceInfoVar $tnsCountVar"
(procedure "processImport" line 42)
invoked from within
"processImport $mode $baseUrl $element $serviceName serviceInfo tnsCount"
(procedure "::WS::Utils::parseScheme" line 23)
invoked from within
"::WS::Utils::parseScheme Client $baseUrl $schemaNode $serviceName serviceInfo tnsCount"
(procedure "parseTypes" line 7)
invoked from within
"parseTypes $wsdlNode $serviceName serviceInfo"
(procedure "parseService" line 31)
invoked from within
"parseService $wsdlNode $serviceNode $serviceAlias"
(procedure "buildServiceInfo" line 20)
invoked from within
"buildServiceInfo $wsdlNode $serviceInfo $serviceAlias"
(procedure "::WS::Client::ParseWsdl" line 27)
invoked from within
"::WS::Client::ParseWsdl $wsdlXML"
I'm not quite sure where this error comes from, but it seems to be very deep within the package itself. My guess would be that there is a problem parsing the 'types'-Part of the WSDL-File. I could eMail you my WSDL-file if you like, so you can have a closer look at it.
Thanks in advance.
.
- Follow-Ups:
- Re: Webservice package over https with authorization
- From: Gerald W. Lester
- Re: Webservice package over https with authorization
- References:
- Webservice package over https with authorization
- From: Jens Haines
- Re: Webservice package over https with authorization
- From: Gerald W. Lester
- Webservice package over https with authorization
- Prev by Date: How to close DOS window?
- Next by Date: Re: WebKit
- Previous by thread: Re: Webservice package over https with authorization
- Next by thread: Re: Webservice package over https with authorization
- Index(es):
Relevant Pages
|