kenshawjr
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.
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I would not use SOAP, just IXMLHTTPRequest, post soap code, and then parse the soap XML document response
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Solution provided was suitable as a temporary work around. I will be redesigning the application to use a .NET library.
ASKER
Any ideas?