asked on
CREATE PROC CallWebService
AS
BEGIN
Declare @Ob as Int, @ReturnData as Varchar(MAX);
Exec sp_OACreate 'MSXML2.XMLHTTP', @Ob OUT;
Exec sp_OAMethod @Ob, 'open', NULL, 'get', 'http://ws.afd.co.uk/PCE_WebService.asmx?WSDL','false'
Exec sp_OAMethod @Ob, 'send'
Exec sp_OAMethod @Ob, 'responseText', @ReturnData OUTPUT
Select @ReturnData
Exec sp_OADestroy @Ob
END
If you want to learn the entire code then you can follow from codeprojectASKER
ASKER
ASKER
ASKER
ASKER
EXEC CallWebService '1111','444','Test1','NE3 2NS','','Tyne'
Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.
TRUSTED BY
Open in new window