Re: Webservice package over https with authorization



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.
.



Relevant Pages

  • Webservice package over https with authorization
    ... I try to access a sample webservice provided for me via https. ... 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. ...
    (comp.lang.tcl)
  • Re: Webservice package over https with authorization
    ... I try to access a sample webservice provided for me via https. ... Is there any way to use the Webservice package over https? ... package require tls ...
    (comp.lang.tcl)
  • Re: problem invoking web service
    ... webservice thru proxy, it just gave me the same error. ... I dont know why I ... > I don't know exactly what you mean when you say, "I am able to invoke the ... >> Boolean isStringized, Evidence assemblySecurity, Boolean ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Revive Tk
    ... % package require Tk ... # close the root window by mouse ... can't invoke "canvas" command: application has been destroyed ...
    (comp.lang.tcl)
  • RE: How to fix problem-usernameTokenSecurity can be bypassed in IE
    ... client access to the webservice from IE browser, ... asmx's test invoke page, it only send http message rather than SOAP message ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.webservices)