﻿USE [FabApprovalSystem]
GO
  /****** Object:  StoredProcedure [dbo].[Send_Hello_Message]    Script Date: 11/21/2024 11:29:05 AM ******/
SET
  ANSI_NULLS ON
GO
SET
  QUOTED_IDENTIFIER ON
GO
  CREATE PROCEDURE [dbo].[Send_Hello_Message] @text NVARCHAR(MAX) AS BEGIN
SET
  NOCOUNT ON;

DECLARE @handle UNIQUEIDENTIFIER;

BEGIN TRANSACTION BEGIN DIALOG @handle
FROM
  SERVICE [//sbdemo/Hello/MessageService] TO SERVICE '//sbdemo/Hello/MessageService' ON CONTRACT [//sbdemo/Hello/MessageContract] WITH ENCRYPTION = OFF;

SEND ON CONVERSATION @handle MESSAGE TYPE [//sbdemo/Hello/Message] (@text);

COMMIT TRANSACTION
END
GO