Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HTTPDeliveryProtocol

0 views
Skip to first unread message

Mert Sakarya

unread,
Jan 31, 2005, 9:54:41 AM1/31/05
to
Is it logical to implement an "HTTPDeliveryProtocol" which makes thousands
of request to a web server - may be some server in the same network, which
can handle 200 requests per second ?
Or should I implement a "MQDeliveryProtocol" which makes HTTPRequests,
asynchronously (where I cannot keep track of a notifications whether they
are succeeded)?

Mert


Colin Meek [MSFT]

unread,
Jan 31, 2005, 12:47:16 PM1/31/05
to
Hi Mert,

I would suggest implementing the IHttpProtocolProvider interface, which
allow NS to handle most of the infrastructure you require, including
asynchronous requests.

You can find more information in NS books online:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sqlntsv/htm/nsp_advancedtopics_2b5f.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sqlntsv/htm/nsp_objectmodel2_4sdx.asp

- Colin Meek [MSFT]

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.
--

"Mert Sakarya" <msakarya@(nospam)e-kolay.com> wrote in message
news:e3WTOS6B...@TK2MSFTNGP15.phx.gbl...

Mert Sakarya

unread,
Jan 31, 2005, 1:13:15 PM1/31/05
to
Thanks. I have done that...

HTTPDeliveryProtocol is like.... (which compiled fine)

using System;
using Microsoft.SqlServer.NotificationServices;
using System.Net;

namespace HTTPDeliveryProtocol {
public class HTTPDeliveryProtocol : IHttpProtocolProvider
.......


And My Configuration file contains...

<Protocols>
<Protocol>
<ProtocolName>SMS</ProtocolName>
<ClassName>HttpExtension</ClassName>
</Protocol>
</Protocols>

<DeliveryChannels>
<DeliveryChannel>
<DeliveryChannelName>SMSChannel</DeliveryChannelName>
<ProtocolName>SMS</ProtocolName>
<Arguments>
<Argument>
<Name>ProtocolProviderClassName</Name>
<Value>HTTPDeliveryProtocol</Value>
</Argument>
<Argument>
<Name>ProtocolProviderAssemblyName</Name>
<Value>C:\SQL-NS\XXX\DeliveryProtocol\HttpDeliveryProtocol.dll</Value>
</Argument>
<Argument>
<Name>PostURL</Name>
<Value>http://localhost/webapplication2/data.aspx</Value>
</Argument>
</Arguments>
</DeliveryChannel>

ADF contains...
<Protocols>
<Protocol>
<ProtocolName>SMS</ProtocolName>
<Fields>
<Field><FieldName>BodyFormat</FieldName><SqlExpression>N&apos;text&apos;</SqlExpression></Field>
</Fields>
</Protocol>
Note I don't use the BodyFormat field. But I will...

I subscribed a user to the SMS Channel... When I fire an event, File evens
work fine, but SMS events give the following error in my Event Log

<NotificationServicesEvent>
<Description>
The protocol provider could not be loaded because the assembly or class
name is not valid.
</Description>
<Context>
<EventParameters>
<Protocol name>SMS</Protocol name>
<Provider class name>HTTPDeliveryProtocol</Provider class name>
<Provider assembly
name>C:\SQL-NS\XXX\DeliveryProtocol\HttpDeliveryProtocol.dll</Provider
assembly name>
</EventParameters>

</Context>
<Description>
Value cannot be null.
</Description>
<Instance>XXX</Instance>
<ApplicationName>XXX</ApplicationName>
<Component>Distributor</Component>
<ComponentDetails>
DistributorName: XXXDist1
</ComponentDetails>
<Thread>16</Thread>
</NotificationServicesEvent>

Can you help???


"Colin Meek [MSFT]" <CM...@online.microsoft.com> wrote in message
news:%23zacoz7...@TK2MSFTNGP09.phx.gbl...

Colin Meek [MSFT]

unread,
Feb 1, 2005, 12:53:03 PM2/1/05
to
You need to include the namespace for "ProtocolProviderClassName" as well.

- Colin Meek [MSFT]

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.
--

"Mert Sakarya" <msakarya@(nospam)e-kolay.com> wrote in message

news:#QD2NB8B...@TK2MSFTNGP09.phx.gbl...

Mert Sakarya

unread,
Feb 2, 2005, 12:00:16 PM2/2/05
to
Thanks. Worked. This thing is cool!!!

Once one gets the notion, it is easy to enhance the system...


"Colin Meek [MSFT]" <CM...@online.microsoft.com> wrote in message

news:eVSmhbI...@TK2MSFTNGP15.phx.gbl...

Mert

unread,
Oct 13, 2008, 2:57:02 PM10/13/08
to
hi Mert,
I am developing the same kind of application that notifies using sms.
can you help me out with some sample code for the custom delivery protocol?

From http://www.developmentnow.com/g/110_2005_1_0_0_403482/HTTPDeliveryProtocol.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/

0 new messages