0

enter image description here

EXEC @hResult = sp_OAMethod @objectID, 'send', null, @requestBody 
    IF    @hResult <> 0 
    BEGIN
          EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
          SELECT      hResult = convert(varbinary(4), @hResult), 
                source = @source, 
                description = @desc, 
                FailPoint = 'Send failed', 
                MedthodName = @methodName 
          goto destroy 

When I Call a web service Through Sp IN SQl Server In Above Mention I'm getting error as Shown In The Pics

Paul White
  • 94,921
  • 30
  • 437
  • 687
Alfaiz Ahmed
  • 136
  • 1
  • 4

1 Answers1

1

Not sure about that exact error, but I would advise against using the OLE Automation stored procedures (i.e. sp_OA*) as they have been deprecated since SQL Server 2005 was released and have various "issues".

I you need to interact with a Web Service, your best bet is to use SQLCLR. I have more info regarding this option in the following answer, also here on DBA.SE:

Bringing web service data into SQL server

Solomon Rutzky
  • 70,048
  • 8
  • 160
  • 306