The following code is used to call a web service from SQL Server:
Declare @Object as Int;
Declare @ResponseText as VARCHAR(MAX);
Exec sp_OACreate 'MSXML2.XMLHTTP', @Object OUT;
Exec sp_OAMethod @Object, 'open', NULL, 'GET','http://localhost/Service1.asmx/HelloWorld?name=xyz', false;
Exec sp_OAMethod @Object, 'send';
EXEC sp_OAGetErrorInfo @Object
Create table #tmp(dt varchar(max))
insert into #tmp
exec sp_OAGetProperty @Object, 'ResponseText' --,@strLine OUtPUT
Select dt from #tmp -- single column/single row.
Drop Table #tmp -- clean up
Exec sp_OADestroy @Object;
But I am getting below error:
0x800C0005 msxml3.dll System error: -2146697211
Any pointers ...?
There are two (2) ways to fix Msxml3 Dll 0x800c0005 System Error Error:
Advanced Computer User Solution (manual update): 1) Start your computer and log on as an administrator. 2) Click the Start button then select All Programs, Accessories, System Tools, and then click System Restore. 3) In the new window, select "Restore my computer to an earlier time" option and then click Next. 4) Select the most recent system restore point from the "On this list, click a restore point" list, and then click Next. 5) Click Next on the confirmation window. 6) Restarts the computer when the restoration is finished.
Novice Computer User Solution (completely automated): 1) Download (Msxml3 Dll 0x800c0005 System Error) repair utility. 2) Install program and click Scan button. 3) Click the Fix Errors button when scan is completed. 4) Restart your computer.
User contributions licensed under CC BY-SA 3.0