473,382 Members | 1,093 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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

LP
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 user:pwd@server
type authentication.

Thank you for your help.
Dec 2 '05 #1
1 16701
LP
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.


"LP" <lp@nospam.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
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 user:pwd@server
type authentication.

Thank you for your help.

Dec 3 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: EagleRed | last post by:
I have written a Web service that I must access from a modified VC++ 6.0 console application. I am using the SOAP Toolkit version 2.0. I am using the HttpConnector, and the SoapSerializer to...
0
by: hapordigi | last post by:
while i was using the sample code of MS Soap Toolkit 3.0 to access a web service created by c#, an error was returned like: // cout<<(const char*)Reader->RpcResult->text<<endl soap:client i...
2
by: Freddy | last post by:
Hit, Why is the SOAP toolkit used? Is it still used or is there any alternative method in .NET and which one is effective? Freddy
6
by: LP | last post by:
Hello, I am looking into ways to consume Web Service (developed in .NET/C#) from legacy COM based applications. Porting COM applications to .NET is not a viable option at this time. I am aware...
0
by: S. Shawn Mehaffie | last post by:
I really need some help and know there are a lot of .Net Guru's taht read these post and I need help.Below is what I am trying to do: I have a web service that returns a class object that...
2
by: Jose Maestro | last post by:
I am using MS SOAP client provided with SOAP Toolkit 3.0. I have set the timeout for this application to 20 seconds. On some occasions, when there are network problems and the call to the...
1
by: sahan malagi | last post by:
Hello, I am new to webservices and I am trying to get a simple Webservice client in VB (Using Microsoft SOAP Toolkit) to access a webservice on a public site. I get the following error message...
0
by: jimmyfishbean | last post by:
Hi, I have a successful VB6 web service client that uses the SOAP Toolkit 3 to make calls to a web service written in ASP.Net (VB.Net). However, due to Microsoft not recommending the use of...
2
by: Michael Russell | last post by:
Hi all, I'm trying to get a client working with my ASP.NET web service. The client's been working great up to this point with a SOAP Toolkit-generated service based on a VB COM library. On the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.