Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > VB 6 Client (Soap Toolkit) with WS on IIS 6.0 authentication problems

Reply
Thread Tools

VB 6 Client (Soap Toolkit) with WS on IIS 6.0 authentication problems

 
 
LP
Guest
Posts: n/a
 
      12-02-2005
Hello,

I am really hoping someone can help me here.
I have a web service running on Win 2003 IIS 6.0, and VB6 client connecting
to it with the use of Soap Toolkit. Everything worked fine until I needed to
enable Basic Authentication.
Now according to this msdn source:
http://msdn.microsoft.com/library/de...apsecurity.asp

SoapClient.mssoapinit(http://username:userpwd@your-server/...e/service.wsdl
) should do the trick, well it doesn't on IIS 6.0, I get a long error
message along the lines; "Invalid Parameter. Access denied" But I did try it
on IIS 5.0 with the same VB 6 client it does work.

Also I tried reading wsdl file from another dir on the server without
authentication, but got another error.

I know that by default IIS 6.0 is "extra" secure. Maybe it's a matter of
changing a few setting and easing security. Perhaps enable userwd@server
type authentication.

Thank you for your help.


 
Reply With Quote
 
 
 
 
LP
Guest
Posts: n/a
 
      12-03-2005
Ok, I finally got it to work. In case someone else is going trhough the same
porblem I will post my notes here:

1. Working Code:
'************************************************* *********************
Dim soap As MSSOAPLib30.SoapClient30
Set soap = New MSSOAPLib30.SoapClient30

'Key part
soap.ClientProperty("ConnectorProgID") = "MSSOAP.WinInetConnector30"
'Key part: append usernameassword@ before the server address
soap.MSSoapInit http://usernamewd@server/somews/ws.asmx?wsdl, "csbll",
"Cardiostation"

soap.ConnectorProperty("AuthUser") = UID 'username
soap.ConnectorProperty("AuthPassword") = PWD 'password

returnData = soap.myWSCall(param1, param2)
'************************************************* *********************
soap.ClientProperty("ConnectorProgID") = "MSSOAP.WinInetConnector30" is
crucial, that what made the whole thing work. I don't quite understand why,
if someone else does, please explain.

2. Setting on the server:
Make sure "Basic Authentication" is checked off, default domain name should
be the domain of the username in the code (in most cases local server name),
and Anonymous access is disabled.




"LP" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hello,
>
> I am really hoping someone can help me here.
> I have a web service running on Win 2003 IIS 6.0, and VB6 client
> connecting to it with the use of Soap Toolkit. Everything worked fine
> until I needed to enable Basic Authentication.
> Now according to this msdn source:
> http://msdn.microsoft.com/library/de...apsecurity.asp
>
> SoapClient.mssoapinit(http://username:userpwd@your-server/...e/service.wsdl
> ) should do the trick, well it doesn't on IIS 6.0, I get a long error
> message along the lines; "Invalid Parameter. Access denied" But I did try
> it on IIS 5.0 with the same VB 6 client it does work.
>
> Also I tried reading wsdl file from another dir on the server without
> authentication, but got another error.
>
> I know that by default IIS 6.0 is "extra" secure. Maybe it's a matter of
> changing a few setting and easing security. Perhaps enable userwd@server
> type authentication.
>
> Thank you for your help.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WCF client passing 2 client authentication tokens? Markus Leder ASP .Net Web Services 1 04-14-2010 10:36 AM
.Net client and SSL mutual authentication : 403 Forbidden, client certificate not sent Mfenetre ASP .Net Security 11 10-12-2005 03:02 PM
IIS 6.0 win2003, IIS users moe_rodrigue MCSE 1 04-01-2004 07:37 AM
ASP.NET application works in IIS PWS, but not in remote IIS. Matthew Louden ASP .Net 3 11-07-2003 09:58 PM
.NET IIS to IIS credentials problem... Grind Boy ASP .Net 4 08-14-2003 12:59 PM



Advertisments