Suppose a URL is provided, http://test.org/service.asmx
How can I use the SOAP method in SQL Server to access the service?
You can write managed code (C # or VB.NET) and run it with SQLServer. And you can write a SOAP client with .NET, of course.
Good luck.
That should work too
Declare @Object as Int ; Declare @ResponseText as Varchar(8000) ; Exec sp_OACreate 'MSXML2.XMLHTTP', @Object OUT ; Exec sp_OAMethod @Object, 'open', NULL, 'get', 'http://www.webservicex.com/stockquote.asmx/GetQuote?symbol=MSFT', --Your Web Service Url (invoked) 'false' Exec sp_OAMethod @Object, 'send' Exec sp_OAMethod @Object, 'responseText', @ResponseText OUTPUT Select @ResponseText Exec sp_OADestroy @Object
But I also think it's better to write a CLR function that you use from your sp
- (SQL Server 2005), , InfoPath. SharePoint, , . , . -, www.macrotesting.com, . ...
...
Meganathan..
Source: https://habr.com/ru/post/1710818/More articles:Переменная статического класса, экспортированная из DLL, отображается как утечка памяти - c++ExpressionEngine does not work properly after host transfer - phpASP.NET Web Application Development: Hiding Confidential Information From Contractors / Freelancers - securityIs it possible to enter code in spring using AOP annotations? - springASP 405 classic bug - asp-classicUnicode string for flat file from vba - vbaWeb browser and automation - browserDraggable + Sortable & Scrollable Divs - javascriptС#: Regasm генерирует записи реестра для каждого класса в моей COM-библиотеке? - c#Deploying a browser helper object - internet-explorerAll Articles