Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LP - 02 Dec 2005 05:08 GMT
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/default.asp?url=/library/en-us/dnsoap/html/soa
psecurity.asp


SoapClient.mssoapinit(http://username:userpwd@your-server/webservice/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 user:pwd@server
type authentication.

Thank you for your help.
LP - 03 Dec 2005 19:55 GMT
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 username:password@ before the server address
   soap.MSSoapInit http://username:pwd@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.

> Hello,
>
[quoted text clipped - 18 lines]
>
> Thank you for your help.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.