Link to home
Start Free TrialLog in
Avatar of kenshawjr
kenshawjrFlag for United States of America

asked on

MSOAP.SoapClient30 VB6 SOAP Application

I need my VB6 application to access a web service. I am using the SOAP 3 tool kit and created an exe and it works on most PCs but recently I have encountered a couple of systems that do not work with Soap Tool Kit. I Have attached my code below.

And the error message I get is

WSDLReader:Loading of the WSDL file failed HRESULT=0x8007045A: A dynamic link library (DLL) initialization routine failed. - Client:An unanticipated error occurred during the processing of this request. HRESULT=0x8007045A: A dynamic link library (DLL) initialization routine failed. - -2147023782

Does any one know what this means and how to solve it?

By the way my program has to be written in VB6 and I have to use the Microsoft SOAP toolkit.




Private Sub Command1_Click()
    On Error GoTo lblErrorHandler
    Dim errObj As New ErrObject
    Dim objSoap As MSSOAPLib30.SoapClient30
    Set objSoap = New MSSOAPLib30.SoapClient30
    
    objSoap.MSSoapInit "https://localhost/auth.asmx?wsdl"
    
    MsgBox "All Clear"
    GoTo lblExit
lblErrorHandler:
    Set errObj = Err
    MsgBox "Error creating a soap client: " & errObj.Description & " - " & errObj.Number
lblExit:
    Set objSoap = Nothing
End Sub

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Dr. Thomas Henkelmann
Dr. Thomas Henkelmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kenshawjr

ASKER

Thanks thausla. Using the Microsoft OFFICE SOAP Type Library 3.0 is a very handy work around on systems which have this issue but when i deploy my application to servers that do not have microsoft office installed on them for example when it is installed on a server. i appreciate the work around but still want a way to fix the Soap tool kit error.

Any ideas?
I would not use SOAP, just IXMLHTTPRequest, post soap code, and then parse the soap XML document response

Thanks, but that's not an option available to me. The application already exists and can't make that change. I need to fix the SOAP toolkit issue.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Solution provided was suitable as a temporary work around. I will be redesigning the application to use a .NET library.