Service Broker And Web services -


I want to implement a Web service call a stored procedure (a service broker within infrasturture). I looked at some examples of the book of Assenbrenner on the service broker, though I could not find anyone with the web service call to help anyone?

Thank you Sqlbs

We did a similar job in our company and An optimum solution was to use asynchronous triggers with the external activator, which makes webservices calls from .NET and de-queues messages after a successful call. What it means is that you create a regular database trigger that sends a message to the service broker queue for asynchronous processing. Aka asynchronous trigger Here is a sample of the 10 chapters of the book Klause

  - trigger Create written with T-SQL TRIGGER announcement made by you on to customers as putting OnCustomerInserted @conversationHandle UniqueIdentifier announced @fromService SYSNAME announced @toService SYSNAME announced @onContract SYSNAME announced @messageBody XML set @fromService = 'CustomerInsertedClient' set @toService = 'CustomerInsertedService' set @onContract = 'http://ssb.csharp.at/SSB_Book/c10/CustomerInsertContract '- Check if there is already TargetService selection @conversationHandle = ConversationHandle SessionConversations Areas where negotiations with SPID = @@ SPID and FromService = @fromService and ToService = @toService and OnContract = @onContract If @conversationHandle takes zero - we broker with TargetService BEGIN DIALOG CONVERSATION @ conversion to start a new service Conversation @ service @fromService encoding for service @ service = contract @ with contract; - Create a dialog timer to end the current conversation BEGIN conversion timer (@conversationHandle) TIMEOUT = 5; - Use for ongoing conversations (SPID, by-service, service, on contract, for ongoing conversations) to make more use of videos (@SPID, @Services, @Service, @Contract, @ConversionWindles) , Contract Handle) EDD - Request Message SET @ MessageBody = (XML Auto, select from INSERTED for Elements *); - TargetService message, conversation type @conversationHandle message [http://ssb.csharp.at/SSB_Book/c10/CustomerInsertedRequestMessage] (@messageBody) send,  

stored procedures access to call the web services rather than through managed code (internal activation), we better do not hesitate to have decided that processing outside of SQL server and designed by Microsoft found nice little tool - which in line New message On activation, listen activation queue and launch an application. For implementation, please see Chapter 4 of Klaus in the book.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -