Question

Server.CreateObject("MSSOAP.SoapClient30") fails to create object

Asked by: pankajgharge

Hello,
I have simple ASP page which calls .NET web service. The code is working fine on my local machine but it is not working on server. On my local machine I have mssoap1.dll under directory C:\Program Files\Common Files\MSSoap\Binaries.
On server I do not have such a libraries. I have installed SOAP Toolkit 3.0.  On server I have following libraries under directory C:\Program Files (x86)\Common Files\MSSoap\Binaries
1. MSSOAP30.dll
2. SOAPIS30.dll
3. WHSC30.dll
4. WISC30.dll
Do I need to register MSSOAP30.dll?

<html>
<head>
<title></title>
</head>
<body>
 
<%
 
         Dim oSOAP      
         Dim objDOMDoc
         Dim objResponse
         Set oSOAP = Server.CreateObject("MSSOAP.SoapClient30")	
         oSOAP.ClientProperty("ServerHTTPRequest") = True			
         oSOAP.mssoapinit("http://cpp.abc.com/XYZ/ABCD/ABCD.asmx?wsdl")     
         Set objDOMDoc = Server.CreateObject("Msxml2.DOMDocument.4.0")
         objResponse = objDOMDoc.loadXML(CStr(oSOAP.AuthenticateCiscoUser(1,"UserName","Password")))
         Response.Write(objResponse)	  
         
%>
 
</body>
</html>

                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-04-14 at 22:38:50ID24323116
Topic

FoxPro Database

Participating Experts
3
Points
50
Comments
18

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. SOAP and ASP
    Hi Experts, I have been working on ASPs for quite some time. These days I haer the latest buzz word SOAP. Can you pls tell me what is SOAP, how to use it with ASP and what do I have to learn to start using SOAP with ASP. Thanks Ashish
  2. SOAP
    I have written a DLL in VB. I created a WSDL and a WSML with SoapToolKit 2.0. The toolkit also created the asp listener page for me. Now when I try and connect to the listener page with a client page I get an erro which makes me sad. Here is my Client Code: <% Se...
  3. MS SOAP Toolkit... error
    Please help me I have a problem encountered about the set up of SOAPclient. I already install the SOAP toolkit on my server. I have this code in VB for Client: Private Client As SoapClient30 Private Sub Connect() Set Client = New SoapClient30 Call Client....
  4. SOAP call failing in ASP page
    I keep get the following error message even though my code works in my VB 6.0 app: Connector error '800a1527' Connector:Connection time out. HRESULT=0x800A1527 - Client:An unanticipated error occurred during the processing of this request. HRESULT=0x800A1527 - Client:Sendi...
  5. consuming secured webservice in classic asp using soap t…
    Hi, I have created an asp application that consumes a secured webservice using SOAP toolkit 30. The code I used is as follows Dim oSOAP Set oSOAP = Server.CreateObject("MSSOAP.SoapClient30") oSOAP.ClientProperty("ServerHTTPRequest") = True oSOAP.MSSoapI...
  6. SOAP request and response in ASP
    Hello, I want to use a SOAP Request and response in a webpage coded in ASP. The SOAP request and response code is here; http://tckimlik.nvi.gov.tr/kpspublic.asmx?op=TCKimlikNoDogrula How can it use it in an ASP page? Do you know Is there a sample or tutorial about that? Tha...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: CaptainCyrilPosted on 2009-04-14 at 22:50:43ID: 24145000

You need to register the dlls before you can use them. Use regsvr32 <dllname> in DOS Command.

 

by: Olaf_DoschkePosted on 2009-04-15 at 03:35:00ID: 24146394

Well, installation of the Soap Toolkit should have done registration. Did you use the Toolkit coming with VFP8? It's a known bug of that CD, that it's installation fails, they put a broken version on VFP8 CDs. You'll need to download Soap Toolkit from MS Download then and I suggest doing that even though manually registering the DLLs might work.

Another reason might be 8insuffiient IIS rights on OLE classes or the MsSoap directory. Of course OLE needs access to that DLLs to be able to instaciate a class.

Bye, Olaf.

 

by: pankajghargePosted on 2009-04-19 at 23:00:19ID: 24182194

What are those libraries I need to register manually?

 

by: CaptainCyrilPosted on 2009-04-20 at 00:59:15ID: 24182594

The dlls above and vfpx*.dll where x is the version of the VFP you are using. They are found in Program Files\Common Files\Microsoft Shared\VFP.

 

by: Olaf_DoschkePosted on 2009-04-21 at 00:04:10ID: 24191549

this is ASP, Cyril, it has nothing to do with foxpro runtimes. It's all about the MsSoap DLLs. But Soap Toolkit installation should take care of registering these DLLs. The thing to know is that the system user of the IIS Webserver Service has limited rights. EG it may not be able to even just read access the soap dlls, no matter if they are registered or not.

Bye, Olaf.

 

by: pankajghargePosted on 2009-04-22 at 06:18:10ID: 24204420

Yes I agree with your point.
Please suggest me where can I check the permissions on IIS. On which Tab which oprion should be enabled/checked?

 

by: Olaf_DoschkePosted on 2009-04-22 at 11:09:00ID: 24207784

Filesystem rights on the MsSoap Folder to the IIS system user. No configuration in IIS, grant access to C:\Program Files\Common Files\MSSoap\Binaries within Windows Explorer.

Bye, Olaf.

 

by: pankajghargePosted on 2009-04-22 at 21:59:00ID: 24211911



I have following permissions on Directory:
C:\Program Files (x86)\Common Files\MSSoap\Binaries

Administrator: Full Control
Creator Owner: Special Permissions
Power Users: Modify, Read & Execute, List Folder content, Read, Write.
SYSTEM: Full Control
Terminal Server User: Modify, Read & Execute, List Folder content, Read, Write.
Users: Read & Execute, List Folder content, Read.

 

by: Olaf_DoschkePosted on 2009-04-22 at 23:47:39ID: 24212290

SYSTEM is not the system user of IIS. SYSTEM is one of many system users. IIS runs as IUSR_<<computername>>.
See here: http://msdn.microsoft.com/en-us/library/ms955939.aspx

So indee the IIS user has no permissions on this directory and that might simply be the reason it can't instanciate MSSoap OLE classes.
 
Bye, Olaf.

 

by: pankajghargePosted on 2009-04-23 at 03:19:46ID: 24213397

Thanks,
My Computer name is QMX-SIXSIGMA and guest user account is IUSR_SDIWEB-STG2.

 

by: pankajghargePosted on 2009-04-23 at 04:52:48ID: 24213975

My path of Soap libraries is
C:\Program Files (x86)\Common Files\MSSoap\Binaries
Why (X86) in above path?
OS is Server 2003.

 

by: Olaf_DoschkePosted on 2009-04-23 at 13:59:52ID: 24219750

(x86), because you most probably run a 64 bit edition of Windows 2003 and there you can have both 32 bi (x86) and 64 bit programs. MSSoap Toolkit surely is 32 bit software, but that won't matter.

IUSR_QMX-SIXSIGMA would be the standard, but that can be overridden. If, as you say IIS runs as IUSR_SDIWEB-STG2, then add IUSR_SDIWEB-STG2 to the users and grant read and execution rights for the MsSoap folders.

Bye, Olaf.

 

by: pankajghargePosted on 2009-04-23 at 22:39:47ID: 24221985

I have granted the full rights on following directory where MSSOAP30.dll and WISC30.dll resides.
C:\Program Files (x86)\Common Files\MSSoap\Binaries.
I have added rights for QMX-SIXSIGMA\IUSR_SDIWEB-STG2.
No Luck this time too....

  • QMXSnap.JPG
    • 37 KB

    Snap shot of C:\Program Files (x86)\Common Files\MSSoap\Binaries folder where I have added the IUSER permissions.

    Snap shot of C:\Program Files (x86)\Common Files\MSSoap\Binaries folder where I have added the IUSER permissions.
 

by: Olaf_DoschkePosted on 2009-04-23 at 23:11:18ID: 24222120

How's authentication of webapp users of that asp script configured? Does IIS impersonate the client user? In that case it would perhaps be the easiest to grant access to everyone on these dlls.

What error do you get at all? Have you looked for more informations about the error in the windows event log?

Is this relevant? http://support.microsoft.com/kb/266621/en-us

I'd check permissions on the keys HKEY_CLASSES_ROOT\Interface and HKEY_CLASSES_ROOT\TypeLib anyway.

Bye, Olaf.

 

by: pankajghargePosted on 2009-04-27 at 04:50:49ID: 24240759

I have tried the code in .vbs file. It gives me error as: ActiveX component can't create object: 'MSSOAP.SoapClient30' . I guess IIS has nothing to do with this error.

 

by: JiriZPosted on 2009-06-30 at 06:28:48ID: 24745034

Hi, I'v got similar problem.
ActiveX component can't create object.
But I'v tried the code in VBS and that was correct.
I'v seted rights for IUSR and IIS_IUSRS on "c:\Program Files (x86)\Common Files\MSSoap\Binaries" but nothing.
I guess I have to set rights somewhere else yet.
Don't you know where?
Thanx

 

by: pankajghargePosted on 2009-06-30 at 22:01:45ID: 24751634

Hi JiriZ,

Finally I have accessed the web service by sending the web request as a plain XML text. In response I got the XML which I am loading in XML DOM as follows.
You just need to type the webservice in browser and click the method you want to access from web service. After you click you will get all header information that you have to pass as a plain XML. I am accessing Authentication through web service so I have to pass the 'User Name' and 'Password'.

I guess this will help you.


<html>
	<head><title></title></head>
	<body>
 
<%	  
    Dim objHTTP, strEnvelope
    Set objHTTP = Server.CreateObject("Microsoft.XMLHTTP")
    'Set objHTTP = New XMLHTTP
 
    'Create the SOAP Envelope. You can see SOAP envelop in WSDL file of web services.
    'Start with standard xml name space and XML Schema Definition.
    strEnvelope = "<?xml version='1.0' encoding='utf-8'?>"
    strEnvelope = strEnvelope & "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>"
 
    'Define body of SOAP with method name and parameter names and vlaues to be passed.
    strEnvelope = strEnvelope & "<soap:Body>"
    strEnvelope = strEnvelope & "<AuthenticateABCUser xmlns='http://wwwte.abc.com/cpp'>"
    strEnvelope = strEnvelope & "<db>1</db>"
    strEnvelope = strEnvelope & "<_username>MyUserName</_username>"
    strEnvelope = strEnvelope & "<_password>MyPassword</_password>"
    strEnvelope = strEnvelope & "</AuthenticateABCUser>"
    strEnvelope = strEnvelope & "</soap:Body></soap:Envelope>"    
    
    'Set properties of HTTP object and send SOAP envelop while calling 'Send' method
    Dim url
    url = "http://cpp.abc.com/cpp/CPPLDAP/CPPLDAP.asmx"
    With objHTTP
        .Open "post", url, False
        .setRequestHeader "Content-Type", "text/xml; charset=utf-8"
        .setRequestHeader "SOAPAction", "http://wwwte.abc.com/cpp/AuthenticateCiscoUser"
        .send strEnvelope
    End With
    ' Following will write xml received from web services in the browser
    Dim strResponse
    strResponse = objHTTP.responseXML.Text
    If (strResponse = "") Then
        Response.Write("Invalid user")
    Else
        'Set myXmlDoc = New MSXML2.DOMDocument
        Set myXmlDoc = Server.CreateObject("MSXML2.DOMDocument")
        myXmlDoc.loadXML (strResponse)
        Set objLst = myXmlDoc.getElementsByTagName("directoryEntry")
        Set objListNodes = objLst.Context.childNodes(0).childNodes
        For i = 0 To (objListNodes.Length - 1)
           Response.Write(objListNodes.Item(i).nodeName & ":------ " & objListNodes.Item(i).Text)
           Response.Write("</BR>")
        Next
    End If
    
%>	
	</body>
</html>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:

Select allOpen in new window

 

by: JiriZPosted on 2009-07-01 at 01:37:03ID: 24752449

Excelent. It's exactly what I need.
Thanx

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...