This is an old revision of the document!
A dynamic link library (SQLWSCall.dll) provided by Third Wave Business Systems is required for this functionality to work. The file is installed in C:\Program Files\Bizweaver\BWPortal\BWSQLSP when Bizweaver is installed.
Execute the following SQL statements against the Master database
sp_configure 'show advanced options', 1 GO RECONFIGURE GO sp_configure 'clr enabled', 1 GO RECONFIGURE GO -- Create Asymmetric Key using DLL. CREATE ASYMMETRIC KEY [bwws] AUTHORIZATION [dbo] -- Source DLL file must be located in C:\Program Files\Bizweaver\BWPortal\BWSQLSP, or path changed below FROM EXECUTABLE FILE = 'C:\Program Files\Bizweaver\BWPortal\BWSQLSP\SQLWSCall.dll' -- Create login CREATE LOGIN TWBS FROM ASYMMETRIC KEY [bwws] -- Modify login GRANT UNSAFE ASSEMBLY TO TWBS
Create an Assembly in the calling database
Create the following stored procedure in the calling database.
CREATE PROCEDURE [dbo].[spCallBizweaverWS] @wsMethod NVARCHAR (MAX), @wsUrl NVARCHAR (MAX), @wsPort NVARCHAR (MAX), @wsContent NVARCHAR (MAX), @wsAuthToken NVARCHAR (MAX), @wsTaskId INT, @wsStartAfter INT, @wsParameters NVARCHAR (MAX) AS EXTERNAL NAME [SQLWSCall].[StoredProcedures].[spCallBizweaverWS]
SET @Arguments = '{"YourTargetVariable":' + '"' + @list_of_cols_val_tab_del + '"' + '}' EXECUTE [dbo].[spCallBizweaverWS] @wsMethod='POST' -- add your URL. Be sure to use http or https as appropriate. ,@wsURL='https://YourURL' ,@wsContent='application/json' -- Add your Auth Token from Bizweaver ,@wsAuthToken='xyxyxyxyxyxyxyxyx' -- Add your workflow ID from Bizweaver ,@wsTaskId='999' ,@wsStartAfter='' ,@wsParameters= @Arguments -- Add your port number ,@wsPort='443' END