This is a discussion on Web service using basic authentication method - XML SOAP ; I develope a Web service with SOAP toolkit 3.0. I have a windows XP server with IIS 5.1. If I set on Virtual directory 'Anonymous access' the client has no problem to use public methods.But if I set 'Basic Authentication' ...
I develope a Web service with SOAP toolkit 3.0.
I have a windows XP server with IIS 5.1.
If I set on Virtual directory 'Anonymous access' the client has no
problem to use public methods.But if I set 'Basic Authentication' on
virtual directory
the client are not more able to use public methods because it isn't
able
to execute Soap Initialization (MSSoapInit); the error is on download
the wsdl file.
How can I solve the problme ?
Here the script :
Option Explicit
Dim soapClient3
On Error Resume Next
set soapclient3 = CreateObject("MSSOAP.SoapClient30")
Call SoapClient3.mssoapinit("http://server/Soap3DocSamples/DocSample1/Server/DocSample1.WSDL",
"DocSample1", "Sample1SoapPort")
if err <> 0 then
wscript.echo "Inizializzazione : " + err.description
else
wscript.echo "Inizializzazione OK !"
end if
SoapClient3.ConnectorProperty("AuthUser") = "domain\user"
SoapClient3.ConnectorProperty("AuthPassword")="password"
wscript.echo SoapClient3.EchoString("Bob")
Regards