Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


MSOAP.SoapClient30 VB6 SOAP Application

Posted on 2010-01-11
Medium Priority
Last Modified: 2013-11-07
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
    Set errObj = Err
    MsgBox "Error creating a soap client: " & errObj.Description & " - " & errObj.Number
    Set objSoap = Nothing
End Sub

Open in new window

Question by:kenshawjr
  • 3
  • 2
LVL 12

Accepted Solution

Dr. Thomas Henkelmann earned 1500 total points
ID: 26292797
I had this issue several times in the past and usually it was the missing SOAP 3.0 toolkit on the client. You can do exacly the same stuff if you don't use the SOAPClient30 class (that is installed by the SOAP 3.0 toolkit only) but use the "Microsoft OFFICE SOAP Type Library 3.0" (add in Project..References). This dll will always be installed by the Microsoft Office setup and I never had an issue not finding it on a client PC.

Author Comment

ID: 26299314
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?

Expert Comment

ID: 26299433
I would not use SOAP, just IXMLHTTPRequest, post soap code, and then parse the soap XML document response

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 26299471
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.
LVL 12

Assisted Solution

by:Dr. Thomas Henkelmann
Dr. Thomas Henkelmann earned 1500 total points
ID: 26301514
Ok, didn't know about the server issue. So how do you run your VB app on the server? Are you logged in or do you start the app from the scheduler (what account do you use) or does any other service call the app? The error either points to some missing dll (my first guess above), some missing registration of a dll (but you HAVE installed the SOAP toolkit on the server, rigt?) or some missing access rights when calling the dll.

Author Closing Comment

ID: 31675932
Solution provided was suitable as a temporary work around. I will be redesigning the application to use a .NET library.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question