msxml3.dll in context sp_OAMethod 'send'

匆匆过客 提交于 2019-12-05 11:14:16

I stumbled upon this nasty issue for an entire weekend. I personally found horrible the "replace DLL" workaround, so I did my best to come out with a safer solution... Luckily enough, I actually found two of them.

Solution 1

Apply the following MS HotFix, which fixes the issue for good:

(read the post for further info and to request the hotfix via e-mail through MS secure channels)

Solution 2

If you can't apply the HotFix, you can still get the job done by using a slightly different syntax when issuing the SEND command. Instead of this:

Exec @ErrCode=sp_OAMethod @Object, 'send',null,'your-data';

do this:

Exec @ErrCode=sp_OAMethod @Object, 'send("your-data")';

It works for any type of HTTP request data: JSON, XML and even application/x-www-form-urlencoded for standard POST request. The downside is that such syntax is quite ugly... and you have to change all your Stored Procedures that way.

For additional info regarding the issue you can also read this post on my blog.

Specify MSXML2.ServerXMLHTTP.3.0 instead of 6.0.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!